diff --git a/ceilometer/api/controllers/v2.py b/ceilometer/api/controllers/v2.py index 96603efcd..9c0d830ec 100644 --- a/ceilometer/api/controllers/v2.py +++ b/ceilometer/api/controllers/v2.py @@ -1162,9 +1162,9 @@ class SamplesController(rest.RestController): @wsme_pecan.wsexpose(Sample, wtypes.text) def get_one(self, sample_id): - """Return a sample + """Return a sample. - :param sample_id: the id of the sample + :param sample_id: the id of the sample. """ f = storage.SampleFilter(message_id=sample_id) diff --git a/doc/source/webapi/v2.rst b/doc/source/webapi/v2.rst index 7ca235f21..27cefc937 100644 --- a/doc/source/webapi/v2.rst +++ b/doc/source/webapi/v2.rst @@ -31,6 +31,9 @@ Meters Samples and Statistics ====================== +.. rest-controller:: ceilometer.api.controllers.v2:SamplesController + :webprefix: /v2/samples + .. autotype:: ceilometer.api.controllers.v2.Sample :members: