Skip to content

Commit

Permalink
removed health_span(ms) column from the UI-1
Browse files Browse the repository at this point in the history
  • Loading branch information
rimashah25 committed Jun 29, 2023
1 parent 1c64588 commit 538ee97
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions traffic_monitor/datareq/cachestate.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ type CacheStatus struct {
// recent two stat queries. This can be used as a rough gauge of the
// end-to-end query processing time.
StatSpanMilliseconds *int64 `json:"stat_span_ms,omitempty"`
// HealthSpanMilliseconds is the length of time between completing the most
// recent two health queries. This can be used as a rough gauge of the
// end-to-end query processing time.
HealthSpanMilliseconds *int64 `json:"health_span_ms,omitempty"`

Status *string `json:"status,omitempty"`
StatusPoller *string `json:"status_poller,omitempty"`
Expand Down Expand Up @@ -232,11 +228,6 @@ func createCacheStatuses(
log.Infof("Error getting cache %v stat span: %v\n", cacheName, err)
}

healthSpan, err := resultSpanMS(tc.CacheName(cacheName), healthHistory)
if err != nil {
log.Infof("Error getting cache %v health span: %v\n", cacheName, err)
}

if serverInfo.ServerStatus == tc.CacheStatusOnline.String() {
cacheStatus.Why = "ONLINE - available"
cacheStatus.Available.IPv4 = serverInfo.IPv4() != ""
Expand All @@ -251,7 +242,6 @@ func createCacheStatuses(
StatTimeMilliseconds: &statTime,
HealthTimeMilliseconds: &healthTime,
StatSpanMilliseconds: &statSpan,
HealthSpanMilliseconds: &healthSpan,
BandwidthKbps: &totalKbps,
BandwidthCapacityKbps: &totalMaxKbps,
ConnectionCount: &connections,
Expand Down
1 change: 0 additions & 1 deletion traffic_monitor/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@
<td class="number-entry"></td>
<td class="number-entry"></td>
<td class="number-entry"></td>
<td class="number-entry"></td>
</tr>
</template>
<template id="interface-row-template">
Expand Down

0 comments on commit 538ee97

Please sign in to comment.