Class MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage.Jsii$Proxy

    • Method Detail

      • getAlertRule

        public final String getAlertRule()
        The alerting rule name of this alert in the corresponding Prometheus configuration file.

        Some external tools may require this field to be populated correctly in order to refer to the original Prometheus configuration file. The rule group name and the alert name are necessary to update the relevant AlertPolicies in case the definition of the rule group changes in the future. This field is optional. If this field is not empty, then it must be a valid Prometheus label name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#alert_rule MonitoringAlertPolicy#alert_rule}

        Specified by:
        getAlertRule in interface MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage
      • getLabels

        public final Map<String,​String> getLabels()
        Labels to add to or overwrite in the PromQL query result. Label names must be valid.

        Label values can be templatized by using variables. The only available variable names are the names of the labels in the PromQL result, including "**name**" and "value". "labels" may be empty. This field is intended to be used for organizing and identifying the AlertPolicy Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#labels MonitoringAlertPolicy#labels}

        Specified by:
        getLabels in interface MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage
      • getRuleGroup

        public final String getRuleGroup()
        The rule group name of this alert in the corresponding Prometheus configuration file.

        Some external tools may require this field to be populated correctly in order to refer to the original Prometheus configuration file. The rule group name and the alert name are necessary to update the relevant AlertPolicies in case the definition of the rule group changes in the future. This field is optional. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#rule_group MonitoringAlertPolicy#rule_group}

        Specified by:
        getRuleGroup in interface MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object