Heartbeat Expression Body Content

Hi,

I am trying to monitor an endpoint but I need check if in the json response body exists this expression: "status":"Success" or only the word "Success" at least.

This is my test:

Json Response:

{
    "latest_run": {
        "id": "202207070400044877",
        "name": "202207070400044877",
        "status": "Success",
        "start_time": "2022-07-07T04:00:04.4877111Z",
        "end_time": "2022-07-07T04:02:32.5619149Z",
        "duration": "00:02:28.0742038",
        "output_url": "url",
        "error_url": null,
        "url": "url",
        "job_name": "AppCargaRFC",
        "trigger": "Schedule - 0 0 4 * * *"
    },
    "history_url": "url",
    "scheduler_logs_url": "log_url",
    "name": "AppCargaRFC",
    "run_command": "AppCargaRFC.exe",
    "url": "url",
    "extra_info_url": "url",
    "type": "triggered",
    "error": null,
    "using_sdk": false,
    "settings": {
        "schedule": "0 0 4 * * *"
    }
}

This is my configuration:

- type: http
  id: estado
  name: appportal
  schedule: '@every 180s'
  hosts: ["url"]
  username: "$AppPortal"
  password: "blablabla"
  check.request:
    method: GET
  check.response:
    status: [200]
    json:
      - description: check status
        expression: '"Success"'

An this was the error.message form elastic:

json:
  - description: check status
    expression: '"Success"'

JSON body did not match 1 expressions or conditions 'rule 'check status'("Success") not matched.'. Received JSON...

  json:
      - description: check status
        expression: '"status": "Success"'

job could not be initialized: could not load JSON check: could not compile gval expression '"status": "Success"': parsing error: "status": "Success" :1:9 - 1:10 unexpected ":" while scanning operator

Could you help me. Pls! :grimacing: