Skip to main content

GET /customAlerts/metrics

Use this method to return a list of metrics that can be used in custom alert rules.

Note
This REST API requires Lenovo XClarity Orchestrator v1.3 or later.

Authentication

Authentication with username and password is required.

Resource URI

GET https://{orchestrator_server_IP}/customAlerts/metrics

Query parameters

None

Request body

None

Response codes

CodeDescriptionComments
200OKThe request completed successfully.

Response body

When the request is successful, the following attributes are returned. If the request fails, standard message attributes are returned (see Status messages).

AttributesTypeDescription
resultsArray of objectsInformation about each metric
 metricStringMetric name
 sampleRateIntegerRate, in seconds, at which the metrics values are recorded
_linksObjectResource URI (see Links)
The following example is returned if the request is successful.
{
"results": [{
"metric": "cpu_temp",
"sampleRate": "60"
},
{
"metric": "cpu_utilization",
"sampleRate": "30"
}],
"_links": {
"rel": "self",
"uri": "/api/v1/customAlerts/metrics"
}
}