- Open API
- Quick Start
- About Pagination
- Member Management
- Team Management
- Schedule Management
- Information Retrieval
- Preference Settings
- Channel
- Template Management
- Incident Management
- Group View
- Match conditions
- Enable rule
- Disable rule
- Delete rule
- Rule list
- See creation interface for filters explanation
- Create rule
- Rule description
- Update rule
- Channel
- Match conditions
- Match conditions
- Update rule
- Channel
- Rule ID
- Inner conditions
- Enable rule
- Rule list
- Rule details
- Rule name
- Rule description
- Match conditions
- Rule description
- See creation interface for filters explanation
- Disable rule
- Rule description
- Alert Management
- Change Management
- Insights (old)
- Custom Fields
- Service Calendar
- Label Enhancement
- Alert Processing
- Integration Routing
- License Management
- Insights
- Event API
- Webhook
Rule ID
POST
/alert/list-by-ids
Request
Body Params application/json
alert_ids
array[string]
Required when updating
Example
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://prod-cn.your-api-server.com/alert/list-by-ids' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200成功
application/json
Body
error
object (DutyError)
optional
code
enum<string>
Rule description
Allowed values:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
Inner conditions
data
object
optional
items
array[object (Alert) {26}]
required
Example
{
"error": {
"code": "InvalidParameter",
"message": "string"
},
"data": {
"items": [
{
"alert_id": "string",
"channel_id": 0,
"channel_name": "string",
"data_source_id": 0,
"data_source_name": "string",
"data_source_type": "string",
"data_source_ref_id": "string",
"title": "string",
"title_rule": "string",
"description": "string",
"alert_key": "string",
"alert_severity": "Info",
"alert_status": "Info",
"progress": "Triggered",
"start_time": 0,
"last_time": 0,
"end_time": 0,
"close_time": 0,
"created_at": 0,
"updated_at": 0,
"labels": {},
"events": [
{
"event_id": "string",
"data_source_id": 0,
"channel_id": 0,
"title": "string",
"title_rule": "string",
"description": "string",
"alert_id": "string",
"event_status": "Info",
"event_severity": "Info",
"event_time": 0,
"labels": {}
}
],
"responder_id": 0,
"incident": {
"incident_id": "string",
"title": "string"
},
"event_cnt": 0,
"ever_muted": true
}
]
}
}
Modified at 2025-01-22 10:14:38