You are here:-PRTG HTTP Data Advanced – JSON XML

PRTG HTTP Data Advanced – JSON XML

Table of content

  1. XML
  2. JSON

A continuación mostramos algunos ejemplos de respuestas en formato XML  y JSON soportados por el sensor HTTP Data Advanced:

XML

<?xml version="1.0" encoding="utf-8" ?>
<prtg>
<result>
<channel>Channel 1 (float)</channel>
<value>12.3456</value>
<float>1</float>
<unit>custom</unit>
<customunit>celsius</customunit>
</result>
<result>
<channel>Channel 2 (integer)</channel>
<value>42</value>
<limitmode>1</limitmode>
<limitmaxwarning>50</limitmaxwarning>
<limitmaxerror>60</limitmaxerror>
</result>
<result>
<channel>Channel 3 (lookup)</channel>
<value>1</value>
<valuelookup>prtg.standardlookups.exchangedag.yesno.stateyesok</valuelookup>
</result>
<result>
<channel>Channel 4 (delta)</channel>
<value>123456</value>
<mode>difference</mode>
<unit>bytesbandwidth</unit>
</result>
<text>The sensor's message</text>
</prtg>

JSON

 

{
  "prtg": {
    "result": [
      {
        "channel": "Channel 1 (float)",
        "value": "12.3456",
        "float": "1",
        "unit": "custom",
        "customunit": "celsius"
      },
      {
        "channel": "Channel 2 (integer)",
        "value": "42",
        "limitmode": "1",
        "limitmaxwarning": "50",
        "limitmaxerror": "60"
      },
      {
        "channel": "Channel 3 (lookup)",
        "value": "1",
        "valuelookup": "prtg.standardlookups.exchangedag.yesno.stateyesok"
      },
      {
        "channel": "Channel 4 (delta)",
        "value": "123456",
        "mode": "difference",
        "unit": "bytesbandwidth"
      }
    ],
    "text": "The sensor's message"
  }
}


Last Update: febrero 28, 2017  

febrero 28, 2017   52   Ateinco    PRTG    
Total 0 Votes:
0

Tell us how can we improve this post?

+ = Verify Human or Spambot ?

Log In is required for submitting new question.

By | 2017-02-28T18:04:35+00:00 febrero 28th, 2017|0 Comments

About the Author:

Leave A Comment

Log In is required for submitting new question.