Class SNSConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.SNSConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<SNSConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class SNSConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<SNSConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
SNSConfig configures notifications via AWS SNS. See https://prometheus.io/docs/alerting/latest/configuration/#sns_configs- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SNSConfig()No args constructor for use in serializationSNSConfig(String apiURL, Map<String,String> attributes, HTTPConfig httpConfig, String message, String phoneNumber, Boolean sendResolved, Sigv4 sigv4, String subject, String targetARN, String topicARN)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SNSConfigBuilderedit()Map<String,Object>getAdditionalProperties()StringgetApiURL()The SNS API URL i.e. https://sns.us-east-2.amazonaws.com.Map<String,String>getAttributes()SNS message attributes.HTTPConfiggetHttpConfig()SNSConfig configures notifications via AWS SNS.StringgetMessage()The message content of the SNS notification.StringgetPhoneNumber()Phone number if message is delivered via SMS in E.164 format.BooleangetSendResolved()Whether or not to notify about resolved alerts.Sigv4getSigv4()SNSConfig configures notifications via AWS SNS.StringgetSubject()Subject line when the message is delivered to email endpoints.StringgetTargetARN()The mobile platform endpoint ARN if message is delivered via mobile notifications.StringgetTopicARN()SNS topic ARN, i.e. arn:aws:sns:us-east-2:698519295917:My-Topic If you don't specify this value, you must specify a value for the PhoneNumber or TargetARN.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiURL(String apiURL)The SNS API URL i.e. https://sns.us-east-2.amazonaws.com.voidsetAttributes(Map<String,String> attributes)SNS message attributes.voidsetHttpConfig(HTTPConfig httpConfig)SNSConfig configures notifications via AWS SNS.voidsetMessage(String message)The message content of the SNS notification.voidsetPhoneNumber(String phoneNumber)Phone number if message is delivered via SMS in E.164 format.voidsetSendResolved(Boolean sendResolved)Whether or not to notify about resolved alerts.voidsetSigv4(Sigv4 sigv4)SNSConfig configures notifications via AWS SNS.voidsetSubject(String subject)Subject line when the message is delivered to email endpoints.voidsetTargetARN(String targetARN)The mobile platform endpoint ARN if message is delivered via mobile notifications.voidsetTopicARN(String topicARN)SNS topic ARN, i.e. arn:aws:sns:us-east-2:698519295917:My-Topic If you don't specify this value, you must specify a value for the PhoneNumber or TargetARN.SNSConfigBuildertoBuilder()
-
-
-
Method Detail
-
getApiURL
public String getApiURL()
The SNS API URL i.e. https://sns.us-east-2.amazonaws.com. If not specified, the SNS API URL from the SNS SDK will be used.
-
setApiURL
public void setApiURL(String apiURL)
The SNS API URL i.e. https://sns.us-east-2.amazonaws.com. If not specified, the SNS API URL from the SNS SDK will be used.
-
getHttpConfig
public HTTPConfig getHttpConfig()
SNSConfig configures notifications via AWS SNS. See https://prometheus.io/docs/alerting/latest/configuration/#sns_configs
-
setHttpConfig
public void setHttpConfig(HTTPConfig httpConfig)
SNSConfig configures notifications via AWS SNS. See https://prometheus.io/docs/alerting/latest/configuration/#sns_configs
-
getMessage
public String getMessage()
The message content of the SNS notification.
-
setMessage
public void setMessage(String message)
The message content of the SNS notification.
-
getPhoneNumber
public String getPhoneNumber()
Phone number if message is delivered via SMS in E.164 format. If you don't specify this value, you must specify a value for the TopicARN or TargetARN.
-
setPhoneNumber
public void setPhoneNumber(String phoneNumber)
Phone number if message is delivered via SMS in E.164 format. If you don't specify this value, you must specify a value for the TopicARN or TargetARN.
-
getSendResolved
public Boolean getSendResolved()
Whether or not to notify about resolved alerts.
-
setSendResolved
public void setSendResolved(Boolean sendResolved)
Whether or not to notify about resolved alerts.
-
getSigv4
public Sigv4 getSigv4()
SNSConfig configures notifications via AWS SNS. See https://prometheus.io/docs/alerting/latest/configuration/#sns_configs
-
setSigv4
public void setSigv4(Sigv4 sigv4)
SNSConfig configures notifications via AWS SNS. See https://prometheus.io/docs/alerting/latest/configuration/#sns_configs
-
getSubject
public String getSubject()
Subject line when the message is delivered to email endpoints.
-
setSubject
public void setSubject(String subject)
Subject line when the message is delivered to email endpoints.
-
getTargetARN
public String getTargetARN()
The mobile platform endpoint ARN if message is delivered via mobile notifications. If you don't specify this value, you must specify a value for the topic_arn or PhoneNumber.
-
setTargetARN
public void setTargetARN(String targetARN)
The mobile platform endpoint ARN if message is delivered via mobile notifications. If you don't specify this value, you must specify a value for the topic_arn or PhoneNumber.
-
getTopicARN
public String getTopicARN()
SNS topic ARN, i.e. arn:aws:sns:us-east-2:698519295917:My-Topic If you don't specify this value, you must specify a value for the PhoneNumber or TargetARN.
-
setTopicARN
public void setTopicARN(String topicARN)
SNS topic ARN, i.e. arn:aws:sns:us-east-2:698519295917:My-Topic If you don't specify this value, you must specify a value for the PhoneNumber or TargetARN.
-
edit
public SNSConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<SNSConfigBuilder>
-
toBuilder
public SNSConfigBuilder toBuilder()
-
-