Class WeChatConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1beta1.WeChatConfig
-
- All Implemented Interfaces:
Editable<WeChatConfigBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class WeChatConfig extends Object implements Editable<WeChatConfigBuilder>, KubernetesResource
WeChatConfig configures notifications via WeChat. See https://prometheus.io/docs/alerting/latest/configuration/#wechat_config- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WeChatConfig()No args constructor for use in serializationWeChatConfig(String agentID, SecretKeySelector apiSecret, String apiURL, String corpID, HTTPConfig httpConfig, String message, String messageType, Boolean sendResolved, String toParty, String toTag, String toUser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WeChatConfigBuilderedit()Map<String,Object>getAdditionalProperties()StringgetAgentID()agentID defines the application agent ID within WeChat Work.SecretKeySelectorgetApiSecret()WeChatConfig configures notifications via WeChat.StringgetApiURL()apiURL defines the WeChat API URL.StringgetCorpID()corpID defines the corp id for authentication.HTTPConfiggetHttpConfig()WeChatConfig configures notifications via WeChat.StringgetMessage()message defines the API request data as defined by the WeChat API.StringgetMessageType()messageType defines the type of message to send.BooleangetSendResolved()sendResolved defines whether or not to notify about resolved alerts.StringgetToParty()toParty defines the target department(s) to receive the notification.StringgetToTag()toTag defines the target tag(s) to receive the notification.StringgetToUser()toUser defines the target user(s) to receive the notification.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAgentID(String agentID)agentID defines the application agent ID within WeChat Work.voidsetApiSecret(SecretKeySelector apiSecret)WeChatConfig configures notifications via WeChat.voidsetApiURL(String apiURL)apiURL defines the WeChat API URL.voidsetCorpID(String corpID)corpID defines the corp id for authentication.voidsetHttpConfig(HTTPConfig httpConfig)WeChatConfig configures notifications via WeChat.voidsetMessage(String message)message defines the API request data as defined by the WeChat API.voidsetMessageType(String messageType)messageType defines the type of message to send.voidsetSendResolved(Boolean sendResolved)sendResolved defines whether or not to notify about resolved alerts.voidsetToParty(String toParty)toParty defines the target department(s) to receive the notification.voidsetToTag(String toTag)toTag defines the target tag(s) to receive the notification.voidsetToUser(String toUser)toUser defines the target user(s) to receive the notification.WeChatConfigBuildertoBuilder()
-
-
-
Method Detail
-
getAgentID
public String getAgentID()
agentID defines the application agent ID within WeChat Work. This identifies which WeChat Work application will send the notifications.
-
setAgentID
public void setAgentID(String agentID)
agentID defines the application agent ID within WeChat Work. This identifies which WeChat Work application will send the notifications.
-
getApiSecret
public SecretKeySelector getApiSecret()
WeChatConfig configures notifications via WeChat. See https://prometheus.io/docs/alerting/latest/configuration/#wechat_config
-
setApiSecret
public void setApiSecret(SecretKeySelector apiSecret)
WeChatConfig configures notifications via WeChat. See https://prometheus.io/docs/alerting/latest/configuration/#wechat_config
-
getApiURL
public String getApiURL()
apiURL defines the WeChat API URL. When not specified, defaults to the standard WeChat Work API endpoint.
-
setApiURL
public void setApiURL(String apiURL)
apiURL defines the WeChat API URL. When not specified, defaults to the standard WeChat Work API endpoint.
-
getCorpID
public String getCorpID()
corpID defines the corp id for authentication. This is the unique identifier for your WeChat Work organization.
-
setCorpID
public void setCorpID(String corpID)
corpID defines the corp id for authentication. This is the unique identifier for your WeChat Work organization.
-
getHttpConfig
public HTTPConfig getHttpConfig()
WeChatConfig configures notifications via WeChat. See https://prometheus.io/docs/alerting/latest/configuration/#wechat_config
-
setHttpConfig
public void setHttpConfig(HTTPConfig httpConfig)
WeChatConfig configures notifications via WeChat. See https://prometheus.io/docs/alerting/latest/configuration/#wechat_config
-
getMessage
public String getMessage()
message defines the API request data as defined by the WeChat API. This contains the actual notification content to be sent.
-
setMessage
public void setMessage(String message)
message defines the API request data as defined by the WeChat API. This contains the actual notification content to be sent.
-
getMessageType
public String getMessageType()
messageType defines the type of message to send. Valid values include "text", "markdown", and other WeChat Work supported message types.
-
setMessageType
public void setMessageType(String messageType)
messageType defines the type of message to send. Valid values include "text", "markdown", and other WeChat Work supported message types.
-
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.
-
getToParty
public String getToParty()
toParty defines the target department(s) to receive the notification. Can be a single department ID or multiple department IDs separated by '|'.
-
setToParty
public void setToParty(String toParty)
toParty defines the target department(s) to receive the notification. Can be a single department ID or multiple department IDs separated by '|'.
-
getToTag
public String getToTag()
toTag defines the target tag(s) to receive the notification. Can be a single tag ID or multiple tag IDs separated by '|'.
-
setToTag
public void setToTag(String toTag)
toTag defines the target tag(s) to receive the notification. Can be a single tag ID or multiple tag IDs separated by '|'.
-
getToUser
public String getToUser()
toUser defines the target user(s) to receive the notification. Can be a single user ID or multiple user IDs separated by '|'.
-
setToUser
public void setToUser(String toUser)
toUser defines the target user(s) to receive the notification. Can be a single user ID or multiple user IDs separated by '|'.
-
edit
public WeChatConfigBuilder edit()
- Specified by:
editin interfaceEditable<WeChatConfigBuilder>
-
toBuilder
public WeChatConfigBuilder toBuilder()
-
-