mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-18 11:05:56 +08:00
fix: [alerts] fixed selected interval for chart preview in ch use case (#1761)
This commit is contained in:
parent
7cec2db503
commit
0cbba071ea
@ -468,6 +468,7 @@ function FormAlertRules({
|
|||||||
threshold={alertDef.condition?.target}
|
threshold={alertDef.condition?.target}
|
||||||
query={manualStagedQuery}
|
query={manualStagedQuery}
|
||||||
userQueryKey={runQueryId}
|
userQueryKey={runQueryId}
|
||||||
|
selectedInterval={toChartInterval(alertDef.evalWindow)}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -135,7 +135,7 @@ export const toChartInterval = (evalWindow: string | undefined): Time => {
|
|||||||
case '30m0s':
|
case '30m0s':
|
||||||
return '30min';
|
return '30min';
|
||||||
case '60m0s':
|
case '60m0s':
|
||||||
return '30min';
|
return '1hr';
|
||||||
case '4h0m0s':
|
case '4h0m0s':
|
||||||
return '4hr';
|
return '4hr';
|
||||||
case '24h0m0s':
|
case '24h0m0s':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user