Update Health Rule
appd_update_health_ruleUpdate an existing AppDynamics health rule by ID. Change specific fields like name, enabled status, conditions, or evaluation window while leaving others unchanged.
Instructions
Update an existing health rule by ID.
Fetches the current rule, merges the provided fields, then PUTs the updated rule back. Only fields you supply are changed; unspecified fields retain their current values.
Args:
application (string|number): App name or ID
healthRuleId (number): ID of the health rule to update
name, enabled, affectedEntityType, criticalConditions, warningConditions, conditionAggregationType, useDataFromLastNMinutes, waitTimeAfterViolation — all optional
Returns: Updated health rule object.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New health rule name. | |
| enabled | No | Enable or disable the rule. | |
| application | Yes | Application name or numeric ID. | |
| affectedNode | No | Scope to a specific node (TIER_NODE_HEALTH / TIER_NODE_TRANSACTION_PERFORMANCE only). Takes precedence over affectedTier when both are provided. | |
| affectedTier | No | Scope to a specific tier (TIER_NODE_HEALTH / TIER_NODE_TRANSACTION_PERFORMANCE only). Use when custom metrics only exist on nodes in a particular tier. | |
| healthRuleId | Yes | ID of the health rule to update. | |
| customEntityName | No | Entity name for CUSTOM (SIM) rules. Use the server hostname. | |
| customEntityType | No | Entity type for CUSTOM (SIM) rules. Use "SERVER" for SIM nodes. | |
| warningConditions | No | Warning conditions. | |
| affectedEntityType | No | Entity type. | |
| criticalConditions | No | Critical conditions. | |
| waitTimeAfterViolation | No | Re-alert wait time in minutes. | |
| useDataFromLastNMinutes | No | Evaluation window in minutes. | |
| conditionAggregationType | No | ALL or ANY. |