search

BatchGetMetrics (POST /v1/dictionary/metrics:batchGet)

The BatchGetMetrics method returns definitions for more than one metric (where GetMetric works), but not all metrics (where ListMetrics works).

Status Codes

  • 200 (request was good)
  • 400 (no metric names requested)

Examples

BatchGetMetrics Request
curl https://api.zenoss.io/v1/dictionary/metrics:batchGet \
  -H "zenoss-api-key: YOUR-API-KEY" \
  -X POST -s \
  -d '{"names": ["sysUpTime_sysUpTime", "invalid"]}'
BatchGetMetrics Response
{
  "metrics": [
    {
      "name": "sysUpTime_sysUpTime",
      "label": "Uptime",
      "description": "The time (in hundredths of a second) ...",
      "units": "centiseconds",
      "minimum": "0"
    }
  ]
}