HomeGuidesAPI Reference
API Reference

Update statistics retention period for a specific stat type

Updates the data retention period for a specific statistics type at different granularity levels (minute, hour, day). Each granularity level can have its own retention period. Not available in Container Mode.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
enum
required

The statistics type to update retention for. Must match an existing stat type in the system.

Body Params

Array of retention configurations for different granularity levels. Each entry specifies retention period for a specific granularity.

Array of retention configurations for updating statistics retention at different granularity levels.

Retention configuration for a specific granularity level.

string
enum
required

Data aggregation granularity level. Determines the time period for data aggregation.

Allowed:
int64
required
≥ 1

Data retention period in seconds. Must be greater than 0. Common values: 259200 (3 days), 1209600 (14 days), 8035200 (93 days).

string

Optional stat type identifier (usually passed in query parameter instead).

int64

Optional database partition duration in seconds.

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json