client-connectivity-stats

Client Connectivity Stats

Client Connectivity Stats gives us the view if the connection was a success or failure. If the connection was failed, it displays all the details of the failed connection with an error code and an error message mentioning the reason for failure.

JSON Table

Attribute Data Type Description
successCount int Total count of success log.
failureCount int Total count of failure log.
failureDetails application/json
failureDetails/code int Code of failure type.
failureDetails/failure String Name of failure type.
failureDetails/count int Total count of clients that failed to connect due to corresponding failure
type.

Copy Sample JSON
Sample JSON
{
   "successCount": 0,
   "failureCount": 0,
   "failureDetails": [{
      "code": 1,
      "failure": "Maximum Association Limit Exceeded",
      "count": 0
   }, 
   {
      "code": 2,
      "failure": "Association Capability Mismatch",
      "count": 0
   },
   . . .
   . . .
   . . .
   {
      "code": 17,
      "failure": "Google Authentication Failure",
      "count": 0
   }]
}
API Calls

/V5/devices/clients/connectivitystats

Get Connectivity Stats for a Client

Description This API is used to fetch connectivity statistics for a client.
Users with the following roles can call this API: super user, administrator, operator, and viewer.
Syntax
 GET <Base_URL>/devices/clients/connectivitystats?fromtime=<value>&totime=<value>

Here,

  • fromtime

    It is used to specify start time in epoch format. It takes an Integer value. The default value is -1.

  • totime

    It is used to specify end time in epoch format. It takes an Integer value. The default value is -1.

Sample code
GET https://training.mojonetworks.com/new/webservice/V5/devices/clients
/connectivitystats?fromtime=1487667951&totime=1487754352
Request Body  This API call does not require any request body parameters.
Response Body  If the API call is successful, the HTTP response status is 200.
The response body contains Client Connectivity Statistics in the application/json format.