lovleen_arora_2
Jul 22, 2016Nimbostratus
Help to write the Monitor script
Hi, my server response is like this, when I accss the URL on HTTPS
{"myStatus":"OK","datapowerStatus":{"status":"OK","message":"{\"result\": {\"domain\": \"My_StubServices\"}}","millisecondsTaken":47},"myDatabaseStatus":{"status":"OK","message":"DBName: my-training-db","millisecondsTaken":11},"loggingDatabaseStatus":{"status":"OK","message":"DBName: my-training-log-db","millisecondsTaken":69}}
My intention is to write a monitor (HTTPS), so it search the string "OK" in the response, and then counts it, and if the count is equal or more than 4, then set the monitor as pass.
thanks in advance.