修改空间的数据保留时长¶
POST /api/v1/workspace/modify_rp_duration
概述¶
Body 请求参数¶
参数名 | 类型 | 必选 | 说明 |
---|---|---|---|
rp | string | 时间线RP的duration 例子: 30d 允许为空: False |
|
logging | string | 日志RP的duration 例子: 14d 允许为空: False |
|
backup_log | string | 备份日志的duration 例子: 180d 允许为空: False |
|
security | string | 巡检数据的duration 例子: 90d 允许为空: False |
|
keyevent | string | 事件RP的duration 例子: 14d 允许为空: False |
|
tracing | string | tracing的duration 例子: 7d 允许为空: False |
|
profiling | string | profiling的duration 例子: 7d 允许为空: False |
|
rum | string | rum的duration 例子: 7d 允许为空: False |
|
apm | string | apm的duration(合并索引情况下有效) 例子: 7d 允许为空: False |
参数补充说明¶
参数补充说明
标准可选RP取值范围:¶
可选值 | 说明 |
---|---|
1d | 1天 |
3d | 3天 |
7d | 7天 |
14d | 14天 |
30d | 1个月 |
60d | 2个月 |
90d | 3个月 |
180d | 半年 |
360d | 1年 |
720d | 2年 |
1095d | 3年 |
拆分索引情况下的可选配置项¶
分类 | 说明 |
---|---|
rp | 指标 |
network | 网络 |
keyevent | 事件 |
backup_log | 备份日志 |
tracing | 链路-应用性能 |
profiling | 链路-profiling |
rum | 用户访问 |
logging | 日志 |
security | 安全巡检 |
合并索引情况下的可选配置项¶
分类 | 说明 |
---|---|
rp | 指标 |
network | 网络 |
keyevent | 事件 |
backup_log | 备份日志 |
logging | 日志 / CI 监测 / 可用性监测 / 安全巡检 |
apm | 用户访问 / 应用性能(trace、profiling) |
如何区分工作空间是否合并¶
可通过 「获取当前工作空间信息」接口响应结果中的 esIndexMerged
参数区分,如果 esIndexMerged=1
则表明索引译合并,否则表明索引未合并.
请求例子¶
curl 'https://openapi.guance.com/api/v1/workspace/modify_rp_duration' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-raw '{"rp":"3d"}' \
--compressed