Help Center/ Data Admin Service/ API Reference/ APIs/ Intelligent O&M/ Querying Blocked Session Count Trend
Updated on 2026-08-25 GMT+08:00

Querying Blocked Session Count Trend

Function

This API is used to query the blocked session count trend.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the permission listed below is required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    das::showCloudDBAInfo

    read

    -

    -

    -

    -

URI

GET /v3/{project_id}/instances/{instance_id}/lock-blocking/get-lock-blocking-trend

Table 1 URI parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

Project ID of a tenant in a region.

To obtain the value, see Obtaining a Project ID.

Constraints

N/A

Range

The value can contain 32 characters. Only letters and digits are allowed.

Default Value

N/A

instance_id

Yes

String

Definition

Instance ID, which uniquely identifies an instance.

Constraints

N/A

Range

The value can contain 32 characters. Only letters and digits are allowed.

Default Value

N/A

Request Parameters

Table 2 Query parameters

Parameter

Mandatory

Type

Description

start_time

Yes

Long

Definition

Start timestamp (ms).

Constraints

N/A

Range

N/A

Default Value

N/A

end_time

Yes

Long

Definition

End timestamp (ms).

Constraints

N/A

Range

N/A

Default Value

N/A

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

trend_list

Array of objects in Table 4

Definition

Trend list.

Range

N/A

interval_millis

Long

Definition

Time Interval (ms).

Range

N/A

Table 4 trend

Parameter

Type

Description

collect_time

Long

Definition

Collection time (ms).

Range

N/A

total_lock_blocking_count

Long

Definition

Total number of blocked sessions.

Range

N/A

async_io_completion_count

Long

Definition

Number of ASYNC_IO_COMPLETION waits.

Range

N/A

async_network_io_count

Long

Definition

Number of ASYNC_NETWORK_IO waits.

Range

N/A

cxconsumer_count

Long

Definition

Number of CXCONSUMER waits.

Range

N/A

cxpacket_count

Long

Definition

Number of CXPACKET waits.

Range

N/A

dtc_count

Long

Definition

Number of DTC waits.

Range

N/A

lck_m_bu_count

Long

Definition

Number of LCK_M_BU waits.

Range

N/A

lck_m_is_count

Long

Definition

Number of LCK_M_IS waits.

Range

N/A

lck_m_iu_count

Long

Definition

Number of LCK_M_IU waits.

Range

N/A

lck_m_ix_count

Long

Definition

Number of LCK_M_IX waits.

Range

N/A

other_count

Long

Definition

Number of blocked sessions caused by other waits.

Range

N/A

Example Requests

GET https://das.cn-north-1.myhuaweicloud.com/v3/054e292c9880d4992f02c0196d3ea468/instances/298ad59e995d48b185188c41d5b40268in04/lock-blocking/get-lock-blocking-trend?start_time=1764143240272&end_time=1764229640272 

Example Responses

Status code: 200

Success.

{
    "trend_list": [
        {
            "collect_time": 1764147600000,
            "total_lock_blocking_count": 0,
            "async_io_completion_count": 0,
            "async_network_io_count": 0,
            "cxconsumer_count": 0,
            "cxpacket_count": 0,
            "dtc_count": 0,
            "lck_m_bu_count": 0,
            "lck_m_is_count": 0,
            "lck_m_iu_count": 0,
            "lck_m_ix_count": 0,
            "other_count": 0
        }
    ],
    "interval_millis": 3600000
}

Status Codes

Status Code

Description

200

Success.

400

Client error.

500

Server error.

Error Codes

See Error Codes.