change(ui) - alerts use seriesName
This commit is contained in:
parent
8a8cb9234b
commit
d352556570
2 changed files with 3 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ function AlertListItem(props: Props) {
|
|||
{'When the '}
|
||||
<span className="font-semibold" style={{ fontFamily: 'Menlo, Monaco, Consolas' }}>{alert.detectionMethod}</span>
|
||||
{' of '}
|
||||
<span className="font-semibold" style={{ fontFamily: 'Menlo, Monaco, Consolas' }}>{alert.query.left}</span>
|
||||
<span className="font-semibold" style={{ fontFamily: 'Menlo, Monaco, Consolas' }}>{alert.seriesName}</span>
|
||||
{' is '}
|
||||
<span className="font-semibold" style={{ fontFamily: 'Menlo, Monaco, Consolas' }}>
|
||||
{alert.query.operator}
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue