search

UpdateMetric (PATCH /v1/dictionary/metrics/{name})

The UpdateMetric method updates fields of existing custom metric definitions. To override a definition in the default dictionary, use CreateMetric, which creates a new custom metric.

Status Codes

  • 200 (custom definition was updated)
  • 404 (no custom definition exists with the requested name)

Examples

UpdateMetric Request
curl https://api.zenoss.io/v1/dictionary/metrics/sysUpTime_sysUpTime \
  -H "zenoss-api-key: YOUR-API-KEY" \
  -X PATCH -s \
  -d '{"name": "sysUpTime_sysUpTime", "label": "Updated Uptime"}'
UpdateMetric Response
{
  "name": "sysUpTime_sysUpTime",
  "layer": "TENANT",
  "label": "Updated Uptime"
}