Merge "Add Sample ReST API path in webapi document"

This commit is contained in:
Jenkins 2014-11-06 12:56:23 +00:00 committed by Gerrit Code Review
commit 5e30d99380
2 changed files with 5 additions and 2 deletions

View File

@ -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)

View File

@ -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: