Retrieve Details of All Available Metric Types

get

/monitoring/monitoring/{idDomainName}/.customer/api/v1/metricTypes

Request

Path Parameters
Query Parameters
Header Parameters
  • Basic Authentication credentials. The user must be located in the identity domain name specified by the header X-ID-TENANT-NAME.
  • Set to the identity domain ID where the user specified in the Authorization header resides.
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : MetricTypes
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : MetricType
Type: object
Show Source
Nested Schema : MetricSubjectType
Type: object
Show Source
Nested Schema : MetricUnit
Type: object
Show Source
Back to Top

Examples

The following example shows how to retrieve details of all available metric types by submitting a GET request on the REST resource using cURL. See Use cURL.

curl -X GET -H "Authorization: Basic d2VibG9naWM6V2VsY29tZTE=" -H "X-ID-TENANT-NAME:mydomain" https://monitoring.us.oraclecloud.com/monitoring/mydomain/.customer/api/v1/metricTypes

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK
Date: Tue, 08 Mar 2016 12:20:49 GMT
Content-Type: application/json

Example of Response Body

The following example shows the contents of the response body in JSON format:

{
  "items": [
    {
      "id": "compute.CPU.PERCENT",
      "name": "cpuPercent",
      "displayName": "CPU Percentage",
      "shortDisplayName": "CPU",
      "unit": {
        "id": "PERCENT",
        "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricUnits/PERCENT"
      },
      "subjectType": {
        "id": "compute.vm"
      },
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricTypes/compute.CPU.PERCENT"
    },
    {
      "id": "compute.MEMORY.CURRENT",
      "name": "currentUsage",
      "displayName": "Memory Usage",
      "shortDisplayName": "Memory Usage",
      "unit": {
        "id": "KILOBYTES",
        "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricUnits/KILOBYTES"
      },
      "subjectType": {
        "id": "compute.vm"
      },
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricTypes/compute.MEMORY.CURRENT"
    },
    {
      "id": "compute.MEMORY.CURRENT_PERCENT",
      "name": "currentUsagePercent",
      "displayName": "Memory Usage Percentage",
      "shortDisplayName": "Memory Percent",
      "unit": {
        "id": "PERCENT",
        "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricUnits/PERCENT"
      },
      "subjectType": {
        "id": "compute.vm"
      },
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricTypes/compute.MEMORY.CURRENT_PERCENT"
    },
    {
      "id": "compute.NETWORK.RX_BYTES_PER_SEC",
      "name": "netRxBps",
      "displayName": "Network bytes received per second",
      "shortDisplayName": "Network Rcvd",
      "unit": {
        "id": "BYTES_PER_SEC",
        "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricUnits/BYTES_PER_SEC"
      },
      "subjectType": {
        "id": "compute.vm"
      },
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricTypes/compute.NETWORK.RX_BYTES_PER_SEC"
    },
    {
      "id": "compute.NETWORK.TX_BYTES_PER_SEC",
      "name": "netRxBps",
      "displayName": "Network bytes sent per second",
      "shortDisplayName": "Network Sent",
      "unit": {
        "id": "BYTES_PER_SEC",
        "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricUnits/BYTES_PER_SEC"
      },
      "subjectType": {
        "id": "compute.vm"
      },
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricTypes/compute.NETWORK.TX_BYTES_PER_SEC"
    },
    {
      "id": "compute.IOSTAT.READ",
      "name": "opStatsRead",
      "displayName": "Virtual block device read",
      "shortDisplayName": "IOStat Read",
      "unit": {
        "id": "SECTORS",
        "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricUnits/SECTORS"
      },
      "subjectType": {
        "id": "compute.vm"
      },
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricTypes/compute.IOSTAT.READ"
    },
    {
      "id": "compute.IOSTAT.WRITE",
      "name": "opStatsWrite",
      "displayName": "Virtual block device write",
      "shortDisplayName": "IOStat Write",
      "unit": {
        "id": "SECTORS",
        "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricUnits/SECTORS"
      },
      "subjectType": {
        "id": "compute.vm"
      },
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricTypes/compute.IOSTAT.WRITE"
    }
  ],
  "offset": 0,
  "limit": 1000,
  "hasMore": false,
  "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricTypes"
}
Back to Top