Class TelegramConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.TelegramConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<TelegramConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class TelegramConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<TelegramConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
TelegramConfig configures notifications via Telegram. See https://prometheus.io/docs/alerting/latest/configuration/#telegram_config- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TelegramConfig()No args constructor for use in serializationTelegramConfig(String apiURL, io.fabric8.kubernetes.api.model.SecretKeySelector botToken, String botTokenFile, Long chatID, Boolean disableNotifications, HTTPConfig httpConfig, String message, Long messageThreadID, String parseMode, Boolean sendResolved)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TelegramConfigBuilderedit()Map<String,Object>getAdditionalProperties()StringgetApiURL()The Telegram API URL i.e. https://api.telegram.org.io.fabric8.kubernetes.api.model.SecretKeySelectorgetBotToken()TelegramConfig configures notifications via Telegram.StringgetBotTokenFile()File to read the Telegram bot token from.LonggetChatID()The Telegram chat ID.BooleangetDisableNotifications()Disable telegram notificationsHTTPConfiggetHttpConfig()TelegramConfig configures notifications via Telegram.StringgetMessage()Message templateLonggetMessageThreadID()The Telegram Group Topic ID.StringgetParseMode()Parse mode for telegram messageBooleangetSendResolved()Whether to notify about resolved alerts.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiURL(String apiURL)The Telegram API URL i.e. https://api.telegram.org.voidsetBotToken(io.fabric8.kubernetes.api.model.SecretKeySelector botToken)TelegramConfig configures notifications via Telegram.voidsetBotTokenFile(String botTokenFile)File to read the Telegram bot token from.voidsetChatID(Long chatID)The Telegram chat ID.voidsetDisableNotifications(Boolean disableNotifications)Disable telegram notificationsvoidsetHttpConfig(HTTPConfig httpConfig)TelegramConfig configures notifications via Telegram.voidsetMessage(String message)Message templatevoidsetMessageThreadID(Long messageThreadID)The Telegram Group Topic ID.voidsetParseMode(String parseMode)Parse mode for telegram messagevoidsetSendResolved(Boolean sendResolved)Whether to notify about resolved alerts.TelegramConfigBuildertoBuilder()
-
-
-
Method Detail
-
getApiURL
public String getApiURL()
The Telegram API URL i.e. https://api.telegram.org. If not specified, default API URL will be used.
-
setApiURL
public void setApiURL(String apiURL)
The Telegram API URL i.e. https://api.telegram.org. If not specified, default API URL will be used.
-
getBotToken
public io.fabric8.kubernetes.api.model.SecretKeySelector getBotToken()
TelegramConfig configures notifications via Telegram. See https://prometheus.io/docs/alerting/latest/configuration/#telegram_config
-
setBotToken
public void setBotToken(io.fabric8.kubernetes.api.model.SecretKeySelector botToken)
TelegramConfig configures notifications via Telegram. See https://prometheus.io/docs/alerting/latest/configuration/#telegram_config
-
getBotTokenFile
public String getBotTokenFile()
File to read the Telegram bot token from. It is mutually exclusive with `botToken`. Either `botToken` or `botTokenFile` is required.It requires Alertmanager >= v0.26.0.
-
setBotTokenFile
public void setBotTokenFile(String botTokenFile)
File to read the Telegram bot token from. It is mutually exclusive with `botToken`. Either `botToken` or `botTokenFile` is required.It requires Alertmanager >= v0.26.0.
-
getChatID
public Long getChatID()
The Telegram chat ID.
-
setChatID
public void setChatID(Long chatID)
The Telegram chat ID.
-
getDisableNotifications
public Boolean getDisableNotifications()
Disable telegram notifications
-
setDisableNotifications
public void setDisableNotifications(Boolean disableNotifications)
Disable telegram notifications
-
getHttpConfig
public HTTPConfig getHttpConfig()
TelegramConfig configures notifications via Telegram. See https://prometheus.io/docs/alerting/latest/configuration/#telegram_config
-
setHttpConfig
public void setHttpConfig(HTTPConfig httpConfig)
TelegramConfig configures notifications via Telegram. See https://prometheus.io/docs/alerting/latest/configuration/#telegram_config
-
getMessage
public String getMessage()
Message template
-
setMessage
public void setMessage(String message)
Message template
-
getMessageThreadID
public Long getMessageThreadID()
The Telegram Group Topic ID. It requires Alertmanager >= 0.26.0.
-
setMessageThreadID
public void setMessageThreadID(Long messageThreadID)
The Telegram Group Topic ID. It requires Alertmanager >= 0.26.0.
-
getParseMode
public String getParseMode()
Parse mode for telegram message
-
setParseMode
public void setParseMode(String parseMode)
Parse mode for telegram message
-
getSendResolved
public Boolean getSendResolved()
Whether to notify about resolved alerts.
-
setSendResolved
public void setSendResolved(Boolean sendResolved)
Whether to notify about resolved alerts.
-
edit
public TelegramConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<TelegramConfigBuilder>
-
toBuilder
public TelegramConfigBuilder toBuilder()
-
-