Class RocketChatConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1beta1.RocketChatConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<RocketChatConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class RocketChatConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<RocketChatConfigBuilder>, io.fabric8.kubernetes.api.model.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, io.fabric8.kubernetes.api.model.SecretKeySelector token, io.fabric8.kubernetes.api.model.SecretKeySelector tokenID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RocketChatConfigBuilderedit()List<RocketChatActionConfig>getActions()Actions to include in the message.Map<String,Object>getAdditionalProperties()StringgetApiURL()The API URL for RocketChat.StringgetChannel()The channel to send alerts to.StringgetColor()The message color.StringgetEmoji()If provided, the avatar will be displayed as an emoji.List<RocketChatFieldConfig>getFields()Additional fields for the message.HTTPConfiggetHttpConfig()RocketChatConfig configures notifications via RocketChat.StringgetIconURL()Icon URL for the message.StringgetImageURL()Image URL for the message.BooleangetLinkNames()Whether to enable link names.BooleangetSendResolved()Whether to notify about resolved alerts.BooleangetShortFields()Whether to use short fields.StringgetText()The main message text.StringgetThumbURL()Thumbnail URL for the message.StringgetTitle()The message title.StringgetTitleLink()The title link for the message.io.fabric8.kubernetes.api.model.SecretKeySelectorgetToken()RocketChatConfig configures notifications via RocketChat.io.fabric8.kubernetes.api.model.SecretKeySelectorgetTokenID()RocketChatConfig configures notifications via RocketChat.voidsetActions(List<RocketChatActionConfig> actions)Actions to include in the message.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiURL(String apiURL)The API URL for RocketChat.voidsetChannel(String channel)The channel to send alerts to.voidsetColor(String color)The message color.voidsetEmoji(String emoji)If provided, the avatar will be displayed as an emoji.voidsetFields(List<RocketChatFieldConfig> fields)Additional fields for the message.voidsetHttpConfig(HTTPConfig httpConfig)RocketChatConfig configures notifications via RocketChat.voidsetIconURL(String iconURL)Icon URL for the message.voidsetImageURL(String imageURL)Image URL for the message.voidsetLinkNames(Boolean linkNames)Whether to enable link names.voidsetSendResolved(Boolean sendResolved)Whether to notify about resolved alerts.voidsetShortFields(Boolean shortFields)Whether to use short fields.voidsetText(String text)The main message text.voidsetThumbURL(String thumbURL)Thumbnail URL for the message.voidsetTitle(String title)The message title.voidsetTitleLink(String titleLink)The title link for the message.voidsetToken(io.fabric8.kubernetes.api.model.SecretKeySelector token)RocketChatConfig configures notifications via RocketChat.voidsetTokenID(io.fabric8.kubernetes.api.model.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, io.fabric8.kubernetes.api.model.SecretKeySelector token, io.fabric8.kubernetes.api.model.SecretKeySelector tokenID)
-
-
Method Detail
-
getActions
public List<RocketChatActionConfig> getActions()
Actions to include in the message.
-
setActions
public void setActions(List<RocketChatActionConfig> actions)
Actions to include in the message.
-
getApiURL
public String getApiURL()
The API URL for RocketChat. Defaults to https://open.rocket.chat/ if not specified.
-
setApiURL
public void setApiURL(String apiURL)
The API URL for RocketChat. Defaults to https://open.rocket.chat/ if not specified.
-
getChannel
public String getChannel()
The channel to send alerts to.
-
setChannel
public void setChannel(String channel)
The channel to send alerts to.
-
getColor
public String getColor()
The message color.
-
setColor
public void setColor(String color)
The message color.
-
getEmoji
public String getEmoji()
If provided, the avatar will be displayed as an emoji.
-
setEmoji
public void setEmoji(String emoji)
If provided, the avatar will be displayed as an emoji.
-
getFields
public List<RocketChatFieldConfig> getFields()
Additional fields for the message.
-
setFields
public void setFields(List<RocketChatFieldConfig> fields)
Additional fields for 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()
Icon URL for the message.
-
setIconURL
public void setIconURL(String iconURL)
Icon URL for the message.
-
getImageURL
public String getImageURL()
Image URL for the message.
-
setImageURL
public void setImageURL(String imageURL)
Image URL for the message.
-
getLinkNames
public Boolean getLinkNames()
Whether to enable link names.
-
setLinkNames
public void setLinkNames(Boolean linkNames)
Whether to enable link names.
-
getSendResolved
public Boolean getSendResolved()
Whether to notify about resolved alerts.
-
setSendResolved
public void setSendResolved(Boolean sendResolved)
Whether to notify about resolved alerts.
-
getShortFields
public Boolean getShortFields()
Whether to use short fields.
-
setShortFields
public void setShortFields(Boolean shortFields)
Whether to use short fields.
-
getText
public String getText()
The main message text.
-
setText
public void setText(String text)
The main message text.
-
getThumbURL
public String getThumbURL()
Thumbnail URL for the message.
-
setThumbURL
public void setThumbURL(String thumbURL)
Thumbnail URL for the message.
-
getTitle
public String getTitle()
The message title.
-
setTitle
public void setTitle(String title)
The message title.
-
getTitleLink
public String getTitleLink()
The title link for the message.
-
setTitleLink
public void setTitleLink(String titleLink)
The title link for the message.
-
getToken
public io.fabric8.kubernetes.api.model.SecretKeySelector getToken()
RocketChatConfig configures notifications via RocketChat. It requires Alertmanager >= 0.28.0.
-
setToken
public void setToken(io.fabric8.kubernetes.api.model.SecretKeySelector token)
RocketChatConfig configures notifications via RocketChat. It requires Alertmanager >= 0.28.0.
-
getTokenID
public io.fabric8.kubernetes.api.model.SecretKeySelector getTokenID()
RocketChatConfig configures notifications via RocketChat. It requires Alertmanager >= 0.28.0.
-
setTokenID
public void setTokenID(io.fabric8.kubernetes.api.model.SecretKeySelector tokenID)
RocketChatConfig configures notifications via RocketChat. It requires Alertmanager >= 0.28.0.
-
edit
public RocketChatConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<RocketChatConfigBuilder>
-
toBuilder
public RocketChatConfigBuilder toBuilder()
-
-