diff options
Diffstat (limited to 'src/components/services/Prometheus.vue')
-rw-r--r-- | src/components/services/Prometheus.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/services/Prometheus.vue b/src/components/services/Prometheus.vue index 6efcb34..7f661ca 100644 --- a/src/components/services/Prometheus.vue +++ b/src/components/services/Prometheus.vue | |||
@@ -72,7 +72,7 @@ export default { | |||
72 | countFiring: function () { | 72 | countFiring: function () { |
73 | if (this.api) { | 73 | if (this.api) { |
74 | return this.api.data?.alerts?.filter( | 74 | return this.api.data?.alerts?.filter( |
75 | (alert) => alert.state === AlertsStatus.firing | 75 | (alert) => alert.state === AlertsStatus.firing, |
76 | ).length; | 76 | ).length; |
77 | } | 77 | } |
78 | return 0; | 78 | return 0; |
@@ -80,7 +80,7 @@ export default { | |||
80 | countPending: function () { | 80 | countPending: function () { |
81 | if (this.api) { | 81 | if (this.api) { |
82 | return this.api.data?.alerts?.filter( | 82 | return this.api.data?.alerts?.filter( |
83 | (alert) => alert.state === AlertsStatus.pending | 83 | (alert) => alert.state === AlertsStatus.pending, |
84 | ).length; | 84 | ).length; |
85 | } | 85 | } |
86 | return 0; | 86 | return 0; |
@@ -88,7 +88,7 @@ export default { | |||
88 | countInactive: function () { | 88 | countInactive: function () { |
89 | if (this.api) { | 89 | if (this.api) { |
90 | return this.api.data?.alerts?.filter( | 90 | return this.api.data?.alerts?.filter( |
91 | (alert) => alert.state === AlertsStatus.pending | 91 | (alert) => alert.state === AlertsStatus.pending, |
92 | ).length; | 92 | ).length; |
93 | } | 93 | } |
94 | return 0; | 94 | return 0; |