数据库 CRDT 源警报请求
无冲突复制数据类型 (CRDT) 源警报请求
Redis 企业软件 |
---|
方法 | 路径 | 描述 |
---|---|---|
获取 | /v1/bdbs/crdt_sources/alerts |
获取所有 CRDB 数据库的所有 CRDT 源警报状态 |
获取 | /v1/bdbs/crdt_sources/alerts/{uid} |
获取数据库的所有 CRDT 源警报状态 |
获取 | /v1/bdbs/crdt_sources/alerts/{uid}/{crdt_src_id} |
获取 CRDT 源的所有警报状态 |
获取 | /v1/bdbs/crdt_sources/alerts/{uid}/{crdt_src_id}/{alert} |
获取数据库警报状态 |
获取所有 CRDB CRDT 源警报状态
GET /v1/bdbs/crdt_sources/alerts
获取所有 CRDB 的所有 CRDT 源的所有警报状态。
所需权限
权限名称 |
---|
view_all_bdbs_alerts |
请求
HTTP 请求示例
GET /v1/bdbs/crdt_sources/alerts
请求标头
钥匙 | 价值 | 描述 |
---|---|---|
主机 | cnm.cluster.fqdn 中 | 域名 |
接受 | 应用程序/JSON | 接受的媒体类型 |
响应
返回警报 UID 的哈希值以及 CRDB 的每个本地 BDB 的警报状态。
示例 JSON 正文
{
"1": {
"crdt_src_syncer_connection_error": {
"enabled": true,
"state": true,
"threshold": "80",
"change_time": "2014-08-29T11:19:49Z",
"severity": "WARNING",
"change_value": {
"state": true,
"threshold": "80",
"memory_util": 81.2
}
},
"..."
},
"..."
}
Status codes
Code
Description
200 OK
No error
Get all BDB CRDT sources alert states
GET /v1/bdbs/crdt_sources/alerts/{int: uid}
Get all alert states for all crdt sources for a specific local bdb of a CRDB.
Required permissions
Permission name
view_bdb_alerts
Request
Example HTTP request
GET /v1/bdbs/crdt_sources/alerts/1
Request headers
Key
Value
Description
Host
cnm.cluster.fqdn
Domain name
Accept
application/json
Accepted media type
URL parameters
Field
Type
Description
uid
integer
The unique ID of the database
Response
Returns a hash of alert objects and their states.
Example JSON body
{
"crdt_src_syncer_connection_error": {
"enabled": true,
"state": true,
"threshold": "80",
"severity": "WARNING",
"change_time": "2014-08-29T11:19:49Z",
"change_value": {
"state": true,
"threshold": "80",
"memory_util": 81.2
}
},
"..."
}
Status codes
Code
Description
200 OK
No error
404 Not Found
Specified bdb does not exist
Get all CRDT source alert states
GET /v1/bdbs/crdt_sources/alerts/{int: uid}/{int: crdt_src_id}
Get all alert states for specific crdt source for a specific local BDB
of a CRDB.
Required permissions
Permission name
view_bdb_alerts
Request
Example HTTP request
GET /v1/bdbs/crdt_sources/alerts/1/2
Request headers
Key
Value
Description
Host
cnm.cluster.fqdn
Domain name
Accept
application/json
Accepted media type
URL parameters
Field
Type
Description
uid
integer
The unique ID of the database
crdt_src_id
integer
The ID of the crdt source in this BDB
Response
Returns a hash of alert objects and their states.
Example JSON body
{
"crdt_src_syncer_connection_error": {
"enabled": true,
"state": true,
"threshold": "80",
"severity": "WARNING",
"change_time": "2014-08-29T11:19:49Z",
"change_value": {
"state": true,
"threshold": "80",
"memory_util": 81.2
}
},
"..."
}
Status codes
Code
Description
200 OK
No error
404 Not Found
Specified bdb does not exist
Get database alert state
GET /v1/bdbs/crdt_sources/alerts/{int: uid}/{int: crdt_src_id}/{alert}
Get a BDB alert state.
Required permissions
Permission name
view_bdb_alerts
Request
Example HTTP request
GET /v1/bdbs/crdt_sources/alerts/1/2/crdt_src_syncer_connection_error
Request headers
Key
Value
Description
Host
cnm.cluster.fqdn
Domain name
Accept
application/json
Accepted media type
URL parameters
Field
Type
Description
uid
integer
The unique ID of the database
crdt_src_id
integer
The ID of the crdt source in this BDB
alert
string
The alert name
Response
Returns an alert object.
Example JSON body
{
"enabled": true,
"state": true,
"threshold": "80",
"severity": "WARNING",
"change_time": "2014-08-29T11:19:49Z",
"change_value": {
"state": true,
"threshold": "80",
"memory_util": 81.2
}
}
Status codes
Code
Description
200 OK
No error
400 Bad Request
Bad request
404 Not Found
Specified alert or bdb does not exist
On this page