Edit a Health Config

The following example shows how to change an existing Transport WR11 health configuration.

Request

/ws/v1/health_configs/inventory/FE000002/TRANSPORT WR11
{  
  "id": "FE000002/TRANSPORT WR11",
  "enabled": true, 
  "rules":[  
    {  
      "enabled":true,
      "stream":"DataPoint/*/metrics/sys/mem/free",
      "threshold":{  
        "error":{  
          "ranges":[  
            {  
              "upper":150000
            }
          ]
        },
        "warning":{  
          "ranges":[  
            {  
              "lower":150000,
              "upper":700000,
              "lower_bound_type":"OPEN",
              "upper_bound_type":"OPEN"
            }
          ]
        },
        "normal":{  
          "ranges":[  
            {  
              "lower":700000
            }
          ]
        }
      }
    }
  ]
}

Response

Note Because each device health configuration defines thresholds for multiple health metrics, the output is not shown here. To see sample output, go to Documentation > API Explorer and send the v1/health_configs/Change a health config to see sample results.