fix: [alerts] fixed selected interval for chart preview in ch use case (#1761)

This commit is contained in:
Amol Umbark 2022-11-25 16:04:09 +05:30 committed by GitHub
parent 7cec2db503
commit 0cbba071ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -468,6 +468,7 @@ function FormAlertRules({
threshold={alertDef.condition?.target}
query={manualStagedQuery}
userQueryKey={runQueryId}
selectedInterval={toChartInterval(alertDef.evalWindow)}
/>
);
};

View File

@ -135,7 +135,7 @@ export const toChartInterval = (evalWindow: string | undefined): Time => {
case '30m0s':
return '30min';
case '60m0s':
return '30min';
return '1hr';
case '4h0m0s':
return '4hr';
case '24h0m0s':