Endpoint
/api/v2/metric/tenants/{tenantId}/rtypes/{rtype}/resources/{resource}/metrics/{metric}

Gets the list of metrics on a resource.

Path Parameters
tenantId
string

Describes clientId or mspId of the tenant

rtype
string

Describes supported resource type

metric
string

Describes metric name

resource
string

Describes resource on which metric applied

Responses

OK

[
  {
    "availabilityMetric": true,
    "description": "The percentage of elapsed time that the processor spends to execute a non-Idle thread",
    "displayName": "CPU Utilization",
    "metricName": "system.cpu.utilization",
    "thresholdType": "STATIC",
    "unit": "%",
    "unitLabel": "Utilization"
  },
  {
    "availabilityMetric": false,
    "description": "Used space on the selected logical disk drive",
    "displayName": "Disk Utilization",
    "metricName": "system.disk.used",
    "thresholdType": "FORECAST",
    "unit": "GB",
    "unitLabel": "Utilization"
  }
]
Endpoint
/api/v2/metric/tenants/{tenantId}/rtypes/{rtype}/resources/{resource}/metrics/{metric}

Post multiple metrics on a resource.

Path Parameters
tenantId
string

Describes clientId or mspId of the tenant

rtype
string

Describes supported resource type

metric
string

Describes metric name

resource
string

Describes resource on which metric applied

instanceName
string

Instance name.

instanceVal
string

Instance value.

metricName
string

Metric name.

ts
string

Time in seconds.

[
  {
    "instanceName": "cpu.utilization",
    "instanceVal": "13.50",
    "metricName": "system.cpu.utilization",
    "ts": "1448274610"
  },
  {
    "instanceName": "rta",
    "instanceVal": "10.50",
    "metricName": "system.ping.rta",
    "ts": "1448274620"
  }
]

Responses

OK