Return the list of every mapping type available.
Return type: | list(unicode) |
---|
Get the service list
Return: | List of every services. |
---|---|
Return type: | ServiceCollection |
Return a service.
Parameters: |
|
---|---|
Return type: |
Create hashmap service.
Parameters: |
|
---|---|
Return type: |
Delete the service and all the sub keys recursively.
Parameters: |
|
---|
Type describing a service.
A service is directly mapped to the usage key, the collected service.
Data samples:
{
"name": "compute",
"service_id": "a733d0e1-1ec9-4800-8df8-671e4affd017"
}
<value>
<service_id>a733d0e1-1ec9-4800-8df8-671e4affd017</service_id>
<name>compute</name>
</value>
Type: | unicode |
---|
Name of the service.
Type: | uuid |
---|
UUID of the service.
Type describing a list of services.
Data samples:
{
"services": [
{
"name": "compute",
"service_id": "a733d0e1-1ec9-4800-8df8-671e4affd017"
}
]
}
<value>
<services>
<item>
<service_id>a733d0e1-1ec9-4800-8df8-671e4affd017</service_id>
<name>compute</name>
</item>
</services>
</value>
Type: | list(Service) |
---|
List of services.
Get the field list.
Parameters: |
|
---|---|
Return: | List of every fields. |
Return type: |
Return a field.
Parameters: |
|
---|---|
Return type: |
Create a field.
Parameters: |
|
---|---|
Return type: |
Delete the field and all the sub keys recursively.
Parameters: |
|
---|
Type describing a field.
A field is mapping a value of the ‘desc’ dict of the CloudKitty data. It’s used to map the name of a metadata.
Data samples:
{
"field_id": "ac55b000-a05b-4832-b2ff-265a034886ab",
"name": "image_id",
"service_id": "a733d0e1-1ec9-4800-8df8-671e4affd017"
}
<value>
<field_id>ac55b000-a05b-4832-b2ff-265a034886ab</field_id>
<name>image_id</name>
<service_id>a733d0e1-1ec9-4800-8df8-671e4affd017</service_id>
</value>
Type: | uuid |
---|
UUID of the field.
Type: | unicode |
---|
Name of the field.
Type: | uuid |
---|
UUID of the parent service.
Type describing a list of fields.
Data samples:
{
"fields": [
{
"field_id": "ac55b000-a05b-4832-b2ff-265a034886ab",
"name": "image_id",
"service_id": "a733d0e1-1ec9-4800-8df8-671e4affd017"
}
]
}
<value>
<fields>
<item>
<field_id>ac55b000-a05b-4832-b2ff-265a034886ab</field_id>
<name>image_id</name>
<service_id>a733d0e1-1ec9-4800-8df8-671e4affd017</service_id>
</item>
</fields>
</value>
Type: | list(Field) |
---|
List of fields.
Get the mapping list
Parameters: |
|
---|---|
Return: | List of every mappings. |
Return type: |
Return a mapping.
Parameters: |
|
---|---|
Return type: |
Create a mapping.
Parameters: |
|
---|---|
Return type: |
Update a mapping.
Parameters: |
|
---|
Delete a mapping.
Parameters: |
|
---|
Get the group attached to the mapping.
Parameters: |
|
---|---|
Return type: |
Type describing a Mapping.
A mapping is used to apply rating rules based on a value, if the parent is a field then it’s check the value of a metadata. If it’s a service then it directly apply the rate to the volume.
Data samples:
{
"cost": "4.2",
"field_id": "ac55b000-a05b-4832-b2ff-265a034886ab",
"mapping_id": "39dbd39d-f663-4444-a795-fb19d81af136",
"type": "flat",
"value": "m1.micro"
}
<value>
<mapping_id>39dbd39d-f663-4444-a795-fb19d81af136</mapping_id>
<value>m1.micro</value>
<type>flat</type>
<cost>4.2</cost>
<field_id>ac55b000-a05b-4832-b2ff-265a034886ab</field_id>
</value>
Type: | Decimal |
---|
Value of the mapping.
Type: | uuid |
---|
UUID of the field.
Type: | uuid |
---|
UUID of the hashmap group.
Type: | Enum(flat, rate) |
---|
Type of the mapping.
Type: | uuid |
---|
UUID of the mapping.
Type: | uuid |
---|
UUID of the service.
Type: | unicode |
---|
Key of the mapping.
Type describing a list of mappings.
Data samples:
{
"mappings": [
{
"cost": "4.2",
"field_id": "ac55b000-a05b-4832-b2ff-265a034886ab",
"mapping_id": "39dbd39d-f663-4444-a795-fb19d81af136",
"type": "flat",
"value": "m1.micro"
}
]
}
<value>
<mappings>
<item>
<mapping_id>39dbd39d-f663-4444-a795-fb19d81af136</mapping_id>
<value>m1.micro</value>
<type>flat</type>
<cost>4.2</cost>
<field_id>ac55b000-a05b-4832-b2ff-265a034886ab</field_id>
</item>
</mappings>
</value>
Type: | list(Mapping) |
---|
List of mappings.
Type describing a Threshold.
A threshold is used to apply rating rules based on a level, if the parent is a field then the level is checked against a metadata. If it’s a service then it’s the quantity of the resource that is checked.
Data samples:
{
"cost": "4.2",
"field_id": "ac55b000-a05b-4832-b2ff-265a034886ab",
"level": "1024",
"threshold_id": "39dbd39d-f663-4444-a795-fb19d81af136",
"type": "flat"
}
<value>
<threshold_id>39dbd39d-f663-4444-a795-fb19d81af136</threshold_id>
<level>1024</level>
<type>flat</type>
<cost>4.2</cost>
<field_id>ac55b000-a05b-4832-b2ff-265a034886ab</field_id>
</value>
Type: | Decimal |
---|
Value of the threshold.
Type: | uuid |
---|
UUID of the field.
Type: | uuid |
---|
UUID of the hashmap group.
Type: | Decimal |
---|
Level of the threshold.
Type: | Enum(flat, rate) |
---|
Type of the threshold.
Type: | uuid |
---|
UUID of the service.
Type: | uuid |
---|
UUID of the threshold.
Type describing a list of mappings.
Data samples:
{
"thresholds": [
{
"cost": "4.2",
"field_id": "ac55b000-a05b-4832-b2ff-265a034886ab",
"level": "1024",
"threshold_id": "39dbd39d-f663-4444-a795-fb19d81af136",
"type": "flat"
}
]
}
<value>
<thresholds>
<item>
<threshold_id>39dbd39d-f663-4444-a795-fb19d81af136</threshold_id>
<level>1024</level>
<type>flat</type>
<cost>4.2</cost>
<field_id>ac55b000-a05b-4832-b2ff-265a034886ab</field_id>
</item>
</thresholds>
</value>
Type: | list(Threshold) |
---|
List of thresholds.
Get the group list
Return: | List of every group. |
---|---|
Return type: | GroupCollection |
Return a group.
Parameters: |
|
---|---|
Return type: |
Create a group.
Parameters: |
|
---|---|
Return type: |
Delete a group.
Parameters: |
|
---|
Get the mappings attached to the group.
Parameters: |
|
---|---|
Return type: |
Get the thresholds attached to the group.
Parameters: |
|
---|---|
Return type: |
Type describing a group.
A group is used to divide calculations. It can be used to create a group for the instance rating (flavor) and one if we have premium images (image_id). So you can take into account multiple parameters during the rating.
Data samples:
{
"group_id": "afe898cb-86d8-4557-ad67-f4f01891bbee",
"name": "instance_rating"
}
<value>
<group_id>afe898cb-86d8-4557-ad67-f4f01891bbee</group_id>
<name>instance_rating</name>
</value>
Type: | uuid |
---|
UUID of the group.
Type: | unicode |
---|
Name of the group.
Type describing a list of groups.
Data samples:
{
"groups": [
{
"group_id": "afe898cb-86d8-4557-ad67-f4f01891bbee",
"name": "instance_rating"
}
]
}
<value>
<groups>
<item>
<group_id>afe898cb-86d8-4557-ad67-f4f01891bbee</group_id>
<name>instance_rating</name>
</item>
</groups>
</value>
Type: | list(Group) |
---|
List of groups.