Monitoring & Collection/Auto Remediation
POSTMonitoringSince 1.0SynchronousAuth Required
CreateRemediationPolicy
Create an automated remediation policy that triggers actions based on metric conditions
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
nameStringRequiredDisplay name for the new policy
Example: High CPU Auto-Restart
enabledBooleanRequiredWhether to activate the policy immediately
Example: true
agentSelectorLinkedHashMapRequiredLabel selector to match target agents
Example: (nested object)
conditionOpStringRequiredLogical condition combinator (AND, OR)
Example: AND
conditionsListRequiredConditions for this resource
Example: (nested array)
metricNameStringName of the metric to evaluate as a condition
Example: cpu_usage_percent
operatorStringComparison operator (e.g. >, =, <=, ==)
Example: >
thresholdLongThreshold value for the condition
Example: 90
Responses
Endpoint
POST/api/v1/monitoring/remediation-policies
/api/v1/monitoring/remediation-policies
Request Example
curl -X POST '{host}/api/v1/monitoring/remediation-policies' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"name":"High CPU Auto-Restart","enabled":true,"agentSelector":"(nested object)","conditionOp":"AND","conditions":"(nested array)","action":"restart_service","actionParams":"(nested object)","cooldownSec":300,"verifyAfterSec":60,"maxRetries":3}'
Response Example
200{
"id": "policy-001-abc",
"name": "High CPU Auto-Restart",
"enabled": true,
"agentSelector": null,
"conditionOp": "AND",
"conditions": [
{}
],
"action": "restart_service",
"actionParams": null
}Change History
This API has no change history records yet.
