文档

ListDoctorJobsStats - 批量获取任务运行汇总数据

更新时间:

通过EMR Doctor批量获取任务基本运行汇总信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
RegionIdstring

地域 ID。

cn-hangzhou
ClusterIdstring

集群 ID。

c-b933c5aac8fe****
NextTokenstring

标记当前开始读取的位置。

DD6B1B2A-5837-5237-ABE4-FF0C89568980
MaxResultsinteger

一次获取的最大记录数。

20
StartRangeobject

开始时间范围,过滤开始时间在一个时间范围内的任务。

StartTimelong

任务提交时间起始范围,Unix 时间戳,单位毫秒。

1679036826987
EndTimelong

任务提交时间结束范围,Unix 时间戳,单位毫秒。

1666406820000
EndRangeobject

结束时间范围,过滤出结束时间在一个时间范围内的任务。

StartTimelong

任务结束时间起始范围,Unix 时间戳,单位毫秒。

1675180800000
EndTimelong

任务结束时间结束范围,Unix 时间戳,单位毫秒。

1680019200000
GroupByarray

分组字段列表。

目前只取第一个值,后续会放开多种分组交叉。

string

分组字段。取值:

  • queue:根据队列分组。
  • user:根据用户分组。
  • type:根据引擎类型分组。
type
OrderTypestring

排序方向,取值:

  • ASC: 升序排列。
  • DESC:降序排列。
ASC
OrderBystring

排序字段。取值:

  • vcoreSeconds:任务 CPU 使用量。
  • memSeconds:任务内存使用量。
vcoreSeconds

返回参数

名称类型描述示例值
object

返回数据

Dataobject []

任务汇总列表信息。

Queuestring

任务提交到 YARN 的队列。

DW
Typestring

计算引擎类型。

SPARK
Userstring

任务提交用户名。

DW
VcoreSecondsobject

CPU 总使用量。

Namestring

指标名称。

vcoreSeconds
Valuelong

指标值。

11123
Unitstring

指标单位。

VCores * Sec
Descriptionstring

指标描述。

Total vcore usage over time in seconds
MemSecondsobject

内存总是用量。

Namestring

指标名称。

memSeconds
Valuelong

指标值。

12312312
Unitstring

指标单位。

MB * Sec
Descriptionstring

指标描述。

Total memory usage over time in seconds
AppsCountobject

任务总量。

Namestring

指标名称。

appsCount
Valuelong

指标值。

123
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Total apps count
RequestIdstring

请求 ID。

DD6B1B2A-5837-5237-ABE4-FF0C8944****
NextTokenstring

返回读取到的数据位置。

DD6B1B2A-5837-5237-ABE4-FF0C89568980
MaxResultsinteger

本次请求所返回的最大记录条数。

20
TotalCountinteger

本次请求条件下的数据总量。

200

示例

正常返回示例

JSON格式

{
  "Data": [
    {
      "Queue": "DW",
      "Type": "SPARK",
      "User": "DW",
      "VcoreSeconds": {
        "Name": "vcoreSeconds",
        "Value": 11123,
        "Unit": "VCores * Sec\n",
        "Description": "Total vcore usage over time in seconds\n"
      },
      "MemSeconds": {
        "Name": "memSeconds",
        "Value": 12312312,
        "Unit": "MB * Sec\n",
        "Description": "Total memory usage over time in seconds\n"
      },
      "AppsCount": {
        "Name": "appsCount",
        "Value": 123,
        "Unit": "\"\"",
        "Description": "Total apps count"
      }
    }
  ],
  "RequestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****",
  "NextToken": "DD6B1B2A-5837-5237-ABE4-FF0C89568980",
  "MaxResults": 20,
  "TotalCount": 200
}

错误码

HTTP status code错误码错误信息描述
400ConflictParametersParameters that must not be used together. %s多个参数间存在冲突。
400IncompleteSignatureThe request signature is invalid.API请求签名不合法。
400InvalidActionThe action %s requested is invalid.不合法的Action。
400InvalidParameterThe specified parameter %s is not valid.参数错误。
400InvalidParameterValueThe input parameter %s is invalid or out of range.参数值超出范围。
400MissingActionThe action %s requested is missing.缺少Action参数
400MissingParameterThe input parameter %s that is mandatory for processing this request is not supplied.参数缺失。
400NotAuthorizedYou do not have permission to perform this action. %s没有权限。
400ThrottlingExceptionThe request was denied due to request throttling. %s限流。
404ResourceNotFoundThe resource not found by %s.请求的资源未找到。
500InternalErrorThe request processing has failed due to some unknown error, exception or failure.内部错误。
503ServiceFailureThe request has failed due to a temporary failure of %s service.依赖的阿里云其他服务不可用。
503ServiceUnavailableThe request has failed due to a temporary failure of the server.请求超时或者服务不可用。

访问错误中心查看更多错误码。

  • 本页导读 (1)