Skip to content

RestStatsCategory

stockiNail edited this page May 24, 2017 · 3 revisions

Statistics services category

The statistics services give you the access to stats and some other special services of JEM.

Getting samples

Provides a collection of samples about stats collected by JEM about workload and queues status.

Request
Parameter Value
URL /stats/samples
Method GET
Path none
Query none
Content-Type application/json
Accept-Type application/json
Body none
Response
Status code Description
200 OK - Returns a list of samples in JEM
500 Internal Server Error - The service had an exception
503 Service Unavailable - JEM cluster is not available.

Getting current sample

Provides the current sample collected by JEM about workload and queues status.

Request
Parameter Value
URL /stats/currentSamples
Method GET
Path none
Query none
Content-Type application/json
Accept-Type application/json
Body none
Response
Status code Description
200 OK - Returns the current sample in JEM
500 Internal Server Error - The service had an exception
503 Service Unavailable - JEM cluster is not available.

Getting the GRS requestors status

Provides the list of enqueued requestors on the same resource (if GRS is activated)

Request
Parameter Value
URL /swarm/displayRequestors?filter=
Method GET
Path none
Query filter parameter is optional and contains a wildcard string to filter the resource name to search. Default is *
Content-Type application/json
Accept-Type text/plain
Body none
Response
Status code Description
200 OK - Returns a list of requestors, in text format
500 Internal Server Error - The service had an exception
503 Service Unavailable - JEM cluster is not available.

Getting REDO statements

Provides the list of REDO statements inside of JEM, created when the data base is not available.

Request
Parameter Value
URL /stats/redoStatements
Method GET
Path none
Query none
Content-Type application/json
Accept-Type application/json
Body none
Response
Status code Description
200 OK - Returns a list of REDO statements if there are
500 Internal Server Error - The service had an exception
503 Service Unavailable - JEM cluster is not available.

Getting JEM about

Provides the about of JEM.

Request
Parameter Value
URL /stats/about
Method GET
Path none
Query none
Content-Type application/json
Accept-Type application/json
Body none
Response
Status code Description
200 OK - Returns the about of JEM
500 Internal Server Error - The service had an exception
503 Service Unavailable - JEM cluster is not available.

Getting JEM general info

Provides some info of JEM.

Request
Parameter Value
URL /stats/infos
Method GET
Path none
Query none
Content-Type application/json
Accept-Type application/json
Body none
Response
Status code Description
200 OK - Returns the JEM infos
500 Internal Server Error - The service had an exception
503 Service Unavailable - JEM cluster is not available.
Clone this wiki locally