Unused function, hack to let pecan route requests to subcontrollers.
Return the list of every services mapped to a collector.
Parameters: |
|
---|---|
Return: | Service to collector mappings collection. |
Return type: |
Return a service to collector mapping.
Parameters: |
|
---|---|
Return type: |
Create a service to collector mapping.
Parameters: |
|
---|---|
Return type: |
Delete a service to collector mapping.
Parameters: |
|
---|
Query the enable state of a collector.
Parameters: |
|
---|---|
Return: | State of the collector. |
Return type: |
Set the enable state of a collector.
Parameters: |
|
---|---|
Return: | State of the collector. |
Return type: |
Type describing a collector module.
Data samples:
{
"enabled": true,
"name": "ceilometer"
}
<value>
<name>ceilometer</name>
<enabled>true</enabled>
</value>
Type: | bool |
---|
State of the collector.
Type: | unicode |
---|
Name of the collector.
Type describing a service to collector mapping.
Data samples:
{
"collector": "ceilometer",
"service": "compute"
}
<value>
<service>compute</service>
<collector>ceilometer</collector>
</value>
Type: | unicode |
---|
Name of the collector.
Type: | unicode |
---|
Name of the service.
Type describing a service to collector mapping collection.
Data samples:
{
"mappings": [
{
"collector": "ceilometer",
"service": "compute"
}
]
}
<value>
<mappings>
<item>
<service>compute</service>
<collector>ceilometer</collector>
</item>
</mappings>
</value>
Type: | list(ServiceToCollectorMapping) |
---|
List of service to collector mappings.
Return current configuration.
Return type: | dict(str: None) |
---|
Get the service list.
Return: | List of every services. |
---|---|
Return type: | CloudkittyServiceInfoCollection |
Return a service.
Parameters: |
|
---|---|
Return type: |
Type describing a service info in CloudKitty.
Data samples:
{
"metadata": [
"resource_id",
"flavor",
"availability_zone"
],
"service_id": "compute",
"unit": "instance"
}
<value>
<service_id>compute</service_id>
<metadata>
<item>resource_id</item>
<item>flavor</item>
<item>availability_zone</item>
</metadata>
<unit>instance</unit>
</value>
Type: | list(unicode) |
---|
List of service metadata
Type: | Enum(compute, image, volume, network.bw.in, network.bw.out, network.floating) |
---|
Name of the service.
Type: | unicode |
---|
service unit
A list of CloudKittyServiceInfo.
Data samples:
{
"services": [
{
"metadata": [
"resource_id",
"flavor",
"availability_zone"
],
"service_id": "compute",
"unit": "instance"
}
]
}
<value>
<services>
<item>
<service_id>compute</service_id>
<metadata>
<item>resource_id</item>
<item>flavor</item>
<item>availability_zone</item>
</metadata>
<unit>instance</unit>
</item>
</services>
</value>
return the list of loaded modules.
Return: | name of every loaded modules. |
---|---|
Return type: | CloudkittyModuleCollection |
return a module
Return: | CloudKittyModule |
---|---|
Return type: | CloudkittyModule |
Change the state and priority of a module.
Parameters: |
|
---|---|
Return type: |
Get an instant quote based on multiple resource descriptions.
Parameters: |
|
---|---|
Return: | Total price for these descriptions. |
Return type: | float |
Trigger a rating module list reload.
A rating extension summary
Data samples:
{
"description": "Sample extension.",
"enabled": true,
"hot-config": false,
"priority": 2
}
<value>
<description>Sample extension.</description>
<enabled>true</enabled>
<hot-config>false</hot-config>
<priority>2</priority>
</value>
Type: | unicode |
---|
Short description of the extension.
Type: | bool |
---|
Extension status.
Type: | bool |
---|
On-the-fly configuration support.
Type: | unicode |
---|
Name of the extension.
Type: | int |
---|
Priority of the extension.
A list of rating extensions.
Data samples:
{}
<value />
Type describing a resource in CloudKitty.
Data samples:
{
"desc": {
"image_id": "a41fba37-2429-4f15-aa00-b5bc4bf557bf"
},
"service": "compute",
"volume": "1"
}
<value>
<service>compute</service>
<desc>
<item>
<key>image_id</key>
<value>a41fba37-2429-4f15-aa00-b5bc4bf557bf</value>
</item>
</desc>
<volume>1</volume>
</value>
Type: | dict(unicode: None) |
---|
Description of the resources parameters.
Type: | Enum(compute, image, volume, network.bw.in, network.bw.out, network.floating) |
---|
Name of the service.
Type: | Decimal |
---|
Volume of resources.
A list of CloudKittyResources.
Data samples:
{}
<value />
Return the summary to pay for a given period.
Return type: | SummaryCollectionModel |
---|
Return the list of rated tenants.
Return type: | list(unicode) |
---|
Return the amount to pay for a given period.
Return type: | Decimal |
---|
Return a list of rated resources for a time period and a tenant.
Parameters: |
|
---|---|
Return: | Collection of DataFrame objects. |
Return type: |
Represents a rated CloudKitty resource.
Data samples:
{
"desc": {
"flavor": "m1.tiny",
"vcpus": "1"
},
"rating": "1.0",
"service": "compute",
"volume": "1.0"
}
<value>
<rating>1.0</rating>
<service>compute</service>
<desc>
<item>
<key>flavor</key>
<value>m1.tiny</value>
</item>
<item>
<key>vcpus</key>
<value>1</value>
</item>
</desc>
<volume>1.0</volume>
</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"
}
<value>
<begin>2015-04-22T07:00:00</begin>
<end>2015-04-22T08:00:00</end>
<tenant_id>69d12143688f413cbf5c3cfe03ed0a12</tenant_id>
<resources>
<item>
<rating>1.0</rating>
<service>compute</service>
<desc>
<item>
<key>flavor</key>
<value>m1.tiny</value>
</item>
<item>
<key>vcpus</key>
<value>1</value>
</item>
</desc>
<volume>1.0</volume>
</item>
</resources>
</value>
Type: | datetime |
---|
Begin date for the sample.
Type: | datetime |
---|
End date for the sample.
Type: | list(RatedResource) |
---|
A resource list.
Type: | unicode |
---|
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"
}
]
}
<value>
<dataframes>
<item>
<begin>2015-04-22T07:00:00</begin>
<end>2015-04-22T08:00:00</end>
<tenant_id>69d12143688f413cbf5c3cfe03ed0a12</tenant_id>
<resources>
<item>
<rating>1.0</rating>
<service>compute</service>
<desc>
<item>
<key>flavor</key>
<value>m1.tiny</value>
</item>
<item>
<key>vcpus</key>
<value>1</value>
</item>
</desc>
<volume>1.0</volume>
</item>
</resources>
</item>
</dataframes>
</value>