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 参数

请求示例代码

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": {
        "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