查询跟踪的状态。
接口说明
本文将提供一个示例,为您查询单账号跟踪trail-test的状态。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
actiontrail:GetTrailStatus |
get |
*Trail
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Name |
string |
是 |
跟踪名称。 说明
同一账号内跟踪名称不可重复。 |
trail-test |
| IsOrganizationTrail |
boolean |
否 |
是否查询多账号跟踪状态,取值:
|
false |
关于公共请求参数的详情,请参见公共参数。
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| IsLogging |
boolean |
是否开启日志记录,取值:
|
true |
| LatestDeliveryError |
string |
最近一次行为跟踪异常的日志信息。 |
write sls failed, exception: the parent of sub user must be project owner, itemscount: 1 |
| LatestDeliveryLogServiceError |
string |
最近一次投递日志服务的错误信息。 |
write sls failed, exception: the parent of sub user must be project owner, itemscount: 1 |
| LatestDeliveryLogServiceTime |
string |
最近一次成功投递日志服务的时间。 |
2021-02-26T09:19:44Z |
| LatestDeliveryTime |
string |
最近一次成功记录行为的时间。 |
2021-02-26T09:19:44Z |
| OssBucketStatus |
boolean |
OSS 存储空间是否可用,取值:
|
true |
| RequestId |
string |
请求 ID。 |
8067369B-B923-4D26-85BC-61BF33922505 |
| SlsLogStoreStatus |
boolean |
SLS Logstore 是否可用,取值:
|
true |
| StartLoggingTime |
string |
最近一次开启跟踪的时间。 |
2021-02-24T09:19:44Z |
| StopLoggingTime |
string |
最近一次停止跟踪的时间。 |
2021-02-25T09:19:44Z |
示例
正常返回示例
JSON格式
{
"IsLogging": true,
"LatestDeliveryError": "write sls failed, exception: the parent of sub user must be project owner, itemscount: 1",
"LatestDeliveryLogServiceError": "write sls failed, exception: the parent of sub user must be project owner, itemscount: 1",
"LatestDeliveryLogServiceTime": "2021-02-26T09:19:44Z",
"LatestDeliveryTime": "2021-02-26T09:19:44Z",
"OssBucketStatus": true,
"RequestId": "8067369B-B923-4D26-85BC-61BF33922505",
"SlsLogStoreStatus": true,
"StartLoggingTime": "2021-02-24T09:19:44Z",
"StopLoggingTime": "2021-02-25T09:19:44Z"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 404 | TrailNotFoundException | The specified Trail does not exist. | 指定的跟踪不存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。