Hello,
I would like to monitor a system via REST API.
I am putting together a template, with HTTP agent based items on it.
The basic data collection is OK.
Now I would like collect only the last notification from the source system, so I would need
to add a filter to the HTTP / REST request.
I could not really figure out how to use a user macro in the query fields.
I thought this should work, and {$LAST_NOTIFICATION_ID} will be substituted, but it is not:

The macro is super simple:
{$LAST_NOTIFICATION_ID} = 832
Any advise here?
--
I would like to go also one step further:
Between my items in this template there is a key called 'id', which gets updated OK.

In fact I would like to substitute the value of this id, into my http request. "id gt 'value of(nbunotification:id)'"
Could not figure out how to do it.
Your kind help would be really appreciated.
Thanks
Andras
I would like to monitor a system via REST API.
I am putting together a template, with HTTP agent based items on it.
The basic data collection is OK.
Now I would like collect only the last notification from the source system, so I would need
to add a filter to the HTTP / REST request.
I could not really figure out how to use a user macro in the query fields.
I thought this should work, and {$LAST_NOTIFICATION_ID} will be substituted, but it is not:
The macro is super simple:
{$LAST_NOTIFICATION_ID} = 832
Any advise here?
--
I would like to go also one step further:
Between my items in this template there is a key called 'id', which gets updated OK.
In fact I would like to substitute the value of this id, into my http request. "id gt 'value of(nbunotification:id)'"
Could not figure out how to do it.
Your kind help would be really appreciated.
Thanks
Andras
Comment