Get metric type

This endpoint is used to fetch the metric type details.

Leave Feedback

URL

GET https://{api-url}/api/v2/metric/tenants/{tenantId}/metrics/{metric}/metricType

Sample URLs

https://{api-url}/api/v2/metric/tenants/client_7/metrics/system.metric.file.send/metricType

{metric} denotes the metric name.

Sample response

{
 "metricName": "system.metric.file.send",
 "groupName": "system.device.test.*",
 "type": "Counter",
 "resourceType": "Device",
 "displayName": "Metric test",
 "unit": "packet/min",
 "displayUnit": " Packets per minute (packet/min)",
 "factor": 1,
 "unitLabel": " Packets per minute (packet/min)",
 "description": "Sample metric test please ignore",
 "consolFunc": "AVERAGE",
 "displayByComponent": false,
 "displayOrder": 100,
 "topMetric": false
}