JSON API for YateDRA Control

From YateBTS
Jump to: navigation, search

query_stats

Retrieve node statistics for the equipment.
It is mandatory to provide the desired node type.

Request

{ "request":"query_stats", "node":"dra" }

Example response

{"code":0,
 "stats":{
   "engine":{
     "version":"5.5.1","revision":1819,"nodename":"YateDRA","plugins":7,"inuse":1,"handlers":63,"hooks":4,
     "messages":0,"maxqueue":2,"messagerate":1,"maxmsgrate":10,"enqueued":10522,"dequeued":10522,"dispatched":10693,
     "supervised":false,"runattempt":0,"lastsignal":0,"threads":11,"workers":1,"mutexes":65,"semaphores":0,"acceptcalls":"accept","congestion":0
   },
   "uptime":{
     "wall":10456,
     "user":48,
     "kernel":38
   },
   "dra":{
     "requests":23245,
     "failed":1
   }
}