ceilometer.tests.unit.polling.test_manager
Module¶Tests for ceilometer agent manager
ceilometer.tests.unit.polling.test_manager.
BaseAgent
(*args, **kwds)[source]¶Bases: ceilometer.tests.base.BaseTestCase
BatchPollster
(conf)[source]¶Bases: ceilometer.tests.unit.polling.test_manager.BatchTestPollster
resources
= []¶samples
= []¶test_data
= <name: test, volume: 1, resource_id: test_run_tasks, timestamp: 2020-05-29T08:30:32.739929>¶Discovery
(conf)[source]¶Bases: ceilometer.tests.unit.polling.test_manager.TestDiscovery
params
= []¶resources
= []¶DiscoveryAnother
(conf)[source]¶Bases: ceilometer.tests.unit.polling.test_manager.TestDiscovery
group_id
¶params
= []¶resources
= []¶DiscoveryException
(conf)[source]¶Bases: ceilometer.tests.unit.polling.test_manager.TestDiscoveryException
params
= []¶Pollster
(conf)[source]¶Bases: ceilometer.tests.unit.polling.test_manager.TestPollster
resources
= []¶samples
= []¶test_data
= <name: test, volume: 1, resource_id: test_run_tasks, timestamp: 2020-05-29T08:30:32.739827>¶PollsterAnother
(conf)[source]¶Bases: ceilometer.tests.unit.polling.test_manager.TestPollster
resources
= []¶samples
= []¶test_data
= <name: testanother, volume: 1, resource_id: test_run_tasks, timestamp: 2020-05-29T08:30:32.740024>¶PollsterKeystone
(conf)[source]¶Bases: ceilometer.tests.unit.polling.test_manager.TestPollsterKeystone
resources
= []¶samples
= []¶test_data
= <name: testkeystone, volume: 1, resource_id: test_run_tasks, timestamp: 2020-05-29T08:30:32.740124>¶ceilometer.tests.unit.polling.test_manager.
BatchTestPollster
(conf)[source]¶Bases: ceilometer.tests.unit.polling.test_manager.TestPollster
default_discovery
¶discovery
= None¶get_samples
(manager, cache, resources)[source]¶Return a sequence of Counter instances from polling the resources.
Parameters: |
|
---|
test_data
= <name: test, volume: 1, resource_id: test_run_tasks, timestamp: 2020-05-29T08:30:32.739540>¶ceilometer.tests.unit.polling.test_manager.
PollingException
[source]¶Bases: exceptions.Exception
ceilometer.tests.unit.polling.test_manager.
TestDiscovery
(conf)[source]¶Bases: ceilometer.polling.plugin_base.DiscoveryBase
discover
(manager, param=None)[source]¶Discover resources to monitor.
The most fine-grained discovery should be preferred, so the work is the most evenly distributed among multiple agents (if they exist).
For example: if the pollster can separately poll individual resources, it should have its own discovery implementation to discover those resources. If it can only poll per-tenant, then the TenantDiscovery should be used. If even that is not possible, use EndpointDiscovery (see their respective docstrings).
Parameters: |
|
---|
ceilometer.tests.unit.polling.test_manager.
TestDiscoveryException
(conf)[source]¶Bases: ceilometer.polling.plugin_base.DiscoveryBase
discover
(manager, param=None)[source]¶Discover resources to monitor.
The most fine-grained discovery should be preferred, so the work is the most evenly distributed among multiple agents (if they exist).
For example: if the pollster can separately poll individual resources, it should have its own discovery implementation to discover those resources. If it can only poll per-tenant, then the TenantDiscovery should be used. If even that is not possible, use EndpointDiscovery (see their respective docstrings).
Parameters: |
|
---|
ceilometer.tests.unit.polling.test_manager.
TestPollingAgentPartitioned
(*args, **kwds)[source]¶ceilometer.tests.unit.polling.test_manager.
TestPollster
(conf)[source]¶Bases: ceilometer.polling.plugin_base.PollsterBase
default_discovery
¶discovery
= None¶get_samples
(manager, cache, resources)[source]¶Return a sequence of Counter instances from polling the resources.
Parameters: |
|
---|
test_data
= <name: test, volume: 1, resource_id: test_run_tasks, timestamp: 2020-05-29T08:30:32.721985>¶ceilometer.tests.unit.polling.test_manager.
TestPollsterBuilder
(conf)[source]¶Bases: ceilometer.tests.unit.polling.test_manager.TestPollster
build_pollsters
(conf)[source]¶Return a list of tuple (name, pollster).
The name is the meter name which the pollster would return, the pollster is a pollster object instance. The pollster which implements this method should be registered in the namespace of ceilometer.builder.xxx instead of ceilometer.poll.xxx.
ceilometer.tests.unit.polling.test_manager.
TestPollsterKeystone
(conf)[source]¶Bases: ceilometer.tests.unit.polling.test_manager.TestPollster
get_samples
(manager, cache, resources)[source]¶Return a sequence of Counter instances from polling the resources.
Parameters: |
|
---|
ceilometer.tests.unit.polling.test_manager.
TestPollsterPollingException
(conf)[source]¶Bases: ceilometer.tests.unit.polling.test_manager.TestPollster
discovery
= 'test'¶get_samples
(manager, cache, resources)[source]¶Return a sequence of Counter instances from polling the resources.
Parameters: |
|
---|
polling_failures
= 0¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.