Document Database Service

Modify the Database Alarm Rule of an Instance

2025-07-25 08:18:09
API Introduction

Call the modifyDbAlarmConfig AP to modify the database alarm rules of the MongoDB instance.

API Restrictions

None

URI
POST /v1/alarmOpenApi/modifyDbAlarmConfig

Path Parameter

None

Query Parameter

None

Request Parameters

Request Header Parameter

None

Request Body Parameter

Parameter

Required or Not

Parameter Type

Description

Instance

Lower-level Object

prodInstId

Yes

String

Instance ID

e3d802458aa848b98f45689f143761a8


monitor

No

String

Whether it is monitored, 1 means monitored

1


alarmMongoStatus

No

String

Whether to monitor the database status, 1 indicates monitoring

1


alarmThreadsConnected

No

String

Whether to monitor the disk, 1 indicates monitoring

1


thresholdWarningThreadsConnected

No

String

Number of connections warning threshold

800


thresholdCriticalThreadsConnected

No

String

Number of connections critical threshold

3000


Response Parameter

Parameter

Required or Not

Parameter Type

Description


Lower-level Object

statusCode

Yes

Integer

Response Code

Value range: 800 indicates success, 900 indicates failure

800


message

Yes

String

Response information

The host alarm rules of the MongoDB instance are queried successfully


returnObj

Yes

Object

Return object.


returnObj

Table returnObj

Parameter

Required or Not

Parameter Type

Description

Example

Lower-level Object

ProdInstId

Yes

String

Instance ID

e3d802458aa848b98f45689f143761a8


ModifyHostAlarmConfig

Yes

String

Whether the modification is successful, return success if succeeded

success


Sample Request

Request Header

None

Request Body

{
    "prodInstId":"e3d802458aa848b98f45689f143761a8",
    "thresholdWarningThreadsConnected":800
}
Response Example
{
    "statusCode": 800,
    "message": "the database alarm rules of the MongoDB instance are modified successfully",
    "returnObj": {
        "ModifyDbAlarmConfig": "success",
        "ProdInstId": "e3d802458aa848b98f45689f143761a8"
    }
}
Status Code

Status Code

Description

800

Indicate that the request succeeded

900

Indicates that the request failed

Error Codes

None


P1ZEkYSbfOOx