Ad Widget

Collapse

HTTP Agent Discovery and LLD, JSON with Index

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • benhanson
    Junior Member
    • Feb 2012
    • 17

    #1

    HTTP Agent Discovery and LLD, JSON with Index

    I'm attempting to poll stats from a REST API, where I have an endpoint containing index values, then endpoints with details for each indexed node. I'm having trouble getting past the initial discovery setup, i.e. getting the index values into an LLD Macro in order to feed into item prototypes.

    JSON output from endpoint is:

    {"status":"OK","details":
    {"result":"SUCCESS","api_version":"1.00","units ":" ALL","data":
    {"action":"CHECK","response":["1","2","3","4","5","6"]}}}​

    where response contains the index values of the number of nodes.

    Do I need a preprocessing step to pull out the index values?
Working...