JSON API for YateSMSC Control

From YateBTS
Revision as of 19:23, 5 January 2017 by Paulc (Talk | contribs) (Created page with "== Request: '''query_stats''' == Retrieve node statistics for the equipment.<br/> It is mandatory to provide the desired node type. Request { "request":"query_stats", "node"...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Request: query_stats

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

Request

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

Example response

{"code":0,
 "stats":{
   "engine":{
     "version":"5.5.1","revision":1819,"nodename":"mobile-devel4","plugins":22,"inuse":0,"handlers":195,"hooks":4,
     "messages":0,"maxqueue":3,"messagerate":5,"maxmsgrate":14,"enqueued":1427894,"dequeued":1427894,"dispatched":2181400,
     "supervised":false,"runattempt":0,"lastsignal":0,"threads":31,"workers":7,"mutexes":291,"semaphores":1,"acceptcalls":"accept","congestion":0
   },
   "smsc_map":{
     "routers":5,
     "routing":0
   },
  "smsc_ati":{
     "sent":0,
     "recv":0,
     "errs":0,
     "fail":0
   },
   "smsc_gtt":{
     "local":0,
     "stp":0,
     "back":0,
     "fail":0,
     "stp_1":"up",
     "stp_101":"down"
   }
 }
}