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

/silence/{silenceID}

GET
http://127.0.0.1:9093/api/v2/silence/{silenceID}
Get a silence by its ID

请求参数

Path 参数
silenceID
string 
必需

示例代码

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/silence/'

返回响应

🟢200Get silence response
application/json
Body
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"
}
🟠404A silence with the specified ID was not found
🔴500500
修改于 2023-07-08 03:02:57
上一页
/silences
下一页
/silence/{silenceID}
Built with