diff --git a/CHANGELOG.md b/CHANGELOG.md index 007bdedff0..700d2915c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - /stats_summary/create - /deliveryservices/:id/state - /cdns/configs + - /traffic_monitor/stats - /servercheck/aadata - /types/trimmed diff --git a/docs/source/api/traffic_monitor_stats.rst b/docs/source/api/traffic_monitor_stats.rst index 16a018a67b..f57a2b8d10 100644 --- a/docs/source/api/traffic_monitor_stats.rst +++ b/docs/source/api/traffic_monitor_stats.rst @@ -18,6 +18,7 @@ ************************* ``traffic_monitor/stats`` ************************* +.. deprecated:: ATCv4 .. caution:: This page is a stub! Much of it may be missing or just downright wrong - it needs a lot of love from people with the domain knowledge required to update it. ``GET`` @@ -62,4 +63,10 @@ Response Structure "0", "0" ] + ] + "alerts": [ + { + "level": "warning", + "text": "This endpoint and its functionality is deprecated, and will be removed in the future" + } ]} diff --git a/traffic_ops/app/lib/API/TrafficMonitor.pm b/traffic_ops/app/lib/API/TrafficMonitor.pm index a0dcff177d..21b46ce648 100644 --- a/traffic_ops/app/lib/API/TrafficMonitor.pm +++ b/traffic_ops/app/lib/API/TrafficMonitor.pm @@ -57,8 +57,7 @@ sub get_host_stats { } $self->add_em_up( $big_obj, \%aadata, \$master_i ); ###################### Main flow ##################### - - $self->render( json => \%aadata ); + return $self->deprecation_with_no_alternative(200, \%aadata); } sub get_crstates {