diff --git a/content/docs/alerting/configuration.md b/content/docs/alerting/configuration.md index 5e41c0de4..20a93849a 100755 --- a/content/docs/alerting/configuration.md +++ b/content/docs/alerting/configuration.md @@ -88,6 +88,9 @@ global: [ opsgenie_api_url: | default = "https://api.opsgenie.com/" ] [ hipchat_api_url: | default = "https://api.hipchat.com/" ] [ hipchat_auth_token: ] + [ wechat_api_url: | default = "https://qyapi.weixin.qq.com/cgi-bin/" ] + [ wechat_api_secret: ] + [ wechat_api_corp_id: ] # The default HTTP client configuration [ http_config: ] @@ -279,6 +282,8 @@ webhook_configs: [ - , ... ] victorops_configs: [ - , ... ] +wechat_configs: + [ - , ... ] ``` ## `` @@ -578,3 +583,29 @@ endpoint: There is a list of [integrations](/docs/operating/integrations/#alertmanager-webhook-receiver) with this feature. + +## `` + +WeChat notifications are sent via the [WeChat +API](http://admin.wechat.com/wiki/index.php?title=Customer_Service_Messages). + +```yaml +# Whether or not to notify about resolved alerts. +[ send_resolved: | default = false ] + +# The API key to use when talking to the WeChat API. +[ api_secret: | default = global.wechat_secret_url ] + +# The WeChat API URL. +[ api_url: | default = global.wechat_api_url ] + +# The corp id for authentication. +[ corp_id: | default = global.wechat_api_corp_id ] + +# API request data as defined by the WeChat API. +[ message: | default = '{{ template "wechat.default.message" . }}' ] +[ agent_id: | default = '{{ template "wechat.default.agent_id" . }}' ] +[ to_user: | default = '{{ template "wechat.default.to_user" . }}' ] +[ to_party: | default = '{{ template "wechat.default.to_party" . }}' ] +[ to_tag: | default = '{{ template "wechat.default.to_tag" . }}' ] +```