URL

GET https://{api-url}/api/v2/monitoring/metric/name/{name}
GET https://{api-url}/api/v2/monitoring/metric/id/{id}

Sample URLs

https://api.opsramp.com/api/v2/monitoring/metric/name/system.cpu.utilization
https://api.opsramp.com/api/v2/monitoring/metric/id/1125687

Parameters

The following parameters are mandatory unless specified otherwise.

FieldTypeDefault
namestringNULL
idstringNULL

Status code

200 CREATED

Sample response

{
    "metricName": "system.cpu.utilization",
    "displayName": "CPU Utilization",
    "groupName": "system.cpu.utilization",
    "factor": 1.0,
    "consolFunc": "AVERAGE",
    "displayByComponent": false,
    "displayOrder": 100,
    "topMetric": false,
    "timeSeries": true,
    "warnRepeatCount": 1,
    "criticalRepeatCount": 1,
    "state": "Active",
    "graphPoint": "NONE",
    "format": "VALUE",
    "recommended": 0,
    "useExpression": false,
    "formattedDataUsage": "NONE",
    "unitConversionFactor": 0.0,
    "appType": "CUSTOM",
    "adapterType": "Application"
}