Unused function, hack to let pecan route requests to subcontrollers.
Return the list of every services mapped to a collector.
collector (str
) – Filter on the collector name.
Service to collector mappings collection.
Return a service to collector mapping.
service (str
) – Name of the service to filter on.
Create a service to collector mapping.
collector (str
) – Name of the collector to apply mapping on.
service (str
) – Name of the service to apply mapping on.
Delete a service to collector mapping.
service (str
) – Name of the service to filter on.
Query the enable state of a collector.
name (str
) – Name of the collector.
State of the collector.
Set the enable state of a collector.
name (str
) – Name of the collector.
infos (CollectorInfos
) – New state informations of the collector.
State of the collector.
Type describing a collector module.
Data samples:
{
"enabled": true,
"name": "gnocchi"
}
b'<value>\n <name>gnocchi</name>\n <enabled>true</enabled>\n</value>'
State of the collector.
Name of the collector.
Type describing a service to collector mapping.
Data samples:
{
"collector": "gnocchi",
"service": "compute"
}
b'<value>\n <service>compute</service>\n <collector>gnocchi</collector>\n</value>'
Name of the collector.
Name of the service.
Type describing a service to collector mapping collection.
Data samples:
{
"mappings": [
{
"collector": "gnocchi",
"service": "compute"
}
]
}
b'<value>\n <mappings>\n <item>\n <service>compute</service>\n <collector>gnocchi</collector>\n </item>\n </mappings>\n</value>'
List of service to collector mappings.
Return current configuration.
dict(str
: None
)
Get the metric list.
List of every metrics.
Return a metric.
metric_name (str
) – name of the metric.
Type describing a metric info in CloudKitty.
Data samples:
{
"metadata": [
"resource_id",
"project_id",
"qty",
"unit"
],
"metric_id": "image.size",
"unit": "MiB"
}
b'<value>\n <metric_id>image.size</metric_id>\n <metadata>\n <item>resource_id</item>\n <item>project_id</item>\n <item>qty</item>\n <item>unit</item>\n </metadata>\n <unit>MiB</unit>\n</value>'
List of metric metadata
Name of the metric.
Metric unit
A list of CloudKittyMetricInfo.
Data samples:
{
"metrics": [
{
"metadata": [
"resource_id",
"project_id",
"qty",
"unit"
],
"metric_id": "image.size",
"unit": "MiB"
}
]
}
b'<value>\n <metrics>\n <item>\n <metric_id>image.size</metric_id>\n <metadata>\n <item>resource_id</item>\n <item>project_id</item>\n <item>qty</item>\n <item>unit</item>\n </metadata>\n <unit>MiB</unit>\n </item>\n </metrics>\n</value>'
Get the service list (deprecated).
List of every services.
Return a service (deprecated).
service_name (str
) – name of the service.
return the list of loaded modules.
name of every loaded modules.
return a module
CloudKittyModule
Change the state and priority of a module.
module_id (str
) – name of the module to modify
module (CloudkittyModule
) – CloudKittyModule object describing the new desired state
Get an instant quote based on multiple resource descriptions.
res_data (CloudkittyResourceCollection
) – List of resource descriptions.
Total price for these descriptions.
float
Trigger a rating module list reload.
A rating extension summary
Data samples:
{
"description": "Sample extension.",
"enabled": true,
"hot-config": false,
"priority": 2
}
b'<value>\n <description>Sample extension.</description>\n <enabled>true</enabled>\n <hot-config>false</hot-config>\n <priority>2</priority>\n</value>'
Short description of the extension.
Extension status.
On-the-fly configuration support.
Name of the extension.
Priority of the extension.
A list of rating extensions.
Data samples:
{}
b'<value />'
Type describing a resource in CloudKitty.
Data samples:
{
"desc": {
"image_id": "a41fba37-2429-4f15-aa00-b5bc4bf557bf"
},
"service": "compute",
"volume": "1"
}
b'<value>\n <service>compute</service>\n <desc>\n <item>\n <key>image_id</key>\n <value>a41fba37-2429-4f15-aa00-b5bc4bf557bf</value>\n </item>\n </desc>\n <volume>1</volume>\n</value>'
Description of the resources parameters.
Name of the service.
Volume of resources.
A list of CloudKittyResources.
Data samples:
{}
b'<value />'
Return the summary to pay for a given period.
SummaryCollectionModel
Return the list of rated tenants.
list(str
)
Return the amount to pay for a given period.
Decimal
Return a list of rated resources for a time period and a tenant.
begin (datetime
) – Start of the period
end (datetime
) – End of the period
tenant_id (str
) – UUID of the tenant to filter on.
resource_type (str
) – Type of the resource to filter on.
Collection of DataFrame objects.
Represents a rated CloudKitty resource.
Data samples:
{
"desc": {
"flavor": "m1.tiny",
"vcpus": "1"
},
"rating": "1.0",
"service": "compute",
"volume": "1.0"
}
b'<value>\n <rating>1.0</rating>\n <service>compute</service>\n <desc>\n <item>\n <key>flavor</key>\n <value>m1.tiny</value>\n </item>\n <item>\n <key>vcpus</key>\n <value>1</value>\n </item>\n </desc>\n <volume>1.0</volume>\n</value>'
Type describing a stored data frame.
Data samples:
{
"begin": "2015-04-22T07:00:00",
"end": "2015-04-22T08:00:00",
"resources": [
{
"desc": {
"flavor": "m1.tiny",
"vcpus": "1"
},
"rating": "1.0",
"service": "compute",
"volume": "1.0"
}
],
"tenant_id": "69d12143688f413cbf5c3cfe03ed0a12"
}
b'<value>\n <begin>2015-04-22T07:00:00</begin>\n <end>2015-04-22T08:00:00</end>\n <tenant_id>69d12143688f413cbf5c3cfe03ed0a12</tenant_id>\n <resources>\n <item>\n <rating>1.0</rating>\n <service>compute</service>\n <desc>\n <item>\n <key>flavor</key>\n <value>m1.tiny</value>\n </item>\n <item>\n <key>vcpus</key>\n <value>1</value>\n </item>\n </desc>\n <volume>1.0</volume>\n </item>\n </resources>\n</value>'
Begin date for the sample.
End date for the sample.
A resource list.
Tenant owner of the sample.
A list of stored data frames.
Data samples:
{
"dataframes": [
{
"begin": "2015-04-22T07:00:00",
"end": "2015-04-22T08:00:00",
"resources": [
{
"desc": {
"flavor": "m1.tiny",
"vcpus": "1"
},
"rating": "1.0",
"service": "compute",
"volume": "1.0"
}
],
"tenant_id": "69d12143688f413cbf5c3cfe03ed0a12"
}
]
}
b'<value>\n <dataframes>\n <item>\n <begin>2015-04-22T07:00:00</begin>\n <end>2015-04-22T08:00:00</end>\n <tenant_id>69d12143688f413cbf5c3cfe03ed0a12</tenant_id>\n <resources>\n <item>\n <rating>1.0</rating>\n <service>compute</service>\n <desc>\n <item>\n <key>flavor</key>\n <value>m1.tiny</value>\n </item>\n <item>\n <key>vcpus</key>\n <value>1</value>\n </item>\n </desc>\n <volume>1.0</volume>\n </item>\n </resources>\n </item>\n </dataframes>\n</value>'
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.