curl -X POST '{host}/api/v1/alerting/rules' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"name":"High CPU Usage","description":"Alert when CPU exceeds 90%","resourceType":"vm","metricName":"cpu_usage_percent","operator":">","threshold":90.0,"duration":300,"severity":"critical","state":"enabled","notifyUrl":"https://example.com/callback","platformUuid":"plat-001-abc","type":"metric","logQuery":"level=error","logWindow":600,"actions":[{"uuid":"action-001","ruleUuid":"rule-abc123-def456","type":"command_snippet","label":"Restart Service","content":"systemctl restart nginx","orderIndex":1,"createDate":"2026-01-15T08:00:00Z"}],"labelSelectors":[{"key":"value","operator":"value","values":["example"]}],"productType":"value","resourceSubType":"value","sourceSystem":"value","sourceAlarmUuid":"value","sourceAlarmName":"value","sourceNamespace":"value","sourceMetricName":"value","sourceLabels":"value","filterRules":"value","conditionType":"value","thresholdUnit":"value","rawPeriod":10,"rawEmergencyLevel":"value","ruleStatus":"value","prometheusMetricStatus":"value","defaultConfigSnapshot":"value","sourceRawPayload":"value"}'