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 >
111<script setup lang="ts">
122import { ref , computed } from " vue" ;
133import { RouterLink } from " vue-router" ;
@@ -19,6 +9,7 @@ import { storeToRefs } from "pinia";
199import type { GroupedEndpoint , Endpoint } from " @/resources/MonitoringEndpoint" ;
2010import routeLinks from " @/router/routeLinks" ;
2111import { Tippy } from " vue-tippy" ;
12+ import { CriticalTime , EndpointName , ProcessingTime , QueueLength , ScheduledRetries , Throughput } from " @/resources/MonitoringResources" ;
2213import FAIcon from " @/components/FAIcon.vue" ;
2314import { faEnvelope } from " @fortawesome/free-solid-svg-icons" ;
2415
@@ -43,7 +34,7 @@ const criticalTimeGraphDuration = computed(() => formatGraphDuration(endpoint.va
4334 </script >
4435
4536<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" >
4738 <div class =" box-header with-status" >
4839 <div :aria-label =" shortName" class =" no-side-padding lead righ-side-ellipsis endpoint-details-link" >
4940 <tippy :aria-label =" endpoint.name" :delay =" [700, 0]" >
@@ -80,12 +71,12 @@ const criticalTimeGraphDuration = computed(() => formatGraphDuration(endpoint.va
8071 </div >
8172 </div >
8273 <!-- Queue Length-->
83- <div role =" gridcell" :aria-label =" columnName.QUEUELENGTH " class =" table-col" >
74+ <div role =" gridcell" :aria-label =" QueueLength.name " class =" table-col" >
8475 <div class =" box-header" >
8576 <div class =" no-side-padding" >
8677 <SmallGraph
8778 role="img"
88- :aria-label =" columnName . QUEUELENGTH "
79+ :aria-label =" QueueLength . name "
8980 :type =" ' queue-length' "
9081 :isdurationgraph =" false "
9182 :plotdata =" endpoint .metrics .queueLength "
@@ -102,12 +93,12 @@ const criticalTimeGraphDuration = computed(() => formatGraphDuration(endpoint.va
10293 </div >
10394 </div >
10495 <!-- Throughput-->
105- <div role =" gridcell" :aria-label =" columnName.THROUGHPUT " class =" table-col" >
96+ <div role =" gridcell" :aria-label =" Throughput.name " class =" table-col" >
10697 <div class =" box-header" >
10798 <div class =" no-side-padding" >
10899 <SmallGraph
109100 role="img"
110- :aria-label =" columnName . THROUGHPUT "
101+ :aria-label =" Throughput . name "
111102 :type =" ' throughput' "
112103 :isdurationgraph =" false "
113104 :plotdata =" endpoint .metrics .throughput "
@@ -124,19 +115,10 @@ const criticalTimeGraphDuration = computed(() => formatGraphDuration(endpoint.va
124115 </div >
125116 </div >
126117 <!-- Scheduled Retries-->
127- <div role =" gridcell" :aria-label =" columnName.SCHEDULEDRETRIES " class =" table-col" >
118+ <div role =" gridcell" :aria-label =" ScheduledRetries.name " class =" table-col" >
128119 <div class =" box-header" >
129120 <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' " />
140122 </div >
141123 <div role =" text" aria-label =" sparkline" class =" no-side-padding sparkline-value" >
142124 {{ endpoint.isStale == true || endpoint.isScMonitoringDisconnected == true ? "" : formatGraphDecimal(endpoint.metrics.retries, 2) }}
@@ -146,10 +128,10 @@ const criticalTimeGraphDuration = computed(() => formatGraphDuration(endpoint.va
146128 </div >
147129 </div >
148130 <!-- Processing Time-->
149- <div role =" gridcell" :aria-label =" columnName.PROCESSINGTIME " class =" table-col" >
131+ <div role =" gridcell" :aria-label =" ProcessingTime.name " class =" table-col" >
150132 <div class =" box-header" >
151133 <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' " />
153135 </div >
154136 <div role =" text" aria-label =" sparkline" class =" no-side-padding sparkline-value" >
155137 {{ endpoint.isStale == true || endpoint.isScMonitoringDisconnected == true ? "" : processingTimeGraphDuration.value }}
@@ -160,10 +142,10 @@ const criticalTimeGraphDuration = computed(() => formatGraphDuration(endpoint.va
160142 </div >
161143 </div >
162144 <!-- Critical Time-->
163- <div role =" gridcell" :aria-label =" columnName.CRITICALTIME " class =" table-col" >
145+ <div role =" gridcell" :aria-label =" CriticalTime.name " class =" table-col" >
164146 <div class =" box-header" >
165147 <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' " />
167149 </div >
168150 <div role =" text" aria-label =" sparkline" class =" no-side-padding sparkline-value" :class =" { negative: parseFloat(criticalTimeGraphDuration.value) < 0 }" >
169151 {{ endpoint.isStale == true || endpoint.isScMonitoringDisconnected == true ? "" : criticalTimeGraphDuration.value }}
0 commit comments