调用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. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。