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.
  • 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.