Modify Workspace Data Retention Duration¶
POST /api/v1/workspace/modify_rp_duration
Overview¶
Body Request Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| rp | string | Duration for Time Series RP Example: 30d Allow empty: False |
|
| logging | string | Duration for Log RP Example: 14d Allow empty: False |
|
| backup_log | string | Duration for backup logs Example: 180d Allow empty: False |
|
| security | string | Duration for inspection data Example: 90d Allow empty: False |
|
| keyevent | string | Duration for Event RP Example: 14d Allow empty: False |
|
| tracing | string | Duration for tracing Example: 7d Allow empty: False |
|
| profiling | string | Duration for profiling Example: 7d Allow empty: False |
|
| rum | string | Duration for rum Example: 7d Allow empty: False |
|
| apm | string | Duration for apm (valid when indexes are merged) Example: 7d Allow empty: False |
Parameter Supplementary Notes¶
Parameter Supplementary Notes
SaaS Version Optional Days Description¶
| Workspace Version | rp |
logging |
backup_log |
keyevent |
security |
tracing |
profiling |
rum |
apm |
network |
|---|---|---|---|---|---|---|---|---|---|---|
Free Plan (free, freeEdition) |
7d | 7d | 7d | 7d | 7d | 7d | 7d | 7d | 7d | 1d |
Commercial Plan (pay) |
3d / 7d / 14d / 30d / 180d / 360d | 3d / 7d / 14d / 30d / 60d | 180d / 360d / 720d | 14d / 30d / 60d | 90d / 180d / 360d | 3d / 7d / 14d / 30d / 60d | 3d / 7d / 14d / 30d / 60d | 3d / 7d / 14d / 30d / 60d | 3d / 7d / 14d / 30d / 60d | 2d |
Enterprise Plan (enterprise) |
3d / 7d / 14d / 30d / 180d / 360d | 3d / 7d / 14d / 30d / 60d | 180d / 360d / 720d | 14d / 30d / 60d | 90d / 180d / 360d | 3d / 7d / 14d / 30d / 60d | 3d / 7d / 14d / 30d / 60d | 3d / 7d / 14d / 30d / 60d | 3d / 7d / 14d / 30d / 60d | 2d |
Deployment Plan / Unlimited Plan Description¶
The optional days for the Deployment Plan (unlimited) are determined by the configuration file. The range supported by the current interface is based on workspaceAllowRpSet["unlimited"] and workspaceAllowCustomRpSet["unlimited"].
Optional Configuration Items Under Split Index Scenario¶
| Category | Description |
|---|---|
| rp | Metrics |
| network | NETWORK |
| keyevent | Incident |
| backup_log | Backup logs |
| tracing | APM |
| profiling | APM-profiling |
| rum | RUM |
| logging | LOG |
| security | Security Check |
Optional Configuration Items Under Merged Index Scenario¶
| Category | Description |
|---|---|
| rp | Metrics |
| network | NETWORK |
| keyevent | Incident |
| backup_log | Backup logs |
| logging | LOG / CI Monitoring / Synthetic Tests / Security Check |
| apm | RUM / APM (trace, profiling) |
How to Distinguish Whether a Workspace is Merged¶
It can be distinguished by the esIndexMerged parameter in the response of the "Get Current Workspace Information" interface. If esIndexMerged=1, it indicates the indexes are merged; otherwise, it indicates the indexes are not merged.
Request Example¶
curl 'https://openapi.truewatch.com/api/v1/workspace/modify_rp_duration' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-raw '{"rp":"3d"}' \
--compressed