Class VictorOpsConfig

    • Method Detail

      • getApiKey

        public SecretKeySelector getApiKey()
        VictorOpsConfig configures notifications via VictorOps. See https://prometheus.io/docs/alerting/latest/configuration/#victorops_config
      • setApiKey

        public void setApiKey​(SecretKeySelector apiKey)
        VictorOpsConfig configures notifications via VictorOps. See https://prometheus.io/docs/alerting/latest/configuration/#victorops_config
      • getApiUrl

        public String getApiUrl()
        apiUrl defines the VictorOps API URL. When not specified, defaults to the standard VictorOps API endpoint.
      • setApiUrl

        public void setApiUrl​(String apiUrl)
        apiUrl defines the VictorOps API URL. When not specified, defaults to the standard VictorOps API endpoint.
      • getCustomFields

        public List<KeyValue> getCustomFields()
        customFields defines additional custom fields for notification. These provide extra metadata that will be included with the VictorOps incident.
      • setCustomFields

        public void setCustomFields​(List<KeyValue> customFields)
        customFields defines additional custom fields for notification. These provide extra metadata that will be included with the VictorOps incident.
      • getEntityDisplayName

        public String getEntityDisplayName()
        entityDisplayName contains a summary of the alerted problem. This appears as the main title or identifier for the incident.
      • setEntityDisplayName

        public void setEntityDisplayName​(String entityDisplayName)
        entityDisplayName contains a summary of the alerted problem. This appears as the main title or identifier for the incident.
      • getHttpConfig

        public HTTPConfig getHttpConfig()
        VictorOpsConfig configures notifications via VictorOps. See https://prometheus.io/docs/alerting/latest/configuration/#victorops_config
      • setHttpConfig

        public void setHttpConfig​(HTTPConfig httpConfig)
        VictorOpsConfig configures notifications via VictorOps. See https://prometheus.io/docs/alerting/latest/configuration/#victorops_config
      • getMessageType

        public String getMessageType()
        messageType describes the behavior of the alert. Valid values are "CRITICAL", "WARNING", and "INFO".
      • setMessageType

        public void setMessageType​(String messageType)
        messageType describes the behavior of the alert. Valid values are "CRITICAL", "WARNING", and "INFO".
      • getMonitoringTool

        public String getMonitoringTool()
        monitoringTool defines the monitoring tool the state message is from. This helps identify the source system that generated the alert.
      • setMonitoringTool

        public void setMonitoringTool​(String monitoringTool)
        monitoringTool defines the monitoring tool the state message is from. This helps identify the source system that generated the alert.
      • getRoutingKey

        public String getRoutingKey()
        routingKey defines a key used to map the alert to a team. This determines which VictorOps team will receive the alert notification.
      • setRoutingKey

        public void setRoutingKey​(String routingKey)
        routingKey defines a key used to map the alert to a team. This determines which VictorOps team will receive the alert notification.
      • 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.
      • getStateMessage

        public String getStateMessage()
        stateMessage contains a long explanation of the alerted problem. This provides detailed context about the incident.
      • setStateMessage

        public void setStateMessage​(String stateMessage)
        stateMessage contains a long explanation of the alerted problem. This provides detailed context about the incident.
      • getAdditionalProperties

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

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

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