{ "name": "Cloud Logging Health", "type": "monitor", "monitor_type": "cluster_metrics_monitor", "enabled": true, "schedule": { "period": { "unit": "MINUTES", "interval": 1 } }, "inputs": [ { "uri": { "api_type": "CLUSTER_HEALTH", "path": "_cluster/health/", "path_params": "", "url": "http://localhost:9200/_cluster/health/" } } ], "triggers": [ { "query_level_trigger": { "name": "Cloud Logging health is red", "severity": "1", "condition": { "script": { "source": "ctx.results[0].status == \"Red\"", "lang": "painless" } }, "actions": [ { "name": "Notify", "destination_id": "", "message_template": { "source": "Monitor {{ctx.monitor.name}} just entered alert status. For more details query the API as described in https://opensearch.org/docs/1.3/api-reference/cluster-api/cluster-health/\n - Trigger: {{ctx.trigger.name}}\n - Severity: {{ctx.trigger.severity}}\n - Period start: {{ctx.periodStart}}\n - Period end: {{ctx.periodEnd}}\n - /app/alerting", "lang": "mustache" }, "throttle_enabled": true, "subject_template": { "source": "Cloud Logging health is red", "lang": "mustache" }, "throttle": { "value": 60, "unit": "MINUTES" } } ] } } ] }