How to add body to a request while checking for status of the url in heartbeat.
Here is my sample from heartbeat.yml
- type: http
enabled: true
name: "vtrack"
urls: [""]
check.request:
method: GET
headers: [
'Content-Type': 'application/json',
'sessionId': '',
'userType': '']
body: {"data":["XXXXX"],"key":"YYYYY"}
check.response.status: 200
schedule: '@every 60s'
Above line throws error that body should be an string and not an object. And moreover how do we add username and password to the url ?