Class MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- com.hashicorp.cdktf.providers.google.monitoring_alert_policy.MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage.Jsii$Proxy
-
- All Implemented Interfaces:
MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage
@Stability(Stable) @Internal public static final class MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage
An implementation forMonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface com.hashicorp.cdktf.providers.google.monitoring_alert_policy.MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage
MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage.Builder, MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage.Builder builder)Constructor that initializes the object based on literal property values passed by theMonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)StringgetAlertRule()The alerting rule name of this alert in the corresponding Prometheus configuration file.StringgetDuration()Alerts are considered firing once their PromQL expression evaluated to be "true" for this long.StringgetEvaluationInterval()How often this rule should be evaluated.Map<String,String>getLabels()Labels to add to or overwrite in the PromQL query result.StringgetQuery()The PromQL expression to evaluate.StringgetRuleGroup()The rule group name of this alert in the corresponding Prometheus configuration file.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage.Builder builder)
Constructor that initializes the object based on literal property values passed by theMonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage.Builder.
-
-
Method Detail
-
getQuery
public final String getQuery()
Description copied from interface:MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguageThe PromQL expression to evaluate.Every evaluation cycle this expression is evaluated at the current time, and all resultant time series become pending/firing alerts. This field must not be empty. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#query MonitoringAlertPolicy#query}
- Specified by:
getQueryin interfaceMonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage
-
getAlertRule
public final String getAlertRule()
Description copied from interface:MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguageThe 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:
getAlertRulein interfaceMonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage
-
getDuration
public final String getDuration()
Description copied from interface:MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguageAlerts are considered firing once their PromQL expression evaluated to be "true" for this long.Alerts whose PromQL expression was not evaluated to be "true" for long enough are considered pending. The default value is zero. Must be zero or positive. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#duration MonitoringAlertPolicy#duration}
- Specified by:
getDurationin interfaceMonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage
-
getEvaluationInterval
public final String getEvaluationInterval()
Description copied from interface:MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguageHow often this rule should be evaluated.Must be a positive multiple of 30 seconds or missing. The default value is 30 seconds. If this PrometheusQueryLanguageCondition was generated from a Prometheus alerting rule, then this value should be taken from the enclosing rule group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#evaluation_interval MonitoringAlertPolicy#evaluation_interval}
- Specified by:
getEvaluationIntervalin interfaceMonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage
-
getLabels
public final Map<String,String> getLabels()
Description copied from interface:MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguageLabels 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:
getLabelsin interfaceMonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage
-
getRuleGroup
public final String getRuleGroup()
Description copied from interface:MonitoringAlertPolicyConditionsConditionPrometheusQueryLanguageThe 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:
getRuleGroupin interfaceMonitoringAlertPolicyConditionsConditionPrometheusQueryLanguage
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-