Skip to content

Commit 52bb9b1

Browse files
author
eddie
committed
Converted to dot notation
1 parent ae4b0f1 commit 52bb9b1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/components/Widgets/GlAlerts.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ export default {
4646
const alerts = [];
4747
alertData.forEach((alert) => {
4848
alerts.push({
49-
time: timestampToDateTime(alert["begin"] * 1000),
50-
ongoing: (alert['end'] === -1),
51-
timeAgo: getTimeAgo(alert["begin"] * 1000),
52-
lasted: alert['begin'] ? getTimeDifference(alert['begin'] * 1000, alert['end'] * 1000) : 'Ongoing',
53-
severity: alert['state'],
54-
category: alert['type'],
55-
value: round(alert['sum']),
56-
minMax: `Min: ${round(alert['min'])}%<br>Avg: `
57-
+ `${round(alert['avg'])}%<br>Max: ${round(alert['max'])}%`,
49+
time: timestampToDateTime(alert.begin * 1000),
50+
ongoing: (alert.end === -1),
51+
timeAgo: getTimeAgo(alert.begin * 1000),
52+
lasted: alert.begin ? getTimeDifference(alert.begin * 1000, alert.end * 1000) : 'Ongoing',
53+
severity: alert.state,
54+
category: alert.type,
55+
value: round(alert.sum),
56+
minMax: `Min: ${round(alert.min)}%<br>Avg: `
57+
+ `${round(alert.avg)}%<br>Max: ${round(alert.max)}%`,
5858
});
5959
});
6060
this.alerts = alerts;

0 commit comments

Comments
 (0)