GetResourceGroupStatistics
Queries the statistics of Data Science Workshop (DSW) instances running in a specified resource group. A resource group is a set of dedicated machine resources purchased by a user before using Machine Learning Platform for AI (PAI). These resources are exclusive to the user and are not shared with others. Subsequent PAI computing tasks or algorithm development environments run on these machines. This operation retrieves the current and historical running statuses, such as success, failure, and stopped, of DSW instances in the specified resource group to help users understand task history and utilize machine resources more efficiently.
Operation description
Retrieves the running status statistics of Data Science Workshop (DSW) instances in a specified workspace and resource group based on the workspace ID, resource group ID, and statistical time range.
Try it now
Test
RAM authorization
Request syntax
GET /api/v2/resourcegroupstatistics HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceIds |
string |
Yes |
The list of workspace IDs. Separate multiple IDs with commas (,). For more information about how to obtain a workspace ID, see ListWorkspaces. |
27218,34956 |
| ResourceId |
string |
Yes |
The ID of the resource group, which uniquely identifies the resource group. |
rg-123456789 |
| StartTime |
string |
Yes |
The start time of the statistical period. |
2020-11-08T15:00:00Z |
| EndTime |
string |
Yes |
The end time of the statistical period. |
2020-11-08T15:00:00Z |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The resource group statistics information. |
||
| RequestId |
string |
The ID of the request. |
E7D55162-4489-1619-AAF5-3F97D5FCA948 |
| Success |
boolean |
Specifies whether the request is successful. Valid values:
|
true |
| Message |
string |
The message returned in the response. |
"XXX" |
| Code |
string |
The status code. Valid values:
|
InternalError |
| HttpStatusCode |
integer |
The HTTP status code. Valid values:
|
400 |
| Statistics |
object |
The statistics information. |
{"key":{"key":5}} |
|
object |
|
{"key":5} |
|
|
integer |
The statistical value. |
5 |
Examples
Success response
JSON format
{
"RequestId": "E7D55162-4489-1619-AAF5-3F97D5FCA948",
"Success": true,
"Message": "\"XXX\"",
"Code": "InternalError",
"HttpStatusCode": 400,
"Statistics": {
"key": {
"key": 5
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.