查询开发机事件
更新时间:2025-06-06
接口描述
查询开发机事件。
请求结构
Plain Text
1GET ?action=DescribeDevInstanceEvents&startTime=startTime&message=message&instanceId=instanceId&clusterUuid=clusterUuid&devInstanceId=devInstanceId&queueName=queueName&tab=tab&pageNumber=pageNumber&pageSize=pageSize
2HTTP/1.1
3Host:aihc.bj.baidubce.com
4version: v2
5Authorization:authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名 | 参数类型 | 是否可选 | 参数说明 |
---|---|---|---|
devInstanceId | String | 必选 | 开发机ID |
startTime | String | 必选 | 开始时间(格式为 YYYY-MM-DDTHH:MM:SS.sssZ;例:2025-05-18T17:12:20.761Z) |
endTime | String | 必选 | 结束时间(格式为 YYYY-MM-DDTHH:MM:SS.sssZ;例:2025-05-13T17:12:20.761Z) |
eventType | String | 可选 | 事件类型(Normal,Warning,不填则为全部) |
message | String | 可选 | 筛选 |
pageNumber | Number | 可选 | 分页数(从 1 开始) |
pageSize | Number | 可选 | 分页大小 |
返回头域
除公共头域,无其它特殊头域。
返回参数
参数名称 | 类型 | 说明 |
---|---|---|
requestId | String | 请求ID,用于标译每个请求的唯一性 |
events | List |
事件列表 |
totalCount | Number | 事件的总数 |
请求示例
Plain Text
1GET ?action=DescribeDevInstanceEvents&startTime=2025-05-09T03:59:26.670Z&endTime=2025-05-16T03:59:26.671Z&message=&instanceId=aibox-r823466e46eb&devInstanceId=dv-7ff141fa&pageNumber=1&pageSize=10
2HTTP/1.1
3Host:aihc.bj.baidubce.com
4version: v2
5Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2024-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
返回示例
Plain Text
1{
2 "events": [
3 {
4 "count": 1,
5 "firstTimestamp": 1747878370,
6 "lastTimestamp": 1747878370,
7 "message": "Started container main",
8 "reason": "Started",
9 "type": "Normal"
10 },
11 {
12 "count": 1,
13 "firstTimestamp": 1747878370,
14 "lastTimestamp": 1747878370,
15 "message": "Successfully pulled image \"registry.baidubce.com/inference/aibox-ubuntu:v2.0-22.04\" in 378ms (378ms including waiting). Image size: 474104263 bytes.",
16 "reason": "Pulled",
17 "type": "Normal"
18 },
19 {
20 "count": 1,
21 "firstTimestamp": 1747878370,
22 "lastTimestamp": 1747878370,
23 "message": "Created container main",
24 "reason": "Created",
25 "type": "Normal"
26 },
27 {
28 "count": 1,
29 "firstTimestamp": 1747878370,
30 "lastTimestamp": 1747878370,
31 "message": "Pulling image \"registry.baidubce.com/inference/aibox-ubuntu:v2.0-22.04\"",
32 "reason": "Pulling",
33 "type": "Normal"
34 },
35 {
36 "count": 1,
37 "firstTimestamp": 1747878361,
38 "lastTimestamp": 1747878361,
39 "message": "Started container sidecar",
40 "reason": "Started",
41 "type": "Normal"
42 },
43 {
44 "count": 1,
45 "firstTimestamp": 1747878360,
46 "lastTimestamp": 1747878360,
47 "message": "Successfully pulled image \"registry.baidubce.com/inference/aibox-sidecar:v1.6-cs4.20.0-jpt3.6.5\" in 487ms (487ms including waiting). Image size: 1478994373 bytes.",
48 "reason": "Pulled",
49 "type": "Normal"
50 },
51 {
52 "count": 1,
53 "firstTimestamp": 1747878360,
54 "lastTimestamp": 1747878360,
55 "message": "Created container sidecar",
56 "reason": "Created",
57 "type": "Normal"
58 },
59 {
60 "count": 1,
61 "firstTimestamp": 1747878360,
62 "lastTimestamp": 1747878360,
63 "message": "Pulling image \"registry.baidubce.com/inference/aibox-sidecar:v1.6-cs4.20.0-jpt3.6.5\"",
64 "reason": "Pulling",
65 "type": "Normal"
66 },
67 {
68 "count": 1,
69 "firstTimestamp": 1747878359,
70 "lastTimestamp": 1747878359,
71 "message": "Successfully assigned aihc-pom/aibox-re4e2857afcc-56446c66bc-hx8lm to 192.168.15.186",
72 "reason": "Scheduled",
73 "type": "Normal"
74 }
75 ],
76 "requestId": "2af19415-1f64-4fea-86b4-407996ce4573",
77 "totalCount": 9
78}