Class OpsGenieConfig

    • Method Detail

      • getActions

        public String getActions()
        actions defines a comma separated list of actions that will be available for the alert. These appear as action buttons in the OpsGenie interface.
      • setActions

        public void setActions​(String actions)
        actions defines a comma separated list of actions that will be available for the alert. These appear as action buttons in the OpsGenie interface.
      • getApiKey

        public SecretKeySelector getApiKey()
        OpsGenieConfig configures notifications via OpsGenie. See https://prometheus.io/docs/alerting/latest/configuration/#opsgenie_config
      • setApiKey

        public void setApiKey​(SecretKeySelector apiKey)
        OpsGenieConfig configures notifications via OpsGenie. See https://prometheus.io/docs/alerting/latest/configuration/#opsgenie_config
      • getApiURL

        public String getApiURL()
        apiURL defines the URL to send OpsGenie API requests to. When not specified, defaults to the standard OpsGenie API endpoint.
      • setApiURL

        public void setApiURL​(String apiURL)
        apiURL defines the URL to send OpsGenie API requests to. When not specified, defaults to the standard OpsGenie API endpoint.
      • getDescription

        public String getDescription()
        description defines the detailed description of the incident. This provides additional context beyond the message field.
      • setDescription

        public void setDescription​(String description)
        description defines the detailed description of the incident. This provides additional context beyond the message field.
      • getDetails

        public List<KeyValue> getDetails()
        details defines a set of arbitrary key/value pairs that provide further detail about the incident. These appear as additional fields in the OpsGenie alert.
      • setDetails

        public void setDetails​(List<KeyValue> details)
        details defines a set of arbitrary key/value pairs that provide further detail about the incident. These appear as additional fields in the OpsGenie alert.
      • getEntity

        public String getEntity()
        entity defines an optional field that can be used to specify which domain alert is related to. This helps group related alerts together in OpsGenie.
      • setEntity

        public void setEntity​(String entity)
        entity defines an optional field that can be used to specify which domain alert is related to. This helps group related alerts together in OpsGenie.
      • getHttpConfig

        public HTTPConfig getHttpConfig()
        OpsGenieConfig configures notifications via OpsGenie. See https://prometheus.io/docs/alerting/latest/configuration/#opsgenie_config
      • setHttpConfig

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

        public String getMessage()
        message defines the alert text limited to 130 characters. This appears as the main alert title in OpsGenie.
      • setMessage

        public void setMessage​(String message)
        message defines the alert text limited to 130 characters. This appears as the main alert title in OpsGenie.
      • getNote

        public String getNote()
        note defines an additional alert note. This provides supplementary information about the alert.
      • setNote

        public void setNote​(String note)
        note defines an additional alert note. This provides supplementary information about the alert.
      • getPriority

        public String getPriority()
        priority defines the priority level of alert. Possible values are P1, P2, P3, P4, and P5, where P1 is highest priority.
      • setPriority

        public void setPriority​(String priority)
        priority defines the priority level of alert. Possible values are P1, P2, P3, P4, and P5, where P1 is highest priority.
      • getResponders

        public List<OpsGenieConfigResponder> getResponders()
        responders defines the list of responders responsible for notifications. These determine who gets notified when the alert is created.
      • setResponders

        public void setResponders​(List<OpsGenieConfigResponder> responders)
        responders defines the list of responders responsible for notifications. These determine who gets notified when the alert is created.
      • 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.
      • getSource

        public String getSource()
        source defines the backlink to the sender of the notification. This helps identify where the alert originated from.
      • setSource

        public void setSource​(String source)
        source defines the backlink to the sender of the notification. This helps identify where the alert originated from.
      • getTags

        public String getTags()
        tags defines a comma separated list of tags attached to the notifications. These help categorize and filter alerts within OpsGenie.
      • setTags

        public void setTags​(String tags)
        tags defines a comma separated list of tags attached to the notifications. These help categorize and filter alerts within OpsGenie.
      • getAdditionalProperties

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

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

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