通過EMR Doctor擷取叢集單個資源使用結果。
介面說明
get one specific luster engine queue by <type, name>
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
emr:GetDoctorComputeSummary |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
地區 ID。 |
cn-hangzhou |
| ClusterId |
string |
是 |
叢集 ID。 |
c-b933c5aac8fe**** |
| DateTime |
string |
是 |
其日期和時間資訊以 ISO 8601 格式表示, 例如:2023 年 1 月 1 日為 2023-01-01。 |
2023-01-01 |
| ComponentInfo |
object |
否 |
資源資訊,用於過濾結果。 |
|
| ComponentType |
string |
否 |
過濾資源的類型。取值:
如果不填寫,預設展示整個叢集資訊。 |
engine |
| ComponentName |
string |
否 |
根據 ComponentType 來設定特定過濾條件,如 ComponentType 為 queue,就可以指定特定隊列名稱來擷取特定隊列資源使用方式。 |
MAPREDUCE |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回資料 |
||
| Data |
object |
資源使用詳情。 |
|
| Metrics |
object |
指標資料。 |
|
| VcoreSeconds |
object |
資源 CPU 使用總量。 |
|
| Name |
string |
指標名稱。 |
vcoreSeconds |
| Value |
integer |
指標值。 |
1231412 |
| Unit |
string |
指標單位。 |
VCores * Sec |
| Description |
string |
指標描述。 |
Total vcore usage over time in seconds |
| MemSeconds |
object |
資源記憶體使用量總量。 |
|
| Name |
string |
指標名稱。 |
memSeconds |
| Value |
integer |
指標值。 |
12312312 |
| Unit |
string |
指標單位。 |
MB * Sec |
| Description |
string |
指標描述。 |
Total memory usage over time in seconds |
| VcoreUtilization |
object |
資源平均 CPU 使用率。同 Linux Top 的%CPU 含義。 |
|
| Name |
string |
指標名稱。 |
vcoreUtilization |
| Value |
number |
指標值。 |
32.1 |
| Unit |
string |
指標單位。 |
“” |
| Description |
string |
指標描述。 |
Ratio of used vcore to total available cores |
| MemUtilization |
object |
資源平均記憶體利用率。 |
|
| Name |
string |
指標名稱。 |
memUtilization |
| Value |
number |
指標值。 |
0.82 |
| Unit |
string |
指標單位。 |
"" |
| Description |
string |
指標描述。 |
Ratio of used memory to total available memory |
| VcoreSecondsDayGrowthRatio |
object |
資源 CPU 使用總量日環比。 |
|
| Name |
string |
指標名稱。 |
vcoreSecondsDayGrowthRatio |
| Value |
number |
指標值。 |
0.22 |
| Unit |
string |
指標單位。 |
“” |
| Description |
string |
指標描述。 |
Growth ratio of virtual core usage in seconds per day |
| MemSecondsDayGrowthRatio |
object |
資源記憶體使用量總量日環比。 |
|
| Name |
string |
指標名稱。 |
memSecondsDayGrowthRatio |
| Value |
number |
指標值。 |
0.36 |
| Unit |
string |
指標單位。 |
“” |
| Description |
string |
指標描述。 |
Growth ratio of memory usage in seconds per day |
| ReadSize |
object |
資源讀取檔案系統總量。 |
|
| Name |
string |
指標名稱。 |
readSize |
| Value |
integer |
指標值。 |
504888659968 |
| Unit |
string |
指標單位。 |
MB |
| Description |
string |
指標描述。 |
Total cumulative size of data read in megabytes (MB) |
| WriteSize |
object |
資源寫入檔案系統總量。 |
|
| Name |
string |
指標名稱。 |
writeSize |
| Value |
integer |
指標值。 |
6294093393920 |
| Unit |
string |
指標單位。 |
MB |
| Description |
string |
指標描述。 |
Total cumulative size of data written in megabytes (MB) |
| Analysis |
object |
資源分析。 |
|
| HealthyJobCount |
integer |
健康任務總數。 |
3 |
| SubHealthyJobCount |
integer |
亞健康任務總數。 |
1123 |
| UnhealthyJobCount |
integer |
不健康任務總數。 |
23 |
| NeedAttentionJobCount |
integer |
需要關注的任務總數。 |
234 |
| Score |
integer |
資源任務評分。 |
73 |
| ScoreDayGrowthRatio |
number |
資源任務評分日環比。 |
0.02 |
| RequestId |
string |
請求 ID。 |
DD6B1B2A-5837-5237-ABE4-FF0C8944**** |
樣本
正常返回樣本
JSON格式
{
"Data": {
"Metrics": {
"VcoreSeconds": {
"Name": "vcoreSeconds\n",
"Value": 1231412,
"Unit": "VCores * Sec\n",
"Description": "Total vcore usage over time in seconds\n"
},
"MemSeconds": {
"Name": "memSeconds\n",
"Value": 12312312,
"Unit": "MB * Sec\n",
"Description": "Total memory usage over time in seconds\n"
},
"VcoreUtilization": {
"Name": "vcoreUtilization\n",
"Value": 32.1,
"Unit": "“”\n",
"Description": "Ratio of used vcore to total available cores\n"
},
"MemUtilization": {
"Name": "memUtilization\n",
"Value": 0.82,
"Unit": "\"\"",
"Description": "Ratio of used memory to total available memory\n"
},
"VcoreSecondsDayGrowthRatio": {
"Name": "vcoreSecondsDayGrowthRatio",
"Value": 0.22,
"Unit": "“”",
"Description": "Growth ratio of virtual core usage in seconds per day"
},
"MemSecondsDayGrowthRatio": {
"Name": "memSecondsDayGrowthRatio",
"Value": 0.36,
"Unit": "“”",
"Description": "Growth ratio of memory usage in seconds per day"
},
"ReadSize": {
"Name": "readSize",
"Value": 504888659968,
"Unit": "MB",
"Description": "Total cumulative size of data read in megabytes (MB)"
},
"WriteSize": {
"Name": "writeSize",
"Value": 6294093393920,
"Unit": "MB",
"Description": "Total cumulative size of data written in megabytes (MB)"
}
},
"Analysis": {
"HealthyJobCount": 3,
"SubHealthyJobCount": 1123,
"UnhealthyJobCount": 23,
"NeedAttentionJobCount": 234,
"Score": 73,
"ScoreDayGrowthRatio": 0.02
}
},
"RequestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****"
}
錯誤碼
|
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 | 限流。 |
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | 內部錯誤。 |
| 404 | ResourceNotFound | The resource not found by %s. | 請求的資源未找到。 |
| 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. | 請求逾時或者服務不可用。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。