Developers API
getHostRuleSets
Queries the Metrics Rule Sets assigned to the specified host.
Rule Sets are used to trigger alerts when Metrics breach pre-defined limits, e.g. when CPU Usage exceeds a threshold or when Disk Space runs low.
Request Parameters
| Parameter | Data Type | Description | Required | Default |
|---|---|---|---|---|
| hostid | integer | The HostID identifying the host to be queried | Required | - |
Response Data
| Response Variable | Data Type | Description |
|---|---|---|
| errorcode | integer | Returns an errorcode of 0 if call is successful. |
| rulesets | This is an array - its' contents follow: | |
| hostrulesetid | integer | The ID of this Host-Rule Set instance |
| rulesetid | integer | The ID of the Rule Set |
| name | integer | The name of the Rule Set |