Class RocketChatConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1beta1.RocketChatConfig
-
- All Implemented Interfaces:
Editable<RocketChatConfigBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class RocketChatConfig extends Object implements Editable<RocketChatConfigBuilder>, KubernetesResource
RocketChatConfig configures notifications via RocketChat. It requires Alertmanager >= 0.28.0.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RocketChatConfig()No args constructor for use in serializationRocketChatConfig(List<RocketChatActionConfig> actions, String apiURL, String channel, String color, String emoji, List<RocketChatFieldConfig> fields, HTTPConfig httpConfig, String iconURL, String imageURL, Boolean linkNames, Boolean sendResolved, Boolean shortFields, String text, String thumbURL, String title, String titleLink, SecretKeySelector token, SecretKeySelector tokenID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RocketChatConfigBuilderedit()List<RocketChatActionConfig>getActions()actions defines interactive actions to include in the message.Map<String,Object>getAdditionalProperties()StringgetApiURL()apiURL defines the API URL for RocketChat.StringgetChannel()channel defines the channel to send alerts to.StringgetColor()color defines the message color displayed in RocketChat.StringgetEmoji()emoji defines the emoji to be displayed as an avatar.List<RocketChatFieldConfig>getFields()fields defines additional fields for the message attachment.HTTPConfiggetHttpConfig()RocketChatConfig configures notifications via RocketChat.StringgetIconURL()iconURL defines the icon URL for the message avatar.StringgetImageURL()imageURL defines the image URL to display within the message.BooleangetLinkNames()linkNames defines whether to enable automatic linking of usernames and channels.BooleangetSendResolved()sendResolved defines whether or not to notify about resolved alerts.BooleangetShortFields()shortFields defines whether to use short fields in the message layout.StringgetText()text defines the message text to send.StringgetThumbURL()thumbURL defines the thumbnail URL for the message.StringgetTitle()title defines the message title displayed prominently in the message.StringgetTitleLink()titleLink defines the URL that the title will link to when clicked.SecretKeySelectorgetToken()RocketChatConfig configures notifications via RocketChat.SecretKeySelectorgetTokenID()RocketChatConfig configures notifications via RocketChat.voidsetActions(List<RocketChatActionConfig> actions)actions defines interactive actions to include in the message.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiURL(String apiURL)apiURL defines the API URL for RocketChat.voidsetChannel(String channel)channel defines the channel to send alerts to.voidsetColor(String color)color defines the message color displayed in RocketChat.voidsetEmoji(String emoji)emoji defines the emoji to be displayed as an avatar.voidsetFields(List<RocketChatFieldConfig> fields)fields defines additional fields for the message attachment.voidsetHttpConfig(HTTPConfig httpConfig)RocketChatConfig configures notifications via RocketChat.voidsetIconURL(String iconURL)iconURL defines the icon URL for the message avatar.voidsetImageURL(String imageURL)imageURL defines the image URL to display within the message.voidsetLinkNames(Boolean linkNames)linkNames defines whether to enable automatic linking of usernames and channels.voidsetSendResolved(Boolean sendResolved)sendResolved defines whether or not to notify about resolved alerts.voidsetShortFields(Boolean shortFields)shortFields defines whether to use short fields in the message layout.voidsetText(String text)text defines the message text to send.voidsetThumbURL(String thumbURL)thumbURL defines the thumbnail URL for the message.voidsetTitle(String title)title defines the message title displayed prominently in the message.voidsetTitleLink(String titleLink)titleLink defines the URL that the title will link to when clicked.voidsetToken(SecretKeySelector token)RocketChatConfig configures notifications via RocketChat.voidsetTokenID(SecretKeySelector tokenID)RocketChatConfig configures notifications via RocketChat.RocketChatConfigBuildertoBuilder()
-
-
-
Constructor Detail
-
RocketChatConfig
public RocketChatConfig()
No args constructor for use in serialization
-
RocketChatConfig
public RocketChatConfig(List<RocketChatActionConfig> actions, String apiURL, String channel, String color, String emoji, List<RocketChatFieldConfig> fields, HTTPConfig httpConfig, String iconURL, String imageURL, Boolean linkNames, Boolean sendResolved, Boolean shortFields, String text, String thumbURL, String title, String titleLink, SecretKeySelector token, SecretKeySelector tokenID)
-
-
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.
-
edit
public RocketChatConfigBuilder edit()
- Specified by:
editin interfaceEditable<RocketChatConfigBuilder>
-
toBuilder
public RocketChatConfigBuilder toBuilder()
-
-