查詢追蹤的狀態。
介面說明
本文將提供一個範例,為您查詢單帳號追蹤 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 |
追蹤最近一次投遞時間,時間遵循 ISO 8601 標準,使用 UTC 時區,格式為 yyyy-MM-dd'T'HH:mm:ss'Z'。 |
2021-02-26T09:19:44Z |
| LatestDeliveryTime |
string |
最近一次成功投遞的時間。時間遵循 ISO 8601 標準,使用 UTC 時區,格式為 yyyy-MM-dd'T'HH:mm:ss'Z'。 |
2021-02-26T09:19:44Z |
| OssBucketStatus |
boolean |
OSS 儲存空間是否可用,取值:
|
true |
| RequestId |
string |
請求 ID。 |
8067369B-B923-4D26-85BC-61BF33922505 |
| SlsLogStoreStatus |
boolean |
SLS Logstore 是否可用,取值:
|
true |
| StartLoggingTime |
string |
追蹤最近一次開始記錄事件的時間。時間遵循 ISO 8601 標準,使用 UTC 時區,格式為 yyyy-MM-dd'T'HH:mm:ss'Z'。 |
2021-02-24T09:19:44Z |
| StopLoggingTime |
string |
追蹤最近一次停止記錄事件的時間。時間遵循 ISO 8601 標準,使用 UTC 時區,格式為 yyyy-MM-dd'T'HH:mm:ss'Z'。 |
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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。