JSON API for YateSIGX 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":"sigx" }

Example response

{"code":0,
 "stats":{
   "engine":{
     "version":"6.0.1","revision":2003,"nodename":"mobile-devel4","runid":1508165613,"plugins":12,"inuse":0,"handlers":107,"hooks":4,
     "messages":0,"maxqueue":2,"messageage":72,"messagerate":2,"maxmsgrate":9,"enqueued":983,"dequeued":983,"dispatched":1011,
     "supervised":true,"runattempt":1,"lastsignal":0,"threads":18,"workers":5,"mutexes":107,"semaphores":1,"acceptcalls":"accept","congestion":0,
   },
   "uptime":{
     "wall":670,
     "user":10,
     "kernel":11
   },
   "diameter":{
     "listeners":0,"connections":2,"operational":2,"recv_requests":0,"recv_answers":0,"sent_requests":0,"sent_answers":0,
     "rejected_messages":0,"detected_loops":0,"message_timeouts":0,"unexpected_answers":0,"route_failed":0,
     "cer_outgoing":2,"cer_incoming":0,"cer_failed_outgoing":0,"cer_failed_incoming":0,
     "conn_attempt_out":1,"conn_failed_out":0,"conn_attempt_in":0,"conn_failed_in":0,
     "failed_requests":0,"failed_answers":0,"failed_requests_conn":0,"failed_answers_conn":0
   },
   "sig_routers":{
     "count":1,
     "operational":1,
     "[ss7router]":"operational"
   },
   "sig_links":{
     "count":2,
     "operational":2
   },
   "sig_sccp":{
     "sent":0,
     "received":0,
     "translations":0,
     "errors":0
   },
   "camel_map":{
     "count":0
   },
   "diameter_allpeers":{
     "peers":2,
     "operational":2
   }
  }
}