From c5c65819f95fe22e68885c885c3fba968dcd7340 Mon Sep 17 00:00:00 2001 From: ocket8888 Date: Tue, 15 Mar 2022 12:03:06 -0600 Subject: [PATCH] Fix TM API /publish/CrStates response example --- .../traffic_monitor/traffic_monitor_api.rst | 39 +++++++++---------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/docs/source/development/traffic_monitor/traffic_monitor_api.rst b/docs/source/development/traffic_monitor/traffic_monitor_api.rst index 3a2be0bc1f..a2be5cc951 100644 --- a/docs/source/development/traffic_monitor/traffic_monitor_api.rst +++ b/docs/source/development/traffic_monitor/traffic_monitor_api.rst @@ -178,6 +178,7 @@ Response Structure } } + ``publish/CacheStats/{{cache}}`` ================================ Statistics gathered for only a single cache. @@ -354,26 +355,21 @@ The current state of this CDN per the :ref:`health-proto`. GET /publish/CrStates HTTP/1.1 Accept: */* - Content-Type: application/json Response Structure """""""""""""""""" -:caches: An object with keys that are the names of monitored :term:`cache servers` - - :server name: The name of the server being monitored - - :isAvailable: Whether or not this cache is available for routing - :ipv4Available: Whether or not an IPV4 interface on this cache is available for routing - :ipv6Available: Whether or not an IPV6 interface on this cache is available for routing - :status: The status of this server, along with any additional reason for it to be marked as such - :lastPoll: The last time the health data for this server was polled by a traffic monitor +:caches: An object with keys that are the names of monitored :term:`cache servers`. -:deliveryServices: An object with keys as the names of monitored :term:`Delivery Services` + :isAvailable: Whether or not this :term:`cache server` is available for routing overall + :ipv4Available: Whether or not an IPv4 interface on this :term:`cache server` is available for routing. + :ipv6Available: Whether or not an IPv6 interface on this :term:`cache server` is available for routing. + :status: The status of this server, along with any additional reason for it to be marked as such + :lastPoll: The last time the health data for this server was polled by a traffic monitor - :delivery service name: The name of the delivery service being monitored +:deliveryServices: An object with keys that are the :ref:`XMLIDs ` of monitored :term:`Delivery Services`. - :disabledLocations: A list of disabled locations for this delivery service - :isAvailable: Whether or not this delivery service is available for routing + :disabledLocations: An array of the names of disabled "locations" (i.e. :term:`Cache Groups`) for this :term:`Delivery Service`. + :isAvailable: Whether or not this :term:`Delivery Service` is available for routing .. code-block:: http :caption: Example Response @@ -385,22 +381,23 @@ Response Structure { "caches": { - "server-name-01": { + "edge": { "isAvailable": true, "ipv4Available": true, - "ipv6Available": true, - "status": "REPORTED - id server-name-01 url http://[2001:db8:3333:4444:5555:6666:7777:8888]:80 fetch error: bad HTTP status: 403; interface0: not found in polled data", - "lastPoll": "2022-03-03T12:26:02.78556-07:00" - },... + "ipv6Available": false, + "status": "REPORTED - available", + "lastPoll": "2022-03-15T17:54:03.821178179Z" + } }, "deliveryServices": { - "ds-1": { + "dev-ds": { "disabledLocations": [], "isAvailable": true - },... + } } } + ``/publish/CrConfig`` ===================== The CDN :term:`Snapshot` (historically named a "CRConfig") served to and consumed by Traffic Router.