mitchell852 opened a new issue #5708:
URL: https://github.com/apache/trafficcontrol/issues/5708


   ## I'm submitting a ...
   -  improvement request (usability, performance, tech debt, etc.)
   
   ## Traffic Control components affected ...
   -  Traffic Portal
   
   ## Current behavior:
   
![image](https://user-images.githubusercontent.com/251272/113435495-28978080-93a0-11eb-819f-e5534e390d1d.png)
   
   ^^ these numbers are populated from the api call:
   
   ```
   GET api/3.1/servers?type=EDGE
   ```
   
   therefore, the labels "online caches", "reported caches", etc is misleading.
   
   ## New behavior:
   Labels should be:
   - Online Edge Caches
   - Reported Edge Caches
   - Offline Edge Caches
   - Admin Down Edge Caches
   
   Or an even better solution would be to aggregate the numbers for ALL caches 
(edges* and mids*) which would require either making a few calls like:
   
   ```
   GET api/3.1/servers?type=EDGE
   GET api/3.1/servers?type=MID
   ```
   
   and summing the results or making an api change to support something like:
   
   ```
   GET api/3.1/servers?type=CACHE
   ```
   
   which pulls numbers for any server of type EDGE* or MID*
   
   ## Minimal reproduction of the problem with instructions:
   Launch TP. View the cache status in the top right of the TP dashboard.
   
   <!--
       Licensed to the Apache Software Foundation (ASF) under one
       or more contributor license agreements.  See the NOTICE file
       distributed with this work for additional information
       regarding copyright ownership.  The ASF licenses this file
       to you under the Apache License, Version 2.0 (the
       "License"); you may not use this file except in compliance
       with the License.  You may obtain a copy of the License at
   
       https://apache.org/licenses/LICENSE-2.0
   
       Unless required by applicable law or agreed to in writing,
       software distributed under the License is distributed on an
       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
       KIND, either express or implied.  See the License for the
       specific language governing permissions and limitations
       under the License.
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to