获取数据量观测数据
更新时间:2025-04-01
请求URI
POST /api/bes/cluster/data_size_tendency
请求头参数
参数名称 | 参数类型 | 是否必须 | 描述 | 示例值 |
---|---|---|---|---|
x-Region | String | 是 | 区域 | bj |
请求体参数
请求体字段数据结构说明
参数名称 | 参数类型 | 是否必须 | 描述 | 示例值 |
---|---|---|---|---|
clusterId | String | 是 | 集群ID | 111111111111111 |
indexPrefix | String | 否 | 索引前缀(默认为空字符串) | index |
datePattern | String | 是 | 日期格式 | yyyy-MM-dd |
times | Integer | 是 | 时间范围 | 7 |
timeUnit | String | 是 | 时间单位(枚举) | HOURS/MINUTES/DAYS/MONTHS/YEARS |
响应体参数
响应体字段数据结构说明
参数名称 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
success | String | 是否请求成功 | true |
status | Integer | 状态码 | 200 |
result | Result |
Result字段数据结构说明
参数名称 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
clusterId | String | 集群id | |
data | List |
DataItem字段数据结构说明
参数名称 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
byteSize | String | 总数据字节数 | 11059 |
indices | List |
索引信息 | |
size | String | 总数据量大小 | 10.7KB |
time | String | 具体时间 | 20230919 |
timeMills | String | 时间戳 | 1695115967995 |
IndicesItem字段数据结构说明
参数名称 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
byteSize | String | 总数据字节数 | 11059 |
index | String | 索引名称 | index |
size | String | 总数据量大小 | 10.7KBindex |
请求示例
POST /api/bes/cluster/data_size_tendency
<公共请求头>
x-Region: bj
{
"clusterId":"811064791824207872",
"indexPrefix":"",
"datePattern":"yyyyMMdd",
"times":7,
"timeUnit":"DAYS"
}
响应示例
HTTP/1.1 200 OK
<公共响应头>
{
"result" : {
"data" : [ {
"indices" : [ {
"byteSize" : "11059",
"size" : "10.7KB",
"index" : "index"
}, {
"byteSize" : "11059",
"size" : "10.7KB",
"index" : "index"
} ],
"byteSize" : "11059",
"size" : "10.7KB",
"timeMills" : "1695115967995",
"time" : "20230919"
}, {
"indices" : [ {
"byteSize" : "11059",
"size" : "10.7KB",
"index" : "index"
}, {
"byteSize" : "11059",
"size" : "10.7KB",
"index" : "index"
} ],
"byteSize" : "11059",
"size" : "10.7KB",
"timeMills" : "1695115967995",
"time" : "20230919"
} ],
"clusterId" : "clusterId"
},
"success" : "true",
"status" : 200
}
错误码
请参考通用错误码