通過EMR Doctor批量獲取任務基本運行匯總信息。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
授權信息
下表是API對應的授權信息,可以在RAM權限策略語句的Action
元素中使用,用來給RAM用戶或RAM角色授予調用此API的權限。具體說明如下:
- 操作:是指具體的權限點。
- 訪問級別:是指每個操作的訪問級別,取值為寫入(Write)、讀取(Read)或列出(List)。
- 資源類型:是指操作中支持授權的資源類型。具體說明如下:
- 對于必選的資源類型,用背景高亮的方式表示。
- 對于不支持資源級授權的操作,用
全部資源
表示。
- 條件關鍵字:是指云產品自身定義的條件關鍵字。
- 關聯操作:是指成功執行操作所需要的其他權限。操作者必須同時具備關聯操作的權限,操作才能成功。
操作 | 訪問級別 | 資源類型 | 條件關鍵字 | 關聯操作 |
---|---|---|---|---|
emr:ListDoctorJobsStats | list |
|
| 無 |
請求參數
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
RegionId | string | 是 | 地域 ID。 | cn-hangzhou |
ClusterId | string | 是 | 集群 ID。 | c-b933c5aac8fe**** |
NextToken | string | 否 | 標記當前開始讀取的位置。 | DD6B1B2A-5837-5237-ABE4-FF0C89568980 |
MaxResults | integer | 否 | 一次獲取的最大記錄數。 | 20 |
StartRange | object | 否 | 開始時間范圍,過濾開始時間在一個時間范圍內的任務。 | |
StartTime | long | 否 | 任務提交時間起始范圍,Unix 時間戳,單位毫秒。 | 1679036826987 |
EndTime | long | 否 | 任務提交時間結束范圍,Unix 時間戳,單位毫秒。 | 1666406820000 |
EndRange | object | 否 | 結束時間范圍,過濾出結束時間在一個時間范圍內的任務。 | |
StartTime | long | 否 | 任務結束時間起始范圍,Unix 時間戳,單位毫秒。 | 1675180800000 |
EndTime | long | 否 | 任務結束時間結束范圍,Unix 時間戳,單位毫秒。 | 1680019200000 |
GroupBy | array | 否 | 分組字段列表。 目前只取第一個值,后續會放開多種分組交叉。 | |
String | string | 否 | 分組字段。取值:
| type |
OrderType | string | 否 | 排序方向,取值:
| ASC |
OrderBy | string | 否 | 排序字段。取值:
| vcoreSeconds |
返回參數
示例
正常返回示例
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 | 錯誤碼 | 錯誤信息 | 描述 |
---|---|---|---|
400 | ConflictParameters | Parameters that must not be used together. %s | 多個參數間存在沖突。 |
400 | IncompleteSignature | The request signature is invalid. | API請求簽名不合法。 |
400 | InvalidAction | The action %s requested is invalid. | 不合法的Action。 |
400 | InvalidParameter | The specified parameter %s is not valid. | 參數錯誤。 |
400 | InvalidParameterValue | The input parameter %s is invalid or out of range. | 參數值超出范圍。 |
400 | MissingAction | The action %s requested is missing. | 缺少Action參數 |
400 | MissingParameter | The input parameter %s that is mandatory for processing this request is not supplied. | 參數缺失。 |
400 | NotAuthorized | You do not have permission to perform this action. %s | 沒有權限。 |
400 | ThrottlingException | The request was denied due to request throttling. %s | 限流。 |
404 | ResourceNotFound | The resource not found by %s. | 請求的資源未找到。 |
500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | 內部錯誤。 |
503 | ServiceFailure | The request has failed due to a temporary failure of %s service. | 依賴的阿里云其他服務不可用。 |
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | 請求超時或者服務不可用。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
變更時間 | 變更內容概要 | 操作 |
---|
暫無變更歷史