1
- <script lang="ts">
2
- export enum columnName {
3
- ENDPOINTNAME = " name" ,
4
- QUEUELENGTH = " queueLength" ,
5
- THROUGHPUT = " throughput" ,
6
- SCHEDULEDRETRIES = " retries" ,
7
- PROCESSINGTIME = " processingTime" ,
8
- CRITICALTIME = " criticalTime" ,
9
- }
10
- </script >
11
1
<script setup lang="ts">
12
2
import { ref , computed } from " vue" ;
13
3
import { RouterLink } from " vue-router" ;
@@ -19,6 +9,7 @@ import { storeToRefs } from "pinia";
19
9
import type { GroupedEndpoint , Endpoint } from " @/resources/MonitoringEndpoint" ;
20
10
import routeLinks from " @/router/routeLinks" ;
21
11
import { Tippy } from " vue-tippy" ;
12
+ import { CriticalTime , EndpointName , ProcessingTime , QueueLength , ScheduledRetries , Throughput } from " @/resources/MonitoringResources" ;
22
13
import FAIcon from " @/components/FAIcon.vue" ;
23
14
import { faEnvelope } from " @fortawesome/free-solid-svg-icons" ;
24
15
@@ -43,7 +34,7 @@ const criticalTimeGraphDuration = computed(() => formatGraphDuration(endpoint.va
43
34
</script >
44
35
45
36
<template >
46
- <div role =" gridcell" :aria-label =" columnName.ENDPOINTNAME " class =" table-first-col endpoint-name name-overview" >
37
+ <div role =" gridcell" :aria-label =" EndpointName.name " class =" table-first-col endpoint-name name-overview" >
47
38
<div class =" box-header with-status" >
48
39
<div :aria-label =" shortName" class =" no-side-padding lead righ-side-ellipsis endpoint-details-link" >
49
40
<tippy :aria-label =" endpoint.name" :delay =" [700, 0]" >
@@ -80,12 +71,12 @@ const criticalTimeGraphDuration = computed(() => formatGraphDuration(endpoint.va
80
71
</div >
81
72
</div >
82
73
<!-- Queue Length-->
83
- <div role =" gridcell" :aria-label =" columnName.QUEUELENGTH " class =" table-col" >
74
+ <div role =" gridcell" :aria-label =" QueueLength.name " class =" table-col" >
84
75
<div class =" box-header" >
85
76
<div class =" no-side-padding" >
86
77
<SmallGraph
87
78
role =" img"
88
- :aria-label =" columnName.QUEUELENGTH "
79
+ :aria-label =" QueueLength.name "
89
80
:type =" 'queue-length'"
90
81
:isdurationgraph =" false"
91
82
:plotdata =" endpoint.metrics.queueLength"
@@ -102,12 +93,12 @@ const criticalTimeGraphDuration = computed(() => formatGraphDuration(endpoint.va
102
93
</div >
103
94
</div >
104
95
<!-- Throughput-->
105
- <div role =" gridcell" :aria-label =" columnName.THROUGHPUT " class =" table-col" >
96
+ <div role =" gridcell" :aria-label =" Throughput.name " class =" table-col" >
106
97
<div class =" box-header" >
107
98
<div class =" no-side-padding" >
108
99
<SmallGraph
109
100
role =" img"
110
- :aria-label =" columnName.THROUGHPUT "
101
+ :aria-label =" Throughput.name "
111
102
:type =" 'throughput'"
112
103
:isdurationgraph =" false"
113
104
:plotdata =" endpoint.metrics.throughput"
@@ -124,19 +115,10 @@ const criticalTimeGraphDuration = computed(() => formatGraphDuration(endpoint.va
124
115
</div >
125
116
</div >
126
117
<!-- Scheduled Retries-->
127
- <div role =" gridcell" :aria-label =" columnName.SCHEDULEDRETRIES " class =" table-col" >
118
+ <div role =" gridcell" :aria-label =" ScheduledRetries.name " class =" table-col" >
128
119
<div class =" box-header" >
129
120
<div class =" no-side-padding" >
130
- <SmallGraph
131
- role =" img"
132
- :aria-label =" columnName.SCHEDULEDRETRIES"
133
- :type =" 'retries'"
134
- :isdurationgraph =" false"
135
- :plotdata =" endpoint.metrics.retries"
136
- :minimumyaxis =" smallGraphsMinimumYAxis.retries"
137
- :avglabelcolor =" '#CC1252'"
138
- :metricsuffix =" 'MSGS/S'"
139
- />
121
+ <SmallGraph role =" img" :aria-label =" ScheduledRetries.name" :type =" 'retries'" :isdurationgraph =" false" :plotdata =" endpoint.metrics.retries" :minimumyaxis =" smallGraphsMinimumYAxis.retries" :avglabelcolor =" '#CC1252'" :metricsuffix =" 'MSGS/S'" />
140
122
</div >
141
123
<div role =" text" aria-label =" sparkline" class =" no-side-padding sparkline-value" >
142
124
{{ endpoint.isStale == true || endpoint.isScMonitoringDisconnected == true ? "" : formatGraphDecimal(endpoint.metrics.retries, 2) }}
@@ -146,10 +128,10 @@ const criticalTimeGraphDuration = computed(() => formatGraphDuration(endpoint.va
146
128
</div >
147
129
</div >
148
130
<!-- Processing Time-->
149
- <div role =" gridcell" :aria-label =" columnName.PROCESSINGTIME " class =" table-col" >
131
+ <div role =" gridcell" :aria-label =" ProcessingTime.name " class =" table-col" >
150
132
<div class =" box-header" >
151
133
<div class =" no-side-padding" >
152
- <SmallGraph role =" img" :aria-label =" columnName.PROCESSINGTIME " :type =" 'processing-time'" :isdurationgraph =" true" :plotdata =" endpoint.metrics.processingTime" :minimumyaxis =" smallGraphsMinimumYAxis.processingTime" :avglabelcolor =" '#258135'" />
134
+ <SmallGraph role =" img" :aria-label =" ProcessingTime.name " :type =" 'processing-time'" :isdurationgraph =" true" :plotdata =" endpoint.metrics.processingTime" :minimumyaxis =" smallGraphsMinimumYAxis.processingTime" :avglabelcolor =" '#258135'" />
153
135
</div >
154
136
<div role =" text" aria-label =" sparkline" class =" no-side-padding sparkline-value" >
155
137
{{ endpoint.isStale == true || endpoint.isScMonitoringDisconnected == true ? "" : processingTimeGraphDuration.value }}
@@ -160,10 +142,10 @@ const criticalTimeGraphDuration = computed(() => formatGraphDuration(endpoint.va
160
142
</div >
161
143
</div >
162
144
<!-- Critical Time-->
163
- <div role =" gridcell" :aria-label =" columnName.CRITICALTIME " class =" table-col" >
145
+ <div role =" gridcell" :aria-label =" CriticalTime.name " class =" table-col" >
164
146
<div class =" box-header" >
165
147
<div class =" no-side-padding" >
166
- <SmallGraph role =" img" :aria-label =" columnName.CRITICALTIME " :type =" 'critical-time'" :isdurationgraph =" true" :plotdata =" endpoint.metrics.criticalTime" :minimumyaxis =" smallGraphsMinimumYAxis.criticalTime" :avglabelcolor =" '#2700CB'" />
148
+ <SmallGraph role =" img" :aria-label =" CriticalTime.name " :type =" 'critical-time'" :isdurationgraph =" true" :plotdata =" endpoint.metrics.criticalTime" :minimumyaxis =" smallGraphsMinimumYAxis.criticalTime" :avglabelcolor =" '#2700CB'" />
167
149
</div >
168
150
<div role =" text" aria-label =" sparkline" class =" no-side-padding sparkline-value" :class =" { negative: parseFloat(criticalTimeGraphDuration.value) < 0 }" >
169
151
{{ endpoint.isStale == true || endpoint.isScMonitoringDisconnected == true ? "" : criticalTimeGraphDuration.value }}
0 commit comments