Help Center/ Cloud Service Engine/ API Reference/ CSE API/ Microservice Governance/ Querying Microservice Thresholds in Batches
Updated on 2025-12-01 GMT+08:00

Querying Microservice Thresholds in Batches

Function

This API is used to query microservice thresholds in batches.

Authorization Information

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

  • If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
  • If you are using identity policy-based authorization, no identity policy-based permissions are required for calling this API.

URI

GET /v3/{project_id}/csemonitor/thresholds

Table 1 Path parameter

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID, which must be unique. The value contains 1 to 64 characters.

Table 2 Query parameters

Parameter

Mandatory

Type

Description

services

Yes

String

List of services whose thresholds are to be queried, which are separated by commas (,).

Example: service1,service2

Request

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

X-Enterprise-Project-ID

No

String

If this parameter is not set, the default enterprise project is default and the ID is 0.

Content-Type

Yes

String

Set it to application/json;charset=UTF-8.

Accept

Yes

String

Set it to application/json.

Response

Status code: 200
Table 4 Response body parameters

Parameter

Type

Description

OK

Array of MetricThreshold objects

Query result.

Table 5 MetricThreshold

Parameter

Type

Description

$timestamp

Long

Timestamp.

appId

String

Application ID.

avgDelay

Integer

Average latency, in milliseconds.

environment

String

Environment name.

failureRate

Float

Request failure rate (%).

serviceName

String

Service name.

throughput

Integer

Throughput, in seconds.

Status code: 400
Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

detail

String

Location details.

Status code: 500
Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

detail

String

Location details.

Example Request

GET https://{endpoint}/v3/{project_id}/csemonitor/thresholds?services=service1,service2

Example Response

Status code: 200

OK

[
  {
    "serviceName": "string",
    "appId": "string",
    "environment": "",
    "throughput": 10,
    "avgDelay": 10,
    "failureRate": 10.0,
    "$timestamp": 0
  }
]

Status Code

Status Code

Description

200

OK

400

Bad Request

500

Internal Server Error

Error Code

See Error Codes.