获取数据量观测数据
更新时间: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 |
请求示例
Plain Text
1POST /api/bes/cluster/data_size_tendency
2<公共请求头>
3x-Region: bj
4
5
6{
7 "clusterId":"811064791824207872",
8 "indexPrefix":"",
9 "datePattern":"yyyyMMdd",
10 "times":7,
11 "timeUnit":"DAYS"
12}
响应示例
Plain Text
1HTTP/1.1 200 OK
2<公共响应头>
3
4{
5 "result" : {
6 "data" : [ {
7 "indices" : [ {
8 "byteSize" : "11059",
9 "size" : "10.7KB",
10 "index" : "index"
11 }, {
12 "byteSize" : "11059",
13 "size" : "10.7KB",
14 "index" : "index"
15 } ],
16 "byteSize" : "11059",
17 "size" : "10.7KB",
18 "timeMills" : "1695115967995",
19 "time" : "20230919"
20 }, {
21 "indices" : [ {
22 "byteSize" : "11059",
23 "size" : "10.7KB",
24 "index" : "index"
25 }, {
26 "byteSize" : "11059",
27 "size" : "10.7KB",
28 "index" : "index"
29 } ],
30 "byteSize" : "11059",
31 "size" : "10.7KB",
32 "timeMills" : "1695115967995",
33 "time" : "20230919"
34 } ],
35 "clusterId" : "clusterId"
36 },
37 "success" : "true",
38 "status" : 200
39}
错误码
请参考通用错误码