Class RocketChatConfig

    • Method Detail

      • getActions

        public List<RocketChatActionConfig> getActions()
        actions defines interactive actions to include in the message. These appear as buttons that users can click to trigger responses.
      • setActions

        public void setActions​(List<RocketChatActionConfig> actions)
        actions defines interactive actions to include in the message. These appear as buttons that users can click to trigger responses.
      • getApiURL

        public String getApiURL()
        apiURL defines the API URL for RocketChat. Defaults to https://open.rocket.chat/ if not specified.
      • setApiURL

        public void setApiURL​(String apiURL)
        apiURL defines the API URL for RocketChat. Defaults to https://open.rocket.chat/ if not specified.
      • getChannel

        public String getChannel()
        channel defines the channel to send alerts to. This can be a channel name (e.g., "#alerts") or a direct message recipient.
      • setChannel

        public void setChannel​(String channel)
        channel defines the channel to send alerts to. This can be a channel name (e.g., "#alerts") or a direct message recipient.
      • getColor

        public String getColor()
        color defines the message color displayed in RocketChat. This appears as a colored bar alongside the message.
      • setColor

        public void setColor​(String color)
        color defines the message color displayed in RocketChat. This appears as a colored bar alongside the message.
      • getEmoji

        public String getEmoji()
        emoji defines the emoji to be displayed as an avatar. If provided, this emoji will be used instead of the default avatar or iconURL.
      • setEmoji

        public void setEmoji​(String emoji)
        emoji defines the emoji to be displayed as an avatar. If provided, this emoji will be used instead of the default avatar or iconURL.
      • getFields

        public List<RocketChatFieldConfig> getFields()
        fields defines additional fields for the message attachment. These appear as structured key-value pairs within the message.
      • setFields

        public void setFields​(List<RocketChatFieldConfig> fields)
        fields defines additional fields for the message attachment. These appear as structured key-value pairs within the message.
      • getHttpConfig

        public HTTPConfig getHttpConfig()
        RocketChatConfig configures notifications via RocketChat. It requires Alertmanager >= 0.28.0.
      • setHttpConfig

        public void setHttpConfig​(HTTPConfig httpConfig)
        RocketChatConfig configures notifications via RocketChat. It requires Alertmanager >= 0.28.0.
      • getIconURL

        public String getIconURL()
        iconURL defines the icon URL for the message avatar. This displays a custom image as the message sender's avatar.
      • setIconURL

        public void setIconURL​(String iconURL)
        iconURL defines the icon URL for the message avatar. This displays a custom image as the message sender's avatar.
      • getImageURL

        public String getImageURL()
        imageURL defines the image URL to display within the message. This embeds an image directly in the message attachment.
      • setImageURL

        public void setImageURL​(String imageURL)
        imageURL defines the image URL to display within the message. This embeds an image directly in the message attachment.
      • getLinkNames

        public Boolean getLinkNames()
        linkNames defines whether to enable automatic linking of usernames and channels. When true, @username and #channel references become clickable links.
      • setLinkNames

        public void setLinkNames​(Boolean linkNames)
        linkNames defines whether to enable automatic linking of usernames and channels. When true, @username and #channel references become clickable links.
      • 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.
      • getShortFields

        public Boolean getShortFields()
        shortFields defines whether to use short fields in the message layout. When true, fields may be displayed side by side to save space.
      • setShortFields

        public void setShortFields​(Boolean shortFields)
        shortFields defines whether to use short fields in the message layout. When true, fields may be displayed side by side to save space.
      • getText

        public String getText()
        text defines the message text to send. This is optional because attachments can be used instead of or alongside text.
      • setText

        public void setText​(String text)
        text defines the message text to send. This is optional because attachments can be used instead of or alongside text.
      • getThumbURL

        public String getThumbURL()
        thumbURL defines the thumbnail URL for the message. This displays a small thumbnail image alongside the message content.
      • setThumbURL

        public void setThumbURL​(String thumbURL)
        thumbURL defines the thumbnail URL for the message. This displays a small thumbnail image alongside the message content.
      • getTitle

        public String getTitle()
        title defines the message title displayed prominently in the message. This appears as bold text at the top of the message attachment.
      • setTitle

        public void setTitle​(String title)
        title defines the message title displayed prominently in the message. This appears as bold text at the top of the message attachment.
      • getTitleLink

        public String getTitleLink()
        titleLink defines the URL that the title will link to when clicked. This makes the message title clickable in the RocketChat interface.
      • setTitleLink

        public void setTitleLink​(String titleLink)
        titleLink defines the URL that the title will link to when clicked. This makes the message title clickable in the RocketChat interface.
      • getToken

        public SecretKeySelector getToken()
        RocketChatConfig configures notifications via RocketChat. It requires Alertmanager >= 0.28.0.
      • setToken

        public void setToken​(SecretKeySelector token)
        RocketChatConfig configures notifications via RocketChat. It requires Alertmanager >= 0.28.0.
      • getTokenID

        public SecretKeySelector getTokenID()
        RocketChatConfig configures notifications via RocketChat. It requires Alertmanager >= 0.28.0.
      • setTokenID

        public void setTokenID​(SecretKeySelector tokenID)
        RocketChatConfig configures notifications via RocketChat. It requires Alertmanager >= 0.28.0.
      • getAdditionalProperties

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

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

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