I have a json response
{
"applications": [
{
"name": "APP1",
"instances": [
{
"instanceId": "app1",
"healthCheckUrl": "http",
"statusPageUrl": "url",
"homePageUrl": "url",
"status": "UP"
}
]
},
{
"name": "app2",
"instances": [
{
"instanceId": "idname",
"healthCheckUrl": "url",
"statusPageUrl": "url",
"homePageUrl": "url",
"status": "UP"
}
]
},}
}
here is my config
check.response:
status: [200, 201]
json:
- description: check status
condition:
equals:
status: UP
processors:
- decode_json_fields:
fields: ["applications"]
process_array: false
max_depth: 3
target: ""
overwrite_keys: false
add_error_key: true
I am getting error message in the heartbeat. I want to verify the status of the field status which is nested for each application and also send the whole response to elastic search .
Thanks in advance