instanceRequestsStatistics


URI

<instanceRequests uri>/statistics[.<format>]

Supported methods

GET, HEAD

Parent resource

instanceRequests

Introduction

instanceRequestsStatistics is the service access statistics resource. Through this resource, you can not only statistics the records with the service instance name, but also the service component type.

Supported Methods:

Supported output formats: rjson, json, html, xml.

Resource hierarchy

HTTP request methods

Implement the HTTP request on the following URI, where supermapiserver is the server name, with rjson being the output format.

http://supermapiserver:8090/iserver/manager/serverstatus/requests/statistics.rjson

GET request

Gets the statistics info of the service access records.

Request parameter

Implement the GET request on the instanceRequestsStatistics. The URL can contain the following parameters:

Name Type Description
startTime long The start time of service access record. If it is not positive number, it will be queried from the earliest record. The value is the milliseconds from 00:00:00 GMT January 1, 1970.
endTime long The end time of service access record. If it is not positive number, the server time will be the end time. The value is the milliseconds from 00:00:00 GMT January 1, 1970.
expectCount int The expected returned service record access number. The value is 2000. When expectCount < 0 or expectCount = 0, return all records that meet the condition.
userName String The users corresponding to the service access records.
statisticsType String Service statistics type. The value can be ComponentType and InstanceName. ComponentType means the service type statistics.  InstanceName means the type statistics of service instance.

Response example

Implement the GET request on the instanceRequestsStatistics resource http://localhost:8090/iserver/manager/serverstatus/requests/statistics.rjson?startTime=1408069938704&endTime=1408091538704&expectCount=2000&statisticsType=ComponentType. Return rjson results:

{

    "Data": 17,

    "SpatialAnalyst": 4,

    "Map": 21

}

Implement the GET request on the instanceRequestsStatistics resource http://localhost:8090/iserver/manager/serverstatus/requests/statistics.rjson?startTime=1408069938704&endTime=1408091538704&expectCount=2000&statisticsType=InstanceName. Return rjson results:

{

    "data-changchun/rest": 4,

    "data-jingjin/wcs112": 2,

    "data-world/rest": 4,

    "data-world/wcs111": 1,

    "data-world/wcs112": 2,

    "data-world/wfs100": 4,

    "map-china400/rest": 7,

    "map-china400/wms111": 1,

    "map-china400/wms130": 1,

    "map-china400/wmts100": 1,

    "map-jingjin/rest": 2,

    "map-temperature/rest": 1,

    "map-world/wmts-china": 1,

    "map-world/wmts100": 1,

    "maps/rest": 2,

    "maps/wms111": 3,

    "maps/wmts100": 1,

    "spatialanalyst-changchun/restjsr": 4

}

HEAD request

Asks for the response identical to the one that would correspond to a GET request, but without the response body. This is useful for retrieving meta-information written in response headers, without having to transport the entire content. The meta-information includes the media-type, content-encoding, transfer-encoding, content-length, etc.

HEAD request can be used to check if the instanceRequestsStatistics resource exists, or if the instanceRequestsStatistics resource can be accessed by clients. It can also determine if the instanceRequestsStatistics resource supports an output format <format> if performed on a URI with .<format> included.

See