CA App Synthetic Monitor API 23.11.3.2p21/23.11.3.2p21 : rule_stats

Compute the statistics of one or more rules, optionally aggregated

price: 1 api credit

<<back to index

parametervaluetypedefault / required*notes
nkeytoken *Session key or token. Automatically assigned (only if optional) or obtained via acct_login/acct_token call.  
acctstring Account e-mail. If left empty, then the request is on behalf of the account that is logged in (nkey).  
namestring (80) Name of monitor (rule).  
folderstring Name of folder of a monitor (empty string is top level folder).  
tagsstring Tag names, comma separated list.  
tags_reqenum (any, all)any  
start_date *Start time, format 'YYYY-MM-DD hh:mm:ss'; Format 'YYYY-MM-DD' without specifying end_date returns statistics for the past 30 minutes..  
end_date End time, format 'YYYY-MM-DD' or 'YYYY-MM-DD hh:mm:ss'.  
aggregatebooleany  
dummyunsigned int Dummy parameter to make the REST call unique and prevent caching.  
callbackstring Callback function for JSONP style calls. When this parameter is given, the result will be JSON instead of XML.  
viewenum (xml, json)xml Specifies the desirable representation of the output (XML or JSON). HTTP Accept header can be used and has precedence.  

Result:

<result>
  <stats>
    <stat>
      <name> string (80) </name>
      <rid> unsigned int </rid>
      <active> boolean </active>
      <consecutive_errors> unsigned int </consecutive_errors>
      <timewarn> int </timewarn>
      <timepoor> int </timepoor>
      <lastcheck> timestamp </lastcheck>
      <errorsince> datetime </errorsince>
      <probes> unsigned int </probes>
      <probe_errors> unsigned int </probe_errors>
      <checks> unsigned int </checks>
      <check_errors> unsigned int </check_errors>
      <uptime> unsigned int </uptime>
      <ttime> unsigned int </ttime>
      <ctime> unsigned int </ctime>
      <ptime> unsigned int </ptime>
      <dtime> unsigned int </dtime>
      <dsize> unsigned int </dsize>
      <sla_warn> unsigned int </sla_warn>
      <sla_poor> unsigned int </sla_poor>
    </stat>
    ...
  </stats>
</result>
(presence of output fields depends on input parameters)

Error codes:

codedescription
0okay
1000authentication error
1001call syntax error
1002undefined name or id
1003account limit exceeded
1004database error
1005duplicate entry
1006upgrade account
1007not yours (anymore)
1008session expired
1009insufficient credits
1010messaging error
1011undefined result
1012cannot perform that operation
1013illegal parameter value
1014TOS restriction
1015unconfirmed address
1016contact helpdesk first
9999unsupported feature
1017value not allowed

<<back to index