Class PushoverConfig

    • Method Detail

      • getDevice

        public String getDevice()
        device defines the name of a specific device to send the notification to. If not specified, the notification is sent to all user's devices.
      • setDevice

        public void setDevice​(String device)
        device defines the name of a specific device to send the notification to. If not specified, the notification is sent to all user's devices.
      • getExpire

        public String getExpire()
        expire defines how long your notification will continue to be retried for, unless the user acknowledges the notification. Only applies to priority 2 notifications.
      • setExpire

        public void setExpire​(String expire)
        expire defines how long your notification will continue to be retried for, unless the user acknowledges the notification. Only applies to priority 2 notifications.
      • getHtml

        public Boolean getHtml()
        html defines whether notification message is HTML or plain text. When true, the message can include HTML formatting tags. html and monospace formatting are mutually exclusive.
      • setHtml

        public void setHtml​(Boolean html)
        html defines whether notification message is HTML or plain text. When true, the message can include HTML formatting tags. html and monospace formatting are mutually exclusive.
      • getHttpConfig

        public HTTPConfig getHttpConfig()
        PushoverConfig configures notifications via Pushover. See https://prometheus.io/docs/alerting/latest/configuration/#pushover_config
      • setHttpConfig

        public void setHttpConfig​(HTTPConfig httpConfig)
        PushoverConfig configures notifications via Pushover. See https://prometheus.io/docs/alerting/latest/configuration/#pushover_config
      • getMessage

        public String getMessage()
        message defines the notification message content. This is the main body text of the Pushover notification.
      • setMessage

        public void setMessage​(String message)
        message defines the notification message content. This is the main body text of the Pushover notification.
      • getMonospace

        public Boolean getMonospace()
        monospace optional HTML/monospace formatting for the message, see https://pushover.net/api#html html and monospace formatting are mutually exclusive.
      • setMonospace

        public void setMonospace​(Boolean monospace)
        monospace optional HTML/monospace formatting for the message, see https://pushover.net/api#html html and monospace formatting are mutually exclusive.
      • getPriority

        public String getPriority()
        priority defines the notification priority level. See https://pushover.net/api#priority for valid values and behavior.
      • setPriority

        public void setPriority​(String priority)
        priority defines the notification priority level. See https://pushover.net/api#priority for valid values and behavior.
      • getRetry

        public String getRetry()
        retry defines how often the Pushover servers will send the same notification to the user. Must be at least 30 seconds. Only applies to priority 2 notifications.
      • setRetry

        public void setRetry​(String retry)
        retry defines how often the Pushover servers will send the same notification to the user. Must be at least 30 seconds. Only applies to priority 2 notifications.
      • 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.
      • getSound

        public String getSound()
        sound defines the name of one of the sounds supported by device clients. This overrides the user's default sound choice for this notification.
      • setSound

        public void setSound​(String sound)
        sound defines the name of one of the sounds supported by device clients. This overrides the user's default sound choice for this notification.
      • getTitle

        public String getTitle()
        title defines the notification title displayed in the Pushover message. This appears as the bold header text in the notification.
      • setTitle

        public void setTitle​(String title)
        title defines the notification title displayed in the Pushover message. This appears as the bold header text in the notification.
      • getToken

        public SecretKeySelector getToken()
        PushoverConfig configures notifications via Pushover. See https://prometheus.io/docs/alerting/latest/configuration/#pushover_config
      • setToken

        public void setToken​(SecretKeySelector token)
        PushoverConfig configures notifications via Pushover. See https://prometheus.io/docs/alerting/latest/configuration/#pushover_config
      • getTokenFile

        public String getTokenFile()
        tokenFile defines the token file that contains the registered application's API token. See https://pushover.net/apps for application registration. Either `token` or `tokenFile` is required. It requires Alertmanager >= v0.26.0.
      • setTokenFile

        public void setTokenFile​(String tokenFile)
        tokenFile defines the token file that contains the registered application's API token. See https://pushover.net/apps for application registration. Either `token` or `tokenFile` is required. It requires Alertmanager >= v0.26.0.
      • getTtl

        public String getTtl()
        ttl defines the time to live for the alert notification. This determines how long the notification remains active before expiring.
      • setTtl

        public void setTtl​(String ttl)
        ttl defines the time to live for the alert notification. This determines how long the notification remains active before expiring.
      • getUrl

        public String getUrl()
        url defines a supplementary URL shown alongside the message. This creates a clickable link within the Pushover notification.
      • setUrl

        public void setUrl​(String url)
        url defines a supplementary URL shown alongside the message. This creates a clickable link within the Pushover notification.
      • getUrlTitle

        public String getUrlTitle()
        urlTitle defines a title for the supplementary URL. If not specified, the raw URL is shown instead.
      • setUrlTitle

        public void setUrlTitle​(String urlTitle)
        urlTitle defines a title for the supplementary URL. If not specified, the raw URL is shown instead.
      • getUserKey

        public SecretKeySelector getUserKey()
        PushoverConfig configures notifications via Pushover. See https://prometheus.io/docs/alerting/latest/configuration/#pushover_config
      • setUserKey

        public void setUserKey​(SecretKeySelector userKey)
        PushoverConfig configures notifications via Pushover. See https://prometheus.io/docs/alerting/latest/configuration/#pushover_config
      • getUserKeyFile

        public String getUserKeyFile()
        userKeyFile defines the user key file that contains the recipient user's user key. Either `userKey` or `userKeyFile` is required. It requires Alertmanager >= v0.26.0.
      • setUserKeyFile

        public void setUserKeyFile​(String userKeyFile)
        userKeyFile defines the user key file that contains the recipient user's user key. Either `userKey` or `userKeyFile` is required. It requires Alertmanager >= v0.26.0.
      • getAdditionalProperties

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

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

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