URL
POST https://{api-url}/This endpoint is used to create a metric type.
Sample URLs
https://{api-url}/api/v2/metric/tenants/client_7/metrictype
Parameters
Field | Data Type | Description |
---|---|---|
metricName | String | Metric type name. |
displayName | String | Metric display name. |
description | String | Summary of the metric type. |
unit | String | Metric type unit. |
type | String | Metric type. |
groupName | String | (Optional) Metric group name. |
displayUnit | String | (Optional) Unit name displayed in the graph. |
unitLabel | String | (Optional) Label of the y-axis in the graph widget). |
resourceType | String | (Optional) Resource type. |
metricName | String | (Optional) Metric type name. |
Sample request
{
"metricName" : "system.metric.device.test",
"displayName" : "TestMetric",
"description" : "Sample metric please ignore",
"groupName" : "system.test.*",
"unit" : "%",
"type" : "Guage",
"resourceType" : "CPU",
"displayUnit" : "Percentage (%)",
"unitLabel" : "Percentage (%)"
}
Sample response
Null