Developers API
assignRuleSet
Add a Metrics Rule Set to the specified host.
By assigning Rule Sets to Metrics-enabled hosts, alerts can be generated when rules in that set are breached.
Request Parameters
| Parameter | Data Type | Description | Required | Default |
|---|---|---|---|---|
| hostid | integer | The HostID identifying the host to which the Rule Set is added | Required | - |
| rulesetid | integer | The RuleSetID identifying the Rule Set to add | Required | - |
Response Data
| Response Variable | Data Type | Description |
|---|---|---|
| errorcode | integer | Returns an errorcode of 0 if call is successful. |