Info: This feature requires Assets Server 6.70 or higher.
The Stats cleanup API provides multiple ways for cleaning up stats indices or their content.
Stats index cleanup API
GET/POST /controller/admin/stats/cleanup |
Removes specified stats indices.
Note: It is not allowed to remove the current month’s index.
Parameters
Name | Type | Description | Example |
---|---|---|---|
indices | string |
Comma-separated list of stats indices to remove. Required. |
stats-202101-r1,stats-202102-r1,stats-202103-r1,stats-202104-r1,stats-202105-r1 |
Result
index name | result |
Example
stats-202101-r1 | success |
stats-202101-r2 | failure |
stats-202501-r1 | not exist |
assets-r1 | not allowed |
stats-202108-r1 | not allowed (active) |
Stats history cleanup API
GET/POST /controller/admin/stats/removeHistory |
Removes stats entries related to files that are not in the system anymore.
Parameters
Name | Type | Description | Example |
---|---|---|---|
age | integer |
Minimal age in days of stats entries to be checked. Optional. When not specified, all entries are affected. |
365 |
Usage stats cleanup API
GET/POST /controller/admin/stats/removeUsage |
Removes entries from StatsUsage based on the given criteria.
Parameters
Name | Type | Description | Example |
---|---|---|---|
actions | string |
Comma-separated list of actions. Optional. |
METADATA_UPDATE, CREATE |
users | string |
Comma-separated list of users. Optional. When not specified, the current user name is used. |
admin, server |
age | integer |
Minimal age in days of stats entries to be checked. Optional. When not specified, all entries are affected. |
365 |
Search stats cleanup API
GET/POST /controller/admin/stats/removeSearch |
Removes entries from StatsSearch on the given criteria.
Parameters
Name | Type | Description | Example |
---|---|---|---|
clientTypes | string |
Comma-separated list of client types. Optional. |
proWeb, api |
users | string |
Comma-separated list of users. Optional. When not specified, the current user name is used. |
admin, server |
age | integer |
Minimal age in days of stats entries to be checked. Optional. When not specified, all entries are affected. |
365 |
Comment
Do you have corrections or additional information about this article? Leave a comment! Do you have a question about what is described in this article? Please contact Support.
0 comments
Please sign in to leave a comment.