Skip to main content

SubResourcesGraphResponseModel

statusboolean

Whether the request succeeded.

Example: true
messagestring

Human-readable description of the result.

Example: Billing Details Sub-Resources Historical Cost datapoints for the Virtual Machine Sub Resource Retrieved Successfully.
sub_resources_costs object
org_idinteger

Identifier of the organization that owns the resource.

Example: 8429
billing_history object[]

Billing history entries for the resource.

  • Array [
  • 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.

    gpu_incurred_billnumber
    Example: 0
    gpu_incurred_bill_graph object[]
  • Array [
  • datetimestring

    ISO 8601 UTC timestamp.

    Example: 2026-05-06T15:18:42Z
    valuenumber

    Value of the entry.

    Example: 0.011612903333333001
  • ]
  • cpu_incurred_billnumber
    Example: 0.006666666666666
    cpu_incurred_bill_graph object[]
  • Array [
  • datetimestring

    ISO 8601 UTC timestamp.

    Example: 2026-05-06T15:18:42Z
    valuenumber

    Value of the entry.

    Example: 0.011612903333333001
  • ]
  • ram_incurred_billnumber
    Example: 0
    ram_incurred_bill_graph object[]
  • Array [
  • datetimestring

    ISO 8601 UTC timestamp.

    Example: 2026-05-06T15:18:42Z
    valuenumber

    Value of the entry.

    Example: 0.011612903333333001
  • ]
  • publicip_incurred_billnumber
    Example: 0
    publicip_incurred_bill_graph object[]
  • Array [
  • datetimestring

    ISO 8601 UTC timestamp.

    Example: 2026-05-06T15:18:42Z
    valuenumber

    Value of the entry.

    Example: 0.011612903333333001
  • ]
  • disk_incurred_billnumber
    Example: 0
    disk_incurred_bill_graph object[]
  • Array [
  • datetimestring

    ISO 8601 UTC timestamp.

    Example: 2026-05-06T15:18:42Z
    valuenumber

    Value of the entry.

    Example: 0.011612903333333001
  • ]
  • ephemeral_incurred_billnumber
    Example: 0
    ephemeral_incurred_bill_graph object[]
  • Array [
  • datetimestring

    ISO 8601 UTC timestamp.

    Example: 2026-05-06T15:18:42Z
    valuenumber

    Value of the entry.

    Example: 0.011612903333333001
  • ]
  • ]
  • total_countinteger

    Total number of items across all pages of this result set.

    Example: 1
    granularityinteger

    Time bucket size, in seconds, for the data points returned.

    Example: 86400
    SubResourcesGraphResponseModel
    {
    "status": true,
    "message": "Billing Details Sub-Resources Historical Cost datapoints for the Virtual Machine Sub Resource Retrieved Successfully.",
    "sub_resources_costs": {
    "org_id": 8429,
    "billing_history": [
    {
    "attributes": {
    "id": "9d8a4f10-2c5d-4b14-8f5a-1e6c8e8b2d3f",
    "infrahub_id": 8429,
    "resource_name": "example-vm"
    },
    "metrics": {
    "gpu_incurred_bill": 0,
    "gpu_incurred_bill_graph": [
    {
    "datetime": "2026-05-06T15:18:42Z",
    "value": 0.011612903333333001
    }
    ],
    "cpu_incurred_bill": 0.006666666666666,
    "cpu_incurred_bill_graph": [
    {
    "datetime": "2026-05-06T15:18:42Z",
    "value": 0.011612903333333001
    }
    ],
    "ram_incurred_bill": 0,
    "ram_incurred_bill_graph": [
    {
    "datetime": "2026-05-06T15:18:42Z",
    "value": 0.011612903333333001
    }
    ],
    "publicip_incurred_bill": 0,
    "publicip_incurred_bill_graph": [
    {
    "datetime": "2026-05-06T15:18:42Z",
    "value": 0.011612903333333001
    }
    ],
    "disk_incurred_bill": 0,
    "disk_incurred_bill_graph": [
    {
    "datetime": "2026-05-06T15:18:42Z",
    "value": 0.011612903333333001
    }
    ],
    "ephemeral_incurred_bill": 0,
    "ephemeral_incurred_bill_graph": [
    {
    "datetime": "2026-05-06T15:18:42Z",
    "value": 0.011612903333333001
    }
    ]
    }
    }
    ],
    "total_count": 1,
    "granularity": 86400
    }
    }