Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- /types/trimmed
- /deliveryservice_user/:dsId/:userId
- /user/current/jobs
- /cdns/usage/overview

## [4.0.0] - 2019-12-16
### Added
Expand Down
25 changes: 18 additions & 7 deletions docs/source/api/cdns_usage_overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

.. versionadded:: 1.2

.. deprecated:: ATCv4
This endpoint and its functionality is deprecated, and will be removed in the future.

``GET``
=======
Retrieves the high-level CDN usage metrics from Traffic Stats
Expand All @@ -46,10 +49,18 @@ Response Structure
.. code-block:: json
:caption: Response Example

{ "response": {
"currentGbps": 975.920621333333,
"source": "TrafficStats",
"tps": 0,
"version": "1.2",
"maxGbps": 12085
}}
{
"alerts": [
{
"level": "warning",
"text": "This endpoint and its functionality is deprecated, and will be removed in the future"
}
],
"response": {
"currentGbps": 975.920621333333,
"source": "TrafficStats",
"tps": 0,
"version": "1.2",
"maxGbps": 12085
}
}
4 changes: 2 additions & 2 deletions traffic_ops/app/lib/Extensions/TrafficStats/API/CdnStats.pm
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ sub get_usage_overview {

my ( $rc, $result ) = $cstats->get_usage_overview();
if ( $rc == SUCCESS ) {
return $self->success($result);
return $self->deprecation_with_no_alternative(200, $result);
}
else {
return $self->alert($result);
return $self->deprecation_with_no_alternative(400, $result);
}
}

Expand Down