查詢跟蹤的狀態。
介面說明
本文將提供一個樣本,為您查詢單帳號跟蹤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 |
最近一次投遞Log Service的錯誤資訊。 |
write sls failed, exception: the parent of sub user must be project owner, itemscount: 1 |
| LatestDeliveryLogServiceTime |
string |
最近一次成功投遞Log Service的時間。 |
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. | 指定的跟蹤不存在。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。