All Products
Search
Document Center

AnalyticDB:DescribeWorkerDetection

Last Updated:Nov 10, 2025

Queries the diagnostic results of the storage layer.

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
adb:DescribeWorkerDetectionget
DBCluster
acs:adb:{#regionId}:{#accountId}:dbcluster/{#DBClusterId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DBClusterIdstringYes

The cluster ID.

Note You can call the DescribeDBClusters operation to query the information about all AnalyticDB for MySQL clusters within a region, including cluster IDs.
am-xxxxx
RegionIdstringYes

The region ID.

Note You can call the DescribeRegions operation to query the most recent region list.
cn-beijing
StartTimestringYes

The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC.

2021-11-18T00:00Z
EndTimestringYes

The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC.

2024-04-25T02:04Z
LangstringNo

The language. Valid values:

  • zh (default): simplified Chinese.
  • en: English
zh

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

TotalCountstring

The total number of entries returned.

20
RequestIdstring

The request ID.

E5B37B61-E6C9-5FE0-9374-45BAA548AEF6
DBClusterIdstring

The cluster ID.

am-xxxxx
DetectionItemsarray<object>

The queried detection items and detection results.

BaseDetectionItemobject

The queried detection item and detection result.

Namestring

The name of the detection item.

Metric detection
Resultsobject

The detection result items.

SkewedTablesarray<object>

The detection result items of skewed tables.

SkewedTablesListobject

The detection result items of skewed table.

SchemaNamestring

The name of the database.

platfunc
TableNamestring

The name of the table.

sls_log_cheat_action
DDLstring

The SQL statement that is used to create the table.

create table test(id varchar)
PartitionCountinteger

The number of partitions.

2
TotalDataSizelong

The total data size of the table. Unit: bytes.

2345
TotalRowCountlong

The number of rows in the table.

34
TotalPkSizelong

The data size of the primary key. Unit: bytes.

234
TotalRemoteDataSizelong

The size of cold data. Unit: bytes.

234
TotalLocalDataSizestring

The size of hot data. Unit: bytes.

2345
ShardSkewedRowsstring

The number of skewed rows in the table.

1234
PartitionedTablesarray<object>

The detection result items of improper partitioned tables.

PartitionedTablesListobject

The detection result items of the improper partitioned table.

SchemaNamestring

The name of the database.

nxg
TableNamestring

The name of the table.

zhw_place_order
DDLstring

The SQL statement that is used to create the table.

create table test(id varchar)
PartitionCountstring

The number of partitions.

234
PartitionIdsstring

The ID of the improper partition.

[2024,2025]
TotalDataSizelong

The total data size of the table.

1234
TopAccessTablesarray<object>

The detection result items of table access.

TopAccessTablesListobject

The detection result items of table access.

MetricNamestring

The name of the detection metric.

Peak memory detection
SearchResultsarray<object>

The detection result items of table access.

ResultListobject

The detection result items of table access.

TableNamestring

The name of the table.

tiberias_2copt_origin_order_goods_info
MaxScanCostlong

The maximum amount of time for scanning. Unit: milliseconds.

345
AvgScanCostdouble

The average amount of time for scanning. Unit: milliseconds.

234
MaxScanSizelong

The maximum data size for scanning. Unit: bytes.

2345
AvgScanSizedouble

The average data size for scanning. Unit: bytes.

234
AccessCountlong

The number of accesses to the table.

1111
OperatorDetailsarray<object>

The detection result items of abnormal operators.

BadOperatorDetailsobject

The detection result items of abnormal operators.

MetricNamestring

The name of the detection metric.

PeakMemory
SearchResultsarray<object>

The detection result items of abnormal operators.

ResultListobject

The detection result items of the abnormal operator.

ProcessIdstring

The query ID that can be used for diagnostics.

2024041909301402103302422803151411141
StageIdstring

The stage ID.

Stage[2]
OperatorNamestring

The name of the operator.

TableScan
PeakMemorylong

The peak memory. Unit: bytes.

23
OperatorCostlong

The total CPU time consumed by all operators in the stage, which is equivalent to the total CPU time of the stage. You can use this parameter to determine which parts of the stage consume a large amount of computing resources. Unit: milliseconds.

23
InputRowslong

The number of rows input by the operator.

123
OutputRowslong

The number of rows output by the operator.

123
InputSizelong

The amount of data input by the operator. Unit: bytes.

123
OutputSizelong

The amount of data output by the operator. Unit: bytes.

123
OperatorInfostring

The property information about the operator.

GROUP BY field: id
OperatorAggarray<object>

The detection result items of operator metric aggregation.

BadOperatorAggobject

The detection result items of operator metric aggregation.

MetricNamestring

The detection result items of operator metric aggregation.

Peak memory
SearchResultsarray<object>

The detection result items of operator metric aggregation.

ResultListobject

The detection result items of operator metric aggregation.

OperatorNamestring

The name of the operator.

Aggregation
MaxValuelong

The maximum value of the operator metric.

444
TotalValuelong

The cumulative value of the operator metric.

123
AvgValuedouble

The average value of the operator metric.

2234
OperatorCountlong

The number of occurrences of the operator.

1234
Messagestring

The information about the detection result.

There are a total of 10 tables with an excessive number of primary keys.
Statusstring

The severity level of the detection result. Valid values:

  • NORMAL
  • WARNING
  • CRITICAL
WARNING

Examples

Sample success responses

JSONformat

{
  "TotalCount": 20,
  "RequestId": "E5B37B61-E6C9-5FE0-9374-45BAA548AEF6",
  "DBClusterId": "am-xxxxx",
  "DetectionItems": [
    {
      "Name": "Metric detection",
      "Results": {
        "SkewedTables": [
          {
            "SchemaName": "platfunc",
            "TableName": "sls_log_cheat_action",
            "DDL": "create table test(id varchar)",
            "PartitionCount": 2,
            "TotalDataSize": 2345,
            "TotalRowCount": 34,
            "TotalPkSize": 234,
            "TotalRemoteDataSize": 234,
            "TotalLocalDataSize": 2345,
            "ShardSkewedRows": 1234
          }
        ],
        "PartitionedTables": [
          {
            "SchemaName": "nxg",
            "TableName": "zhw_place_order",
            "DDL": "create table test(id varchar)",
            "PartitionCount": 234,
            "PartitionIds": [
              2024,
              2025
            ],
            "TotalDataSize": 1234
          }
        ],
        "TopAccessTables": [
          {
            "MetricName": "Peak memory detection",
            "SearchResults": [
              {
                "TableName": "tiberias_2copt_origin_order_goods_info",
                "MaxScanCost": 345,
                "AvgScanCost": 234,
                "MaxScanSize": 2345,
                "AvgScanSize": 234,
                "AccessCount": 1111
              }
            ]
          }
        ],
        "OperatorDetails": [
          {
            "MetricName": "PeakMemory",
            "SearchResults": [
              {
                "ProcessId": 2.0240419093014022e+36,
                "StageId": "Stage[2]",
                "OperatorName": "TableScan",
                "PeakMemory": 23,
                "OperatorCost": 23,
                "InputRows": 123,
                "OutputRows": 123,
                "InputSize": 123,
                "OutputSize": 123,
                "OperatorInfo": "GROUP BY field: id\n"
              }
            ]
          }
        ],
        "OperatorAgg": [
          {
            "MetricName": "Peak memory",
            "SearchResults": [
              {
                "OperatorName": "Aggregation",
                "MaxValue": 444,
                "TotalValue": 123,
                "AvgValue": 2234,
                "OperatorCount": 1234
              }
            ]
          }
        ]
      },
      "Message": "There are a total of 10 tables with an excessive number of primary keys.",
      "Status": "WARNING"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
404InvalidDBCluster.NotFoundThe DBClusterId provided does not exist in our records.The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid.

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