Page 1 of 1

Manipulate HTTP response

Posted: Mon Feb 03, 2020 4:48 am
by igeoigeo
Hello,

I would like to manipulate the HTTP response that I get from a web serivce (JSON format):

Code: Select all

  "state": "Unhealthy",
  "time": 500,
  "details": [
    {
      "key": "One",
      "value": "Healthy",
      "time": 200
    },
    {
      "key": "Two",
      "value": "Healthy",
      "time": 200
    },
    {
      "key": "Three",
      "value": "Healthy",
      "time": 100
    },
  ]
}
{

In other words, I would like to print the result of each key value referenced by the key. Is there a way of manipulating this by using the check_http?

thank you.

Re: Manipulate HTTP response

Posted: Tue Feb 04, 2020 7:30 pm
by Box293
You would have to write your own plugin to handle this logic.