diff --git a/Documentation/api.md b/Documentation/api.md index 5009350c2f..472340d3ac 100644 --- a/Documentation/api.md +++ b/Documentation/api.md @@ -15571,6 +15571,90 @@ int +
+(Appears on:Receiver) +
+DiscordConfig configures notifications via Discord. +See https://prometheus.io/docs/alerting/latest/configuration/#discord_config
+Field | +Description | +
---|---|
+sendResolved + +bool + + |
+
+(Optional)
+ Whether or not to notify about resolved alerts. + |
+
+apiURL + + +Kubernetes core/v1.SecretKeySelector + + + |
+
+ The secret’s key that contains the Discord webhook URL. +The secret needs to be in the same namespace as the AlertmanagerConfig +object and accessible by the Prometheus Operator. + |
+
+title + +string + + |
+
+(Optional)
+ The template of the message’s title. + |
+
+message + +string + + |
+
+(Optional)
+ The template of the message’s body. + |
+
+httpConfig + + +HTTPConfig + + + |
+
+(Optional)
+ HTTP client configuration. + |
+
@@ -15820,7 +15904,7 @@ Duration
-(Appears on:OpsGenieConfig, PagerDutyConfig, PushoverConfig, SNSConfig, SlackConfig, TelegramConfig, VictorOpsConfig, WeChatConfig, WebhookConfig) +(Appears on:DiscordConfig, OpsGenieConfig, PagerDutyConfig, PushoverConfig, SNSConfig, SlackConfig, TelegramConfig, VictorOpsConfig, WeChatConfig, WebhookConfig)
HTTPConfig defines a client HTTP configuration. @@ -18251,6 +18335,20 @@ string
discordConfigs
List of Discord configurations.
+slackConfigs
+(Appears on:Receiver) +
+DiscordConfig configures notifications via Discord. +See https://prometheus.io/docs/alerting/latest/configuration/#discord_config
+Field | +Description | +
---|---|
+sendResolved + +bool + + |
+
+(Optional)
+ Whether or not to notify about resolved alerts. + |
+
+apiURL + + +Kubernetes core/v1.SecretKeySelector + + + |
+
+ The secret’s key that contains the Discord webhook URL. +The secret needs to be in the same namespace as the AlertmanagerConfig +object and accessible by the Prometheus Operator. + |
+
+title + +string + + |
+
+(Optional)
+ The template of the message’s title. + |
+
+message + +string + + |
+
+(Optional)
+ The template of the message’s body. + |
+
+httpConfig + + +HTTPConfig + + + |
+
+(Optional)
+ HTTP client configuration. + |
+
@@ -20586,7 +20768,7 @@ SafeTLSConfig
-(Appears on:OpsGenieConfig, PagerDutyConfig, PushoverConfig, SNSConfig, SlackConfig, TelegramConfig, VictorOpsConfig, WeChatConfig, WebhookConfig) +(Appears on:DiscordConfig, OpsGenieConfig, PagerDutyConfig, PushoverConfig, SNSConfig, SlackConfig, TelegramConfig, VictorOpsConfig, WeChatConfig, WebhookConfig)
HTTPConfig defines a client HTTP configuration. @@ -21784,6 +21966,19 @@ string
discordConfigs
List of Slack configurations.
+slackConfigs