create_silence
Suppress OpenShift alerts by creating an Alertmanager silence with custom matchers and duration.
Instructions
Create an Alertmanager silence. matchers: comma-separated key=value or key=~regex pairs. Example: 'alertname=Watchdog,severity=~warning|critical' duration_hours: silence duration in hours (default 4).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"matchers": "<matchers>",
"comment": "<comment>"
},
"name": "create_silence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster | No | ||
| comment | Yes | ||
| matchers | Yes | ||
| duration_hours | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |