All Products
Search
Document Center

DataWorks:ListResourceGroupMetricData

Last Updated:Jan 12, 2026

Queries the metric data of a resource group.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dataworks:ListResourceGroupMetricDataget
*DwResourceGroup
acs:dataworks:{#regionId}:{#accountId}:dwresourcegroup/{#DwResourceGroupId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ResourceGroupIdstringYes

The unique identifier for the general-purpose resource group.

Serverless_res_group_524257424564736_6831777003XXXXX
MetricNamestringYes

The metric name. Valid values:

  • CUSpec: Maximum CU capacity of the resource group, in CUs.
  • CUUsage: CU usage of the resource group, in CUs.
  • CUUtilization: CU utilization of the resource group, in %.
  • SlotSpec: Maximum number of concurrent slots for resource group scheduling, in slots.
  • SlotUsage: Used concurrency for resource group scheduling, in slots.
  • SchedulerCUMaxSpec: Maximum CU quota for data computing, in CUs.
  • SchedulerCUUsage: CU usage for data computing, in CUs.
  • SchedulerCUMinSpec: Minimum guaranteed CUs for data computing, in CUs.
  • DataIntegrationCUMaxSpec: Maximum CU quota for Data Integration, in CUs.
  • DataIntegrationCUUsage: CU usage for Data Integration, in CUs.
  • DataIntegrationCUMinSpec: Minimum guaranteed CUs for Data Integration, in CUs.
  • DataServiceCUMaxSpec: Maximum CU quota for DataService Studio, in CUs.
  • DataServiceCUUsage: CU usage for DataService Studio, in CUs.
  • DataServiceCUMinSpec: Minimum guaranteed CUs for DataService Studio, in CUs.
  • ServerIdeCUMaxSpec: Maximum CU quota for personal development environment, in CUs.
  • ServerIdeCUUsage: CU usage for personal development environment, in CUs.
  • ServerIdeCUMinSpec: Minimum guaranteed CUs for personal development environment, in CUs.
CUSpec
PeriodstringNo

The statistical period for monitoring data.

Value: A multiple of 60.

Unit: Seconds.

Default: 60.

60
BeginTimelongNo

The start time.

Supported format: Unix timestamp in milliseconds (the number of milliseconds that have elapsed since January 1, 1970).

The interval between BeginTime and EndTime must be less than or equal to 31 days.

Default: The current time minus 2 hours, expressed as a millisecond Unix timestamp.

1593950832000
EndTimelongNo

The end time.

Supported format: Unix timestamp in milliseconds (the number of milliseconds that have elapsed since January 1, 1970).

The interval between BeginTime and EndTime must be less than or equal to 31 days.

Default: The current time, expressed as a millisecond Unix timestamp.

1750176000000
NextTokenstringNo

The pagination cursor.

Note If this parameter is not set, the first page of data is retrieved. If a value is returned for this parameter, it indicates that there is a next page. You can use the returned NextToken as a parameter to request the next page of data until it returns Null, which means all data has been retrieved.
FFqBJBxE8I0PE0IUO6K69k7m2FfyWNNc2qQ9ReUkazhz9VA7dWZKlxBcjUwOV0imSM
LengthintegerNo

The number of records to display on each page for paginated queries.

Note The maximum value of Length for a single request is 1440.
100

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

Successboolean

Indicates whether the request was successful.

true
MetricDataobject

Monitoring metric data.

Idstring

The unique identifier for the resource group.

Serverless_res_group_524257424564736_6831777003XXXXX
MetricNamestring

The metric name. Valid values:

  • CUSpec: Maximum CU capacity of the resource group, in CUs.
  • CUUsage: CU usage of the resource group, in CUs.
  • CUUtilization: CU utilization of the resource group, in %.
  • SlotSpec: Maximum number of concurrent slots for resource group scheduling, in slots.
  • SlotUsage: Used concurrency for resource group scheduling, in slots.
  • SchedulerCUMaxSpec: Maximum CU quota for data computing, in CUs.
  • SchedulerCUUsage: CU usage for data computing, in CUs.
  • SchedulerCUMinSpec: Minimum guaranteed CUs for data computing, in CUs.
  • DataIntegrationCUMaxSpec: Maximum CU quota for Data Integration, in CUs.
  • DataIntegrationCUUsage: CU usage for Data Integration, in CUs.
  • DataIntegrationCUMinSpec: Minimum guaranteed CUs for Data Integration, in CUs.
  • DataServiceCUMaxSpec: Maximum CU quota for DataService Studio, in CUs.
  • DataServiceCUUsage: CU usage for DataService Studio, in CUs.
  • DataServiceCUMinSpec: Minimum guaranteed CUs for DataService Studio, in CUs.
  • ServerIdeCUMaxSpec: Maximum CU quota for personal development environment, in CUs.
  • ServerIdeCUUsage: CU usage for personal development environment, in CUs.
  • ServerIdeCUMinSpec: Minimum guaranteed CUs for personal development environment, in CUs.
CUSpec
NextTokenstring

The pagination cursor.

tSBOXZcAmk+akxRkwRuXnGQEsIDODyd5ulPqgytNTbLp4bhb7fuvz13FXtm87Kfl
Metricsarray<object>

The list of metric data.

Metricobject

The metric data.

Valuedouble

The value of the metric data.

1.0
Timestamplong

The timestamp.

1761184929633
RequestIdstring

The request ID, used for locating logs and troubleshooting.

6A6CBE87-9F91-1323-B680-E7A7065XXXXX

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "MetricData": {
    "Id": "Serverless_res_group_524257424564736_6831777003XXXXX\n",
    "MetricName": "CUSpec",
    "NextToken": "tSBOXZcAmk+akxRkwRuXnGQEsIDODyd5ulPqgytNTbLp4bhb7fuvz13FXtm87Kfl",
    "Metrics": [
      {
        "Value": 1,
        "Timestamp": 1761184929633
      }
    ]
  },
  "RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX\n"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2025-11-04Add OperationView Change Details