Service Statistics

URL:
https://<root>/services/<serviceName>.<serviceType>/statistics
Methods:
GET
Required Capability:
Access allowed with any authorized privilege
Version Introduced:
10.1

Description

The statistics resource provides a view into the life cycle of all instances of the service on all server machines in the site.

Initially, all instances are in the notCreated state, but they move into the initializing state as they are constructed. The instances are not usable in any of these states. A fully constructed instance remains in the pool (in other words, the free state) before it's called into service. Instances are marked as busy when they're servicing requests. Once request processing is complete, instances are returned to the pool; they are free to service any other requests.

The transactions metric indicates the total number of invocations that have occurred on the service. Similarly, totalBusyTime indicates the total amount of time the service is in use servicing requests.

You can view the statistics for a machine or use the summary property, which consolidates the metrics from all server machines into one for the entire site.

Request parameters

ParameterDescription

f

The response format. The default response format is html.

Values: html | json | pjson

Example usage

The following is a sample request URL used to access the statistics resource:

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/admin/services/Maps/Seattle.MapServer/statistics?f=pjson

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  "summary": {
    "folderName": "<folder>",
    "serviceName": "<serviceName>",
    "type": "<serviceType>",
    "startTime": "",
    "max": <number>,
    "busy": <number>,
    "free": <number>,
    "initializing": <number>,
    "notCreated": <number>,
    "transactions": <number>,
    "totalBusyTime": <number>,
    "isStatisticsAvailable": <true|false>
  },
  "perMachine": [
    {
      "folderName": "<folder>",
      "serviceName": "<serviceName>",
      "type": "<serviceType>",
      "machineName": "<server>",
      "max": <number>,
      "busy": <number>,
      "free": <number>,
      "initializing": <number>,
      "notCreated": <number>,
      "transactions": <number>,
      "totalBusyTime": <number>,
      "isStatisticsAvailable": <true|false>
    }
  ]
}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  "summary": {
    "folderName": "Maps",
    "serviceName": "Seattle",
    "type": "MapServer",
    "startTime": "",
    "max": 4,
    "busy": 2,
    "free": 2,
    "initializing": 0,
    "notCreated": 0,
    "transactions": 130,
    "totalBusyTime": 12400,
    "isStatisticsAvailable": true
  },
  "perMachine": [
    {
      "folderName": "Maps",
      "serviceName": "Seattle",
      "type": "MapServer",
      "machineName": "MACHINE1.DOMAIN.COM",
      "max": 2,
      "busy": 1,
      "free": 1,
      "initializing": 0,
      "notCreated": 0,
      "transactions": 65,
      "totalBusyTime": 6200,
      "isStatisticsAvailable": true
    },
    {
      "folderName": "Maps;",
      "serviceName": "Seattle",
      "type": "MapServer",
      "machineName": "MACHINE2.DOMAIN.COM",
      "max": 2,
      "busy": 1,
      "free": 1,
      "initializing": 0,
      "notCreated": 0,
      "transactions": 65,
      "totalBusyTime": 6200,
      "isStatisticsAvailable": true
    },
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.