Class DiscordConfig

    • Method Detail

      • getApiURL

        public SecretKeySelector getApiURL()
        DiscordConfig configures notifications via Discord. See https://prometheus.io/docs/alerting/latest/configuration/#discord_config
      • setApiURL

        public void setApiURL​(SecretKeySelector apiURL)
        DiscordConfig configures notifications via Discord. See https://prometheus.io/docs/alerting/latest/configuration/#discord_config
      • getAvatarURL

        public String getAvatarURL()
        avatarURL defines the avatar url of the message sender.
      • setAvatarURL

        public void setAvatarURL​(String avatarURL)
        avatarURL defines the avatar url of the message sender.
      • getContent

        public String getContent()
        content defines the template of the content's body.
      • setContent

        public void setContent​(String content)
        content defines the template of the content's body.
      • getHttpConfig

        public HTTPConfig getHttpConfig()
        DiscordConfig configures notifications via Discord. See https://prometheus.io/docs/alerting/latest/configuration/#discord_config
      • setHttpConfig

        public void setHttpConfig​(HTTPConfig httpConfig)
        DiscordConfig configures notifications via Discord. See https://prometheus.io/docs/alerting/latest/configuration/#discord_config
      • getMessage

        public String getMessage()
        message defines the template of the message's body.
      • setMessage

        public void setMessage​(String message)
        message defines the template of the message's body.
      • getSendResolved

        public Boolean getSendResolved()
        sendResolved defines whether or not to notify about resolved alerts.
      • setSendResolved

        public void setSendResolved​(Boolean sendResolved)
        sendResolved defines whether or not to notify about resolved alerts.
      • getTitle

        public String getTitle()
        title defines the template of the message's title.
      • setTitle

        public void setTitle​(String title)
        title defines the template of the message's title.
      • getUsername

        public String getUsername()
        username defines the username of the message sender.
      • setUsername

        public void setUsername​(String username)
        username defines the username of the message sender.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)