GetResourceGroupStatistics

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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

  • false

true

Message

string

The message returned in the response.

"XXX"

Code

string

The status code. Valid values:

  • InternalError: An internal error occurred. All errors other than parameter validation errors are classified as internal errors.

  • ValidationError: A parameter validation error occurred.

InternalError

HttpStatusCode

integer

The HTTP status code. Valid values:

  • 400

  • 404

400

Statistics

object

The statistics information.

{"key":{"key":5}}

object

  • Running DSW tasks: Running: 3.

  • Stopped DSW tasks: Stopped: 4.

{"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.