Edit Usage Reports Settings

Description

The usage reports settings are applied to the entire site. A POST request updates the usage reports settings.

Request Parameters

Parameter

Description

enabled

Can be true or false. When usage reports are enabled, service usage statistics are collected and persisted to a statistics database. When usage reports are disabled, the statistics are not collected.

samplingInterval

Defines the duration (in minutes) for which the usage statistics are aggregated or sampled, in-memory, before being written out to the statistics database.

maxHistory

Represents the number of days after which usage statistics are deleted after the statistics database. If the maxHistory parameter is set to 0, the statistics are persisted forever.

Default: 0 (forever)

f

The response format. The default response format is html.

Values: html | json | pjson

Request Format

{
  "settings": {
    "enabled": true,
    "samplingInterval": 30,
    "maxHistory": 0
  }
}

Response Format

{
  "status": "success",
  "settings": {
    "enabled": true,
    "samplingInterval": 30,
    "maxHistory": 0,
    "statisticsDir": "\\\\server\\ags\\directories\\arcgissystem"
  }
}

7/5/2017