You need to enable JavaScript to run this app.
文档中心
E-MapReduce

E-MapReduce

复制全文
下载 pdf
EMR Agent API参考
GetReport - 查询报告
复制全文
下载 pdf
GetReport - 查询报告
获取指定报告详情。​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:GetReport​
要执行的操作,取值:GetReport。​
​
Version string 必选 示例值:2025-10-15​
API的版本,取值:2025-10-15。​
​
ReportId string 必选 示例值:report_********-****-****-****-************​
报告 ID。用于获取指定报告的基础信息,可通过 ListReports 查询获取,也可从 ChatCompletions 的诊断事件中获取。​
​
WithContent boolean 可选 示例值:false​
是否同时返回报告内容;为 true 时返回 ReportContent。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
ReportId string 示例值:report_********-****-****-****-************​
报告 ID。​
​
ReportType string 示例值:job​
报告类型,可选["job","service","cluster","queue"]。​
​
ReportSubType string 示例值:spark​
报告子类型,可选["spark","doris","starrocks","presto","ray","on_ecs","on_vke","on_serverless"]。​
​
ReportName string 示例值:job-spark-********​
报告名称。​
​
UserId string 示例值:2100000000​
账号 ID。​
​
ReportStatus string 示例值:complete​
报告状态,可选["start","progress","complete","exception"]。​
​
CreatedAt string 示例值:2026-08-10T12:00:00​
创建时间,格式为 ISO 8601 日期时间字符串。​
​
UpdatedAt string 示例值:2026-08-10T12:10:00​
更新时间,格式为 ISO 8601 日期时间字符串。​
​
CompletedAt string 示例值:2026-08-10T12:10:00​
完成时间,格式为 ISO 8601 日期时间字符串;未完成时为空。​
​
TriggerMethod string 示例值:realtime​
触发方式,可选["realtime","periodic"]。​
​
TenantId string 示例值:default​
报告所属租户 ID。​
​
JobId string 示例值:job_********​
作业 ID。​
​
ClusterId string 示例值:cluster_********​
集群 ID。​
​
ServiceId string 示例值:service_********​
服务 ID。​
​
QueueId string 示例值:queue_********​
队列 ID。​
​
ProcessingDuration long 示例值:120000​
处理耗时,单位为毫秒;未完成时为空。​
​
TotalTokens long 示例值:6000​
累计 Token 消耗量;未完成时为空。​
​
ChatId string 示例值:session_********-****-****-****-************​
会话 ID。​
​
AssumeAccount string 示例值:2100000000​
被扮演角色所属账号 ID。​
​
MessageId string 示例值:message_********-****-****-****-************​
消息 ID。​
​
Hidden boolean 示例值:false​
报告是否隐藏。​
​
ReportContent string 示例值:诊断报告内容​
报告内容;仅当请求 WithContent=true 时返回。​
​
​
​
请求示例​
​
POST /?Action=GetReport&Version=2025-10-15 HTTP/1.1​
Host: emr.cn-beijing.volcengineapi.com​
Content-Type: application/json; charset=UTF-8​
X-Date: 20260818T125625Z​
X-Content-Sha256: 287e874e******d653b44d21e​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20260818/cn-beijing/emr/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
{​
"ReportId": "report_********-****-****-****-************"​
}​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "202608182056282241761352532A1EAF",​
"Action": "GetReport",​
"Version": "2025-10-15",​
"Service": "emr",​
"Region": "cn-beijing"​
},​
"Result": {​
"ReportId": "report_********-****-****-****-************",​
"ReportType": "job",​
"ReportSubType": "spark",​
"ReportName": "job-spark-********",​
"UserId": "2100000000",​
"ReportStatus": "complete",​
"CreatedAt": "2026-08-10T12:00:00",​
"UpdatedAt": "2026-08-10T12:10:00",​
"CompletedAt": "2026-08-10T12:10:00",​
"TriggerMethod": "realtime",​
"TenantId": "default",​
"JobId": "job_********",​
"ClusterId": "cluster_********",​
"ServiceId": "service_********",​
"QueueId": "queue_********",​
"ProcessingDuration": 120000,​
"TotalTokens": 6000,​
"ChatId": "session_********-****-****-****-************",​
"AssumeAccount": "2100000000",​
"MessageId": "message_********-****-****-****-************",​
"Hidden": true,​
"ReportContent": "诊断报告内容"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
500​
1000​
未知异常​
未知异常。​
500​
6009​
获取报告内容错误​
获取报告内容失败。​
​
​
最近更新时间:2026.08.20 20:18:38
这个页面对您有帮助吗?
有用
有用
无用
无用