The ceilometer.api.controllers.v2.resources Module

The ceilometer.api.controllers.v2.resources Module

class ceilometer.api.controllers.v2.resources.Resource(metadata=None, **kwds)[source]

Bases: ceilometer.api.controllers.v2.base.Base

An externally defined object for which samples have been received.

classmethod sample()[source]
class ceilometer.api.controllers.v2.resources.ResourcesController[source]

Bases: pecan.rest.RestController

Works on resources.

get_all(*args, **kwargs)[source]

Retrieve definitions of all of the resources.

Parameters:
  • q – Filter rules for the resources to be returned.
  • limit – Maximum number of resources to return.
  • meter_links – option to include related meter links.
get_one(*args, **kwargs)[source]

Retrieve details about one resource.

Parameters:resource_id – The UUID of the resource.
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.