Deprecate /v1/report/total endpoint

Change-Id: I559304c6da7b78e83821a7d164cc12faf2e7194c
Task: 6586
Story: 2001612
This commit is contained in:
Luka Peschke 2018-03-07 11:44:37 +01:00
parent acf1978421
commit ae1a473dc7
2 changed files with 11 additions and 0 deletions

View File

@ -18,6 +18,7 @@
import datetime
import decimal
from oslo_log import log as logging
import pecan
from pecan import rest
from wsme import types as wtypes
@ -28,6 +29,9 @@ from cloudkitty.common import policy
from cloudkitty import utils as ck_utils
LOG = logging.getLogger(__name__)
class ReportController(rest.RestController):
"""REST Controller managing the reporting.
@ -68,6 +72,8 @@ class ReportController(rest.RestController):
"""Return the amount to pay for a given period.
"""
LOG.warning('/v1/report/total is deprecated, please use '
'/v1/report/summary instead.')
if not begin:
begin = ck_utils.get_month_start()
if not end:

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
The /v1/report/total route has been deprecated. /v1/report/summary should
be used instead.