diff --git a/frontend/app/components/Dashboard/components/Alerts/AlertListItem.tsx b/frontend/app/components/Dashboard/components/Alerts/AlertListItem.tsx index 4a2a97283..e3412bdce 100644 --- a/frontend/app/components/Dashboard/components/Alerts/AlertListItem.tsx +++ b/frontend/app/components/Dashboard/components/Alerts/AlertListItem.tsx @@ -127,7 +127,7 @@ function AlertListItem(props: Props) { {'When the '} {alert.detectionMethod} {' of '} - {alert.query.left} + {alert.seriesName} {' is '} {alert.query.operator} diff --git a/frontend/app/types/alert.ts b/frontend/app/types/alert.ts index a9600d024..124e393e2 100644 --- a/frontend/app/types/alert.ts +++ b/frontend/app/types/alert.ts @@ -20,6 +20,7 @@ export interface IAlert { detectionMethod: string; detection_method?: string; change: string; + seriesName: string; query: { left: string, operator: string, right: string }; options: { currentPeriod: number, previousPeriod: number, message: {type: string, value: string}[] }; createdAt?: number; @@ -74,6 +75,7 @@ export default class Alert { detectionMethod: IAlert["detectionMethod"] detection_method: IAlert["detection_method"] change: IAlert["change"] + seriesName: IAlert["seriesName"] query: IAlert["query"] options: IAlert["options"] createdAt?: IAlert["createdAt"]