Set metrics retention
Saves the retention and restarts the metrics engine with it. The charts have no new data for some seconds. A shorter retention deletes the older metrics.
PUT
/api/v1/settings/monitoring/retentionAuthorization
tse_sessionAPI key · cookierequiredRequest body
requiredapplication/jsondaysinteger<int64>requiredHow many days the metrics engine keeps metrics
min 1 · max 3650
Responses
200
OK
mirror_enabledbooleanrequiredGET /metrics/federate answers. It also needs a token
mirror_token_created_atstring<date-time>When the token was made
mirror_token_setbooleanrequiredA mirroring token exists. The console keeps only its hash, so it cannot show it again
retention_daysinteger<int64>requiredHow many days the metrics engine keeps metrics
retention_days_maxinteger<int64>requiredretention_days_mininteger<int64>requiredstorage_bytesinteger<int64>requiredThe disk space that the metrics use now, in bytes. -1 when the console cannot read it
default
Error
codestringStable code of the refusal, when the route has codes
detailsstring[]Additional detail, e.g. per-field validation failures
errorstringrequiredHuman-readable error message