Class GlobalSMTPConfig

    • Method Detail

      • getAuthIdentity

        public String getAuthIdentity()
        authIdentity represents SMTP Auth using PLAIN
      • setAuthIdentity

        public void setAuthIdentity​(String authIdentity)
        authIdentity represents SMTP Auth using PLAIN
      • getAuthPassword

        public SecretKeySelector getAuthPassword()
        GlobalSMTPConfig configures global SMTP parameters. See https://prometheus.io/docs/alerting/latest/configuration/#configuration-file
      • setAuthPassword

        public void setAuthPassword​(SecretKeySelector authPassword)
        GlobalSMTPConfig configures global SMTP parameters. See https://prometheus.io/docs/alerting/latest/configuration/#configuration-file
      • getAuthSecret

        public SecretKeySelector getAuthSecret()
        GlobalSMTPConfig configures global SMTP parameters. See https://prometheus.io/docs/alerting/latest/configuration/#configuration-file
      • setAuthSecret

        public void setAuthSecret​(SecretKeySelector authSecret)
        GlobalSMTPConfig configures global SMTP parameters. See https://prometheus.io/docs/alerting/latest/configuration/#configuration-file
      • getAuthUsername

        public String getAuthUsername()
        authUsername represents SMTP Auth using CRAM-MD5, LOGIN and PLAIN. If empty, Alertmanager doesn't authenticate to the SMTP server.
      • setAuthUsername

        public void setAuthUsername​(String authUsername)
        authUsername represents SMTP Auth using CRAM-MD5, LOGIN and PLAIN. If empty, Alertmanager doesn't authenticate to the SMTP server.
      • getForceImplicitTLS

        public Boolean getForceImplicitTLS()
        forceImplicitTLS defines whether to force use of implicit TLS (direct TLS connection) for better security. true: force use of implicit TLS (direct TLS connection on any port) false: force disable implicit TLS (use explicit TLS/STARTTLS if required) nil (default): auto-detect based on port (465=implicit, other=explicit) for backward compatibility It requires Alertmanager >= v0.31.0.
      • setForceImplicitTLS

        public void setForceImplicitTLS​(Boolean forceImplicitTLS)
        forceImplicitTLS defines whether to force use of implicit TLS (direct TLS connection) for better security. true: force use of implicit TLS (direct TLS connection on any port) false: force disable implicit TLS (use explicit TLS/STARTTLS if required) nil (default): auto-detect based on port (465=implicit, other=explicit) for backward compatibility It requires Alertmanager >= v0.31.0.
      • getFrom

        public String getFrom()
        from defines the default SMTP From header field.
      • setFrom

        public void setFrom​(String from)
        from defines the default SMTP From header field.
      • getHello

        public String getHello()
        hello defines the default hostname to identify to the SMTP server.
      • setHello

        public void setHello​(String hello)
        hello defines the default hostname to identify to the SMTP server.
      • getRequireTLS

        public Boolean getRequireTLS()
        requireTLS defines the default SMTP TLS requirement. Note that Go does not support unencrypted connections to remote SMTP endpoints.
      • setRequireTLS

        public void setRequireTLS​(Boolean requireTLS)
        requireTLS defines the default SMTP TLS requirement. Note that Go does not support unencrypted connections to remote SMTP endpoints.
      • getSmartHost

        public HostPort getSmartHost()
        GlobalSMTPConfig configures global SMTP parameters. See https://prometheus.io/docs/alerting/latest/configuration/#configuration-file
      • setSmartHost

        public void setSmartHost​(HostPort smartHost)
        GlobalSMTPConfig configures global SMTP parameters. See https://prometheus.io/docs/alerting/latest/configuration/#configuration-file
      • getTlsConfig

        public SafeTLSConfig getTlsConfig()
        GlobalSMTPConfig configures global SMTP parameters. See https://prometheus.io/docs/alerting/latest/configuration/#configuration-file
      • setTlsConfig

        public void setTlsConfig​(SafeTLSConfig tlsConfig)
        GlobalSMTPConfig configures global SMTP parameters. See https://prometheus.io/docs/alerting/latest/configuration/#configuration-file
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)