Skip to content

Commit

Permalink
BugFix: [Alert Summary]change the format configuration corresponds to…
Browse files Browse the repository at this point in the history
… the time value change

Signed-off-by: Heng Qian <[email protected]>
  • Loading branch information
qianheng-aws committed Oct 2, 2024
1 parent bdda00e commit 8bc5819
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/pages/Dashboard/utils/tableUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ export const alertColumns = (
query = query.replaceAll('{{period_end}}', alert.start_time);
const alertStartTime = moment.utc(alert.start_time).format('YYYY-MM-DDTHH:mm:ss');
dsl = dsl.replaceAll('{{period_end}}', alertStartTime);
// as we changed the format, remove it
dsl = dsl.replaceAll('"format":"epoch_millis",', '');
// as we changed the format of time value, need to change the format configuration as well.
dsl = dsl.replaceAll('"format":"epoch_millis",', '"format":"strict_date_optional_time",');
monitorDefinitionStr = monitorDefinitionStr.replaceAll(
'{{period_end}}',
alertStartTime
alertStartTimbe
);
// as we changed the format, remove it
monitorDefinitionStr = monitorDefinitionStr.replaceAll('"format":"epoch_millis",', '');
Expand Down

0 comments on commit 8bc5819

Please sign in to comment.