The ceilometer.objectstore.swift Module

The ceilometer.objectstore.swift Module

Common code for working with object stores

class ceilometer.objectstore.swift.ContainersObjectsPollster(conf)[source]

Bases: ceilometer.objectstore.swift._Base

Collect the objects count per container for each project

METHOD = 'get'
get_samples(manager, cache, resources)[source]

Return a sequence of Counter instances from polling the resources.

Parameters:
  • manager – The service manager class invoking the plugin.
  • cache – A dictionary to allow pollsters to pass data between themselves when recomputing it would be expensive (e.g., asking another service for a list of objects).
  • resources – A list of resources the pollster will get data from. It’s up to the specific pollster to decide how to use it. It is usually supplied by a discovery, see default_discovery for more information.
class ceilometer.objectstore.swift.ContainersSizePollster(conf)[source]

Bases: ceilometer.objectstore.swift._Base

Collect the total objects size per container for each project

METHOD = 'get'
get_samples(manager, cache, resources)[source]

Return a sequence of Counter instances from polling the resources.

Parameters:
  • manager – The service manager class invoking the plugin.
  • cache – A dictionary to allow pollsters to pass data between themselves when recomputing it would be expensive (e.g., asking another service for a list of objects).
  • resources – A list of resources the pollster will get data from. It’s up to the specific pollster to decide how to use it. It is usually supplied by a discovery, see default_discovery for more information.
class ceilometer.objectstore.swift.ObjectsContainersPollster(conf)[source]

Bases: ceilometer.objectstore.swift._Base

Collect the container count for each project

get_samples(manager, cache, resources)[source]

Return a sequence of Counter instances from polling the resources.

Parameters:
  • manager – The service manager class invoking the plugin.
  • cache – A dictionary to allow pollsters to pass data between themselves when recomputing it would be expensive (e.g., asking another service for a list of objects).
  • resources – A list of resources the pollster will get data from. It’s up to the specific pollster to decide how to use it. It is usually supplied by a discovery, see default_discovery for more information.
class ceilometer.objectstore.swift.ObjectsPollster(conf)[source]

Bases: ceilometer.objectstore.swift._Base

Collect the total objects count for each project

get_samples(manager, cache, resources)[source]

Return a sequence of Counter instances from polling the resources.

Parameters:
  • manager – The service manager class invoking the plugin.
  • cache – A dictionary to allow pollsters to pass data between themselves when recomputing it would be expensive (e.g., asking another service for a list of objects).
  • resources – A list of resources the pollster will get data from. It’s up to the specific pollster to decide how to use it. It is usually supplied by a discovery, see default_discovery for more information.
class ceilometer.objectstore.swift.ObjectsSizePollster(conf)[source]

Bases: ceilometer.objectstore.swift._Base

Collect the total objects size of each project

get_samples(manager, cache, resources)[source]

Return a sequence of Counter instances from polling the resources.

Parameters:
  • manager – The service manager class invoking the plugin.
  • cache – A dictionary to allow pollsters to pass data between themselves when recomputing it would be expensive (e.g., asking another service for a list of objects).
  • resources – A list of resources the pollster will get data from. It’s up to the specific pollster to decide how to use it. It is usually supplied by a discovery, see default_discovery for more information.
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.