調用DescribeDiagnosticReportAttributes查詢資源診斷詳情。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ecs:DescribeDiagnosticReportAttributes |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
地區 ID。您可以調用 DescribeRegions 查看最新的阿里雲地區列表。 |
cn-hangzhou |
| ReportId |
string |
是 |
診斷報告 ID。 |
dr-i-uf6i0tv2refv8wz***** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| ResourceId |
string |
資源 ID。 |
i-uf6i0tv2refv8wz***** |
| ResourceType |
string |
資源類型。支援的類型為 instance。 |
instance |
| ReportId |
string |
診斷報告 ID。資源診斷報告的唯一標誌。 |
dr-uf6i0tv2refv8wz***** |
| Status |
string |
診斷報告狀態。可能值:
|
Finished |
| CreationTime |
string |
診斷報告建立時間。 |
2022-07-11T12:00:00Z |
| FinishedTime |
string |
診斷報告完成時間。 |
2022-07-11T14:00:00Z |
| StartTime |
string |
開始時間。調用 CreateDiagnosticReport 介面建立診斷報告時傳入的參數。 |
2022-07-11T12:00:00Z |
| EndTime |
string |
結束時間。調用 CreateDiagnosticReport 介面建立診斷報告時傳入的參數。 |
2022-07-11T14:00:00Z |
| Severity |
string |
報告嚴重等級。所有指標中最嚴重的等級,嚴重等級由輕到重如下:
|
Normal |
| MetricSetId |
string |
診斷指標集合 ID。 |
dms-bp17p0qwtr72zmu***** |
| MetricResults |
object |
||
| MetricResult |
array<object> |
診斷集合中所有指標的診斷結果。 |
|
|
array<object> |
|||
| MetricId |
string |
診斷指標 ID。 |
GuestOS.WinFirewall |
| MetricCategory |
string |
診斷指標分類。 |
CPU |
| Severity |
string |
診斷指標嚴重等級。可能值:
|
Normal |
| Status |
string |
指標診斷狀態。可能值:
|
Finished |
| Issues |
object |
||
| Issue |
array<object> |
診斷問題列表。 |
|
|
object |
診斷問題列表。 |
||
| IssueId |
string |
診斷問題的唯一識別碼。 |
GuestOS.CPU.HighUtiliz***** |
| Severity |
string |
診斷問題嚴重程度,嚴重等級由輕到重如下:
|
Info |
| Additional |
string |
診斷問題攜帶的額外資料,協助理解問題更多資訊,資料格式為 JSON 的字串。 |
{ "TotalPercent": 95, "TopUtilizationProcesses": [ { "Pid": "1223", "CommandName": "/usr/bin/mem.py", "PhysicalMemoryPercent": 50 } ] } |
| OccurrenceTime |
string |
問題發生的時間。 |
2022-07-11T14:00:00Z |
| RepairStatus |
string |
||
| Repairable |
boolean |
||
| Attributes |
string |
診斷報告的擴充屬性。 |
{"OfflineDiagReportStatus":"CONFIRMED"} |
樣本
正常返回樣本
JSON格式
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"ResourceId": "i-uf6i0tv2refv8wz*****",
"ResourceType": "instance",
"ReportId": "dr-uf6i0tv2refv8wz*****",
"Status": "Finished",
"CreationTime": "2022-07-11T12:00:00Z",
"FinishedTime": "2022-07-11T14:00:00Z",
"StartTime": "2022-07-11T12:00:00Z",
"EndTime": "2022-07-11T14:00:00Z",
"Severity": "Normal",
"MetricSetId": "dms-bp17p0qwtr72zmu*****",
"MetricResults": {
"MetricResult": [
{
"MetricId": "GuestOS.WinFirewall",
"MetricCategory": "CPU",
"Severity": "Normal",
"Status": "Finished",
"Issues": {
"Issue": [
{
"IssueId": "GuestOS.CPU.HighUtiliz*****",
"Severity": "Info",
"Additional": "{\n \"TotalPercent\": 95,\n \"TopUtilizationProcesses\": [\n {\n \"Pid\": \"1223\",\n \"CommandName\": \"/usr/bin/mem.py\",\n \"PhysicalMemoryPercent\": 50\n }\n ]\n}",
"OccurrenceTime": "2022-07-11T14:00:00Z",
"RepairStatus": "",
"Repairable": true
}
]
}
}
]
},
"Attributes": "{\"OfflineDiagReportStatus\":\"CONFIRMED\"}"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 403 | InvalidParameter.ReportNotExist | The specified report does not exist. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。