Alertmanager API
  1. silence
Alertmanager API
  • general
    • /status
      GET
  • receiver
    • /receivers
      GET
  • silence
    • /silences
      GET
    • /silences
      POST
    • /silence/{silenceID}
      GET
    • /silence/{silenceID}
      DELETE
  • alert
    • /alerts
      GET
    • /alerts
      POST
  • alertgroup
    • /alerts/groups
      GET
  1. silence

/silences

GET
http://127.0.0.1:9093/api/v2/silences
silence
Get a list of silences

请求参数

Query 参数
filter
array[string]
可选
A list of matchers to filter silences by

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:9093/api/v2/silences'

返回响应

🟢200Get silences response
application/json
Body
array of:
id
string 
必需
status
object 
silenceStatus
必需
state
enum<string> 
必需
枚举值:
expiredactivepending
updatedAt
string <date-time>
必需
matchers
array[object (matcher) {4}] 
matchers
必需
>= 1 items
name
string 
必需
value
string 
必需
isRegex
boolean 
必需
isEqual
boolean 
可选
默认值:
true
startsAt
string <date-time>
必需
endsAt
string <date-time>
必需
createdBy
string 
必需
comment
string 
必需
示例
[
    {
        "id": "string",
        "status": {
            "state": "expired"
        },
        "updatedAt": "2019-08-24T14:15:22Z",
        "matchers": [
            {
                "name": "string",
                "value": "string",
                "isRegex": true,
                "isEqual": true
            }
        ],
        "startsAt": "2019-08-24T14:15:22Z",
        "endsAt": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "comment": "string"
    }
]
🔴500500
修改于 2023-07-08 03:02:57
上一页
/receivers
下一页
/silences
Built with