I'm sorry. Here it is:
{
"watch_id": "_inlined_",
"node": "xAY0l29iSGKCuZOPmASWdQ",
"state": "executed",
"status": {
"state": {
"active": true,
"timestamp": "2018-04-25T16:05:03.894Z"
},
"last_checked": "2018-04-25T16:05:03.894Z",
"last_met_condition": "2018-04-25T16:05:03.894Z",
"actions": {
"enterpriseAlert": {
"ack": {
"timestamp": "2018-04-25T16:05:03.894Z",
"state": "awaits_successful_execution"
},
"last_execution": {
"timestamp": "2018-04-25T16:05:03.894Z",
"successful": false,
"reason": ""
}
}
},
"execution_state": "executed",
"version": -1
},
"trigger_event": {
"type": "manual",
"triggered_time": "2018-04-25T16:05:03.894Z",
"manual": {
"schedule": {
"scheduled_time": "2018-04-25T16:05:03.894Z"
}
}
},
"input": {
"search": {
"request": {
"search_type": "query_then_fetch",
"indices": [
"pymon*"
],
"types": [],
"body": {
"size": 0,
"query": {
"bool": {
"must": {
"match": {
"type": "Microsoft.ServiceFabric/clusters"
}
},
"must_not": {
"match": {
"properties.clusterState": "Available"
}
},
"should": [
{
"range": {
"date_time": {
"gte": "now-5m/m"
}
}
}
]
}
}
}
}
}
},
"condition": {
"compare": {
"ctx.payload.hits.total": {
"gte": 1
}
}
},
"metadata": {
"name": "Check the status of Service Fabric",
"xpack": {
"type": "json"
}
},
"result": {
"execution_time": "2018-04-25T16:05:03.894Z",
"execution_duration": 4,
"input": {
"type": "search",
"status": "success",
"payload": {
"_shards": {
"total": 15,
"failed": 0,
"successful": 15,
"skipped": 0
},
"hits": {
"hits": [],
"total": 430,
"max_score": 0
},
"took": 2,
"timed_out": false
},
"search": {
"request": {
"search_type": "query_then_fetch",
"indices": [
"pymon*"
],
"types": [],
"body": {
"size": 0,
"query": {
"bool": {
"must": {
"match": {
"type": "Microsoft.ServiceFabric/clusters"
}
},
"must_not": {
"match": {
"properties.clusterState": "Available"
}
},
"should": [
{
"range": {
"date_time": {
"gte": "now-5m/m"
}
}
}
]
}
}
}
}
}
},
"condition": {
"type": "compare",
"status": "success",
"met": true,
"compare": {
"resolved_values": {
"ctx.payload.hits.total": 430
}
}
},
"actions": [
{
"id": "enterpriseAlert",
"type": "webhook",
"status": "failure",
"error": {
"root_cause": [
{
"type": "general_script_exception",
"reason": "Error running com.github.mustachejava.codes.DefaultMustache@246918af"
}
],
"type": "general_script_exception",
"reason": "Error running com.github.mustachejava.codes.DefaultMustache@246918af",
"caused_by": {
"type": "mustache_exception",
"reason": "Failed to get value for ctx.payload.hits.hits.1 @[query-template:1]",
"caused_by": {
"type": "mustache_exception",
"reason": "1 @[query-template:1]",
"caused_by": {
"type": "index_out_of_bounds_exception",
"reason": "1"
}
}
}
}
}
]
},
"messages": []
}