Skip to main content

ResourceLevelBillingVMDetailsResources

attributes object

Additional resource attributes.

idstring

Unique identifier.

Example: 9d8a4f10-2c5d-4b14-8f5a-1e6c8e8b2d3f
infrahub_idinteger

Internal numeric identifier used by Hyperstack for cross-system references.

Example: 8429
resource_namestring

Name of the resource the entry refers to.

Example: example-vm
metrics object

Resource utilisation metrics.

price_per_hournumber

Hourly charge for the resource.

Example: 0.3483871
non_discounted_price_per_hournumber
Example: 0.3483871
incurred_billnumber

Total amount accrued for the resource in the time window, in the response's currency.

Example: 0.015774193694443002
non_discounted_billnumber

Bill amount before any discounts or contract pricing.

Example: 0.015774193694443002
usage_timenumber

Total billable time in the window, expressed in hours.

Example: 163
usage_time_ACTIVEnumber
Example: -10
usage_time_SHUTOFFnumber
Example: 173
usage_time_HIBERNATEDnumber
ResourceLevelBillingVMDetailsResources
{
"attributes": {
"id": "9d8a4f10-2c5d-4b14-8f5a-1e6c8e8b2d3f",
"infrahub_id": 8429,
"resource_name": "example-vm"
},
"metrics": {
"price_per_hour": 0.3483871,
"non_discounted_price_per_hour": 0.3483871,
"incurred_bill": 0.015774193694443002,
"non_discounted_bill": 0.015774193694443002,
"usage_time": 163,
"usage_time_ACTIVE": -10,
"usage_time_SHUTOFF": 173,
"usage_time_HIBERNATED": 0
}
}