3.8. Resource

Overview

The information of resources are included.

Data Type

parameter description datatype
links The link information of the resource and meters List
href The link url to access the resource or its meters String
rel The link type (“self” or meter name) String
display_name The friendly display name of the resource String
project_id The unique ID of the project(tenant) which the resource is belonging to String
resource_id The unique ID of the resource String
namespace The namespace of the resource String
deleted The monitoing status of the resource. If this parameter is “false”, the resource has been monitored. Boolean
metadata Non-use -
source Non-use -
user_id Non-use -

Data Sample

[
    {
        "links": [
              {
                "href": "https://example.com/v2/resources/nova_bd9431c1-8d69-4ad3-803a-8d4a6b89fd36",
                "rel": "self"
              },
              {
                "href": "https://example.com/v2/meters/nova.cpu.utilization.percents?q.field=resource_id&q.value=nova_bd9431c1-8d69-4ad3-803a-8d4a6b89fd36",
                "rel": "nova.cpu.utilization.percents"
              },
              {
                "href": "https://example.com/v2/meters/nova.disk.read.bytes?q.field=resource_id&q.value=nova_bd9431c1-8d69-4ad3-803a-8d4a6b89fd36",
                "rel": "nova.disk.read.bytes"
              },
              {
                "href": "https://example.com/v2/meters/nova.disk.write.bytes?q.field=resource_id&q.value=nova_bd9431c1-8d69-4ad3-803a-8d4a6b89fd36",
                "rel": "nova.disk.write.bytes"
              },
              {
                "href": "https://example.com/v2/meters/nova.disk.read.requests?q.field=resource_id&q.value=nova_bd9431c1-8d69-4ad3-803a-8d4a6b89fd36",
                "rel": "nova.disk.read.requests"
              },
              {
                "href": "https://example.com/v2/meters/nova.disk.write.requests?q.field=resource_id&q.value=nova_bd9431c1-8d69-4ad3-803a-8d4a6b89fd36",
                "rel": "nova.disk.write.requests"
              },
              {
                "href": "https://example.com/v2/meters/nova.network.incoming.bytes?q.field=resource_id&q.value=nova_bd9431c1-8d69-4ad3-803a-8d4a6b89fd36",
                "rel": "nova.network.incoming.bytes"
              },
              {
                "href": "https://example.com/v2/meters/nova.network.outgoing.bytes?q.field=resource_id&q.value=nova_bd9431c1-8d69-4ad3-803a-8d4a6b89fd36",
                "rel": "nova.network.outgoing.bytes"
              },
              {
                "href": "https://example.com/v2/meters/nova.vm.status.bool?q.field=resource_id&q.value=nova_bd9431c1-8d69-4ad3-803a-8d4a6b89fd36",
                "rel": "nova.vm.status.bool"
              },
              {
                "href": "https://example.com/v2/meters/nova.hv.status.bool?q.field=resource_id&q.value=nova_bd9431c1-8d69-4ad3-803a-8d4a6b89fd36",
                "rel": "nova.hv.status.bool"
              }
        ],
        "metadata": "",
        "project_id": "35b17138-b364-4e6a-a131-8f3099c5be68",
        "resource_id": "nova_bd9431c1-8d69-4ad3-803a-8d4a6b89fd36",
        "source": "",
        "user_id": "",
        "namespace": "nova",
        "display_name": "vm1",
        "deleted": false
    }
]