diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java index 855c0be49493..a0daeee30467 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java @@ -48,11 +48,11 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Service Description: The AlertPolicyService API is used to manage (list, create, delete, edit) - * alert policies in Stackdriver Monitoring. An alerting policy is a description of the conditions - * under which some aspect of your system is considered to be "unhealthy" and the ways to notify - * people or services about this state. In addition to using this API, alert policies can also be - * managed through [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/), which can be - * reached by clicking the "Monitoring" tab in [Cloud Console](https://console.cloud.google.com/). + * alert policies in Cloud Monitoring. An alerting policy is a description of the conditions under + * which some aspect of your system is considered to be "unhealthy" and the ways to notify people or + * services about this state. In addition to using this API, alert policies can also be managed + * through [Cloud Monitoring](https://cloud.google.com/monitoring/docs/), which can be reached by + * clicking the "Monitoring" tab in [Cloud console](https://console.cloud.google.com/). * *
This class provides the ability to make remote calls to the backing service through method
* calls that map to API methods. Sample code to get started:
@@ -530,10 +530,10 @@ public final UnaryCallable projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting policy will be
- * written, not the name of the created policy. |name| must be a host project of a workspace,
- * otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned will
- * have a name that contains a normalized representation of this name as a prefix but adds a
- * suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
+ * written, not the name of the created policy. |name| must be a host project of a Metrics
+ * Scope, otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned
+ * will have a name that contains a normalized representation of this name as a prefix but
+ * adds a suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
* container.
* @param alertPolicy Required. The requested alerting policy. You should omit the `name` field in
* this policy. The name will be returned in the new policy, including a new
@@ -569,10 +569,10 @@ public final AlertPolicy createAlertPolicy(ResourceName name, AlertPolicy alertP
* which to create the alerting policy. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting policy will be
- * written, not the name of the created policy. |name| must be a host project of a workspace,
- * otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned will
- * have a name that contains a normalized representation of this name as a prefix but adds a
- * suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
+ * written, not the name of the created policy. |name| must be a host project of a Metrics
+ * Scope, otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned
+ * will have a name that contains a normalized representation of this name as a prefix but
+ * adds a suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
* container.
* @param alertPolicy Required. The requested alerting policy. You should omit the `name` field in
* this policy. The name will be returned in the new policy, including a new
@@ -608,10 +608,10 @@ public final AlertPolicy createAlertPolicy(OrganizationName name, AlertPolicy al
* which to create the alerting policy. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting policy will be
- * written, not the name of the created policy. |name| must be a host project of a workspace,
- * otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned will
- * have a name that contains a normalized representation of this name as a prefix but adds a
- * suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
+ * written, not the name of the created policy. |name| must be a host project of a Metrics
+ * Scope, otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned
+ * will have a name that contains a normalized representation of this name as a prefix but
+ * adds a suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
* container.
* @param alertPolicy Required. The requested alerting policy. You should omit the `name` field in
* this policy. The name will be returned in the new policy, including a new
@@ -647,10 +647,10 @@ public final AlertPolicy createAlertPolicy(ProjectName name, AlertPolicy alertPo
* which to create the alerting policy. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting policy will be
- * written, not the name of the created policy. |name| must be a host project of a workspace,
- * otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned will
- * have a name that contains a normalized representation of this name as a prefix but adds a
- * suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
+ * written, not the name of the created policy. |name| must be a host project of a Metrics
+ * Scope, otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned
+ * will have a name that contains a normalized representation of this name as a prefix but
+ * adds a suffix of the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
* container.
* @param alertPolicy Required. The requested alerting policy. You should omit the `name` field in
* this policy. The name will be returned in the new policy, including a new
diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java
index b4c3a5d4f2c8..a57c9b9e411a 100644
--- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java
+++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java
@@ -22,11 +22,11 @@
* ======================= AlertPolicyServiceClient =======================
*
* Service Description: The AlertPolicyService API is used to manage (list, create, delete, edit)
- * alert policies in Stackdriver Monitoring. An alerting policy is a description of the conditions
- * under which some aspect of your system is considered to be "unhealthy" and the ways to notify
- * people or services about this state. In addition to using this API, alert policies can also be
- * managed through [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/), which can be
- * reached by clicking the "Monitoring" tab in [Cloud Console](https://console.cloud.google.com/).
+ * alert policies in Cloud Monitoring. An alerting policy is a description of the conditions under
+ * which some aspect of your system is considered to be "unhealthy" and the ways to notify people or
+ * services about this state. In addition to using this API, alert policies can also be managed
+ * through [Cloud Monitoring](https://cloud.google.com/monitoring/docs/), which can be reached by
+ * clicking the "Monitoring" tab in [Cloud console](https://console.cloud.google.com/).
*
* Sample for AlertPolicyServiceClient:
*
diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java
index 1545e5cedeea..a75fc4f70171 100644
--- a/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java
+++ b/java-monitoring/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java
@@ -22,14 +22,14 @@
*
*
* The AlertPolicyService API is used to manage (list, create, delete,
- * edit) alert policies in Stackdriver Monitoring. An alerting policy is
+ * edit) alert policies in Cloud Monitoring. An alerting policy is
* a description of the conditions under which some aspect of your
* system is considered to be "unhealthy" and the ways to notify
* people or services about this state. In addition to using this API, alert
* policies can also be managed through
- * [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
+ * [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
* which can be reached by clicking the "Monitoring" tab in
- * [Cloud Console](https://console.cloud.google.com/).
+ * [Cloud console](https://console.cloud.google.com/).
*
*/
@javax.annotation.Generated(
@@ -311,14 +311,14 @@ public AlertPolicyServiceFutureStub newStub(
*
*
* The AlertPolicyService API is used to manage (list, create, delete,
- * edit) alert policies in Stackdriver Monitoring. An alerting policy is
+ * edit) alert policies in Cloud Monitoring. An alerting policy is
* a description of the conditions under which some aspect of your
* system is considered to be "unhealthy" and the ways to notify
* people or services about this state. In addition to using this API, alert
* policies can also be managed through
- * [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
+ * [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
* which can be reached by clicking the "Monitoring" tab in
- * [Cloud Console](https://console.cloud.google.com/).
+ * [Cloud console](https://console.cloud.google.com/).
*
*/
public abstract static class AlertPolicyServiceImplBase implements io.grpc.BindableService {
@@ -440,14 +440,14 @@ public final io.grpc.ServerServiceDefinition bindService() {
*
*
* The AlertPolicyService API is used to manage (list, create, delete,
- * edit) alert policies in Stackdriver Monitoring. An alerting policy is
+ * edit) alert policies in Cloud Monitoring. An alerting policy is
* a description of the conditions under which some aspect of your
* system is considered to be "unhealthy" and the ways to notify
* people or services about this state. In addition to using this API, alert
* policies can also be managed through
- * [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
+ * [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
* which can be reached by clicking the "Monitoring" tab in
- * [Cloud Console](https://console.cloud.google.com/).
+ * [Cloud console](https://console.cloud.google.com/).
*
*/
public static final class AlertPolicyServiceStub
@@ -552,14 +552,14 @@ public void updateAlertPolicy(
*
*
* The AlertPolicyService API is used to manage (list, create, delete,
- * edit) alert policies in Stackdriver Monitoring. An alerting policy is
+ * edit) alert policies in Cloud Monitoring. An alerting policy is
* a description of the conditions under which some aspect of your
* system is considered to be "unhealthy" and the ways to notify
* people or services about this state. In addition to using this API, alert
* policies can also be managed through
- * [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
+ * [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
* which can be reached by clicking the "Monitoring" tab in
- * [Cloud Console](https://console.cloud.google.com/).
+ * [Cloud console](https://console.cloud.google.com/).
*
*/
public static final class AlertPolicyServiceBlockingStub
@@ -649,14 +649,14 @@ public com.google.monitoring.v3.AlertPolicy updateAlertPolicy(
*
*
* The AlertPolicyService API is used to manage (list, create, delete,
- * edit) alert policies in Stackdriver Monitoring. An alerting policy is
+ * edit) alert policies in Cloud Monitoring. An alerting policy is
* a description of the conditions under which some aspect of your
* system is considered to be "unhealthy" and the ways to notify
* people or services about this state. In addition to using this API, alert
* policies can also be managed through
- * [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
+ * [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
* which can be reached by clicking the "Monitoring" tab in
- * [Cloud Console](https://console.cloud.google.com/).
+ * [Cloud console](https://console.cloud.google.com/).
*
*/
public static final class AlertPolicyServiceFutureStub
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java
index f227a145492e..d91813da0307 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java
@@ -490,7 +490,8 @@ public interface DocumentationOrBuilder
* The text of the documentation, interpreted according to `mime_type`.
* The content may not exceed 8,192 Unicode characters and may not exceed
* more than 10,240 bytes when encoded in UTF-8 format, whichever is
- * smaller.
+ * smaller. This text can be [templatized by using
+ * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
*
*
* string content = 1;
@@ -505,7 +506,8 @@ public interface DocumentationOrBuilder
* The text of the documentation, interpreted according to `mime_type`.
* The content may not exceed 8,192 Unicode characters and may not exceed
* more than 10,240 bytes when encoded in UTF-8 format, whichever is
- * smaller.
+ * smaller. This text can be [templatized by using
+ * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
*
*
* string content = 1;
@@ -656,7 +658,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* The text of the documentation, interpreted according to `mime_type`.
* The content may not exceed 8,192 Unicode characters and may not exceed
* more than 10,240 bytes when encoded in UTF-8 format, whichever is
- * smaller.
+ * smaller. This text can be [templatized by using
+ * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
*
*
* string content = 1;
@@ -682,7 +685,8 @@ public java.lang.String getContent() {
* The text of the documentation, interpreted according to `mime_type`.
* The content may not exceed 8,192 Unicode characters and may not exceed
* more than 10,240 bytes when encoded in UTF-8 format, whichever is
- * smaller.
+ * smaller. This text can be [templatized by using
+ * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
*
*
* string content = 1;
@@ -1102,7 +1106,8 @@ public Builder mergeFrom(
* The text of the documentation, interpreted according to `mime_type`.
* The content may not exceed 8,192 Unicode characters and may not exceed
* more than 10,240 bytes when encoded in UTF-8 format, whichever is
- * smaller.
+ * smaller. This text can be [templatized by using
+ * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
*
*
* string content = 1;
@@ -1127,7 +1132,8 @@ public java.lang.String getContent() {
* The text of the documentation, interpreted according to `mime_type`.
* The content may not exceed 8,192 Unicode characters and may not exceed
* more than 10,240 bytes when encoded in UTF-8 format, whichever is
- * smaller.
+ * smaller. This text can be [templatized by using
+ * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
*
*
* string content = 1;
@@ -1152,7 +1158,8 @@ public com.google.protobuf.ByteString getContentBytes() {
* The text of the documentation, interpreted according to `mime_type`.
* The content may not exceed 8,192 Unicode characters and may not exceed
* more than 10,240 bytes when encoded in UTF-8 format, whichever is
- * smaller.
+ * smaller. This text can be [templatized by using
+ * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
*
*
* string content = 1;
@@ -1176,7 +1183,8 @@ public Builder setContent(java.lang.String value) {
* The text of the documentation, interpreted according to `mime_type`.
* The content may not exceed 8,192 Unicode characters and may not exceed
* more than 10,240 bytes when encoded in UTF-8 format, whichever is
- * smaller.
+ * smaller. This text can be [templatized by using
+ * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
*
*
* string content = 1;
@@ -1196,7 +1204,8 @@ public Builder clearContent() {
* The text of the documentation, interpreted according to `mime_type`.
* The content may not exceed 8,192 Unicode characters and may not exceed
* more than 10,240 bytes when encoded in UTF-8 format, whichever is
- * smaller.
+ * smaller. This text can be [templatized by using
+ * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
*
*
* string content = 1;
@@ -1395,12 +1404,12 @@ public interface ConditionOrBuilder
* Required if the condition exists. The unique resource name for this
* condition. Its format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
- * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
+ * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
* condition is created as part of a new or updated alerting policy.
* When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the conditions of the
- * requested alerting policy. Stackdriver Monitoring creates the
+ * requested alerting policy. Cloud Monitoring creates the
* condition identifiers and includes them in the new policy.
* When calling the
* [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
@@ -1426,12 +1435,12 @@ public interface ConditionOrBuilder
* Required if the condition exists. The unique resource name for this
* condition. Its format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
- * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
+ * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
* condition is created as part of a new or updated alerting policy.
* When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the conditions of the
- * requested alerting policy. Stackdriver Monitoring creates the
+ * requested alerting policy. Cloud Monitoring creates the
* condition identifiers and includes them in the new policy.
* When calling the
* [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
@@ -1839,6 +1848,196 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.monitoring.v3.AlertPolicy.Condition.Builder.class);
}
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ * This control doesn't affect metric-absence policies.
+ *
+ *
+ * Protobuf enum {@code google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData}
+ */
+ public enum EvaluationMissingData implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * An unspecified evaluation missing data option. Equivalent to
+ * EVALUATION_MISSING_DATA_NO_OP.
+ *
+ *
+ * EVALUATION_MISSING_DATA_UNSPECIFIED = 0;
+ */
+ EVALUATION_MISSING_DATA_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * If there is no data to evaluate the condition, then evaluate the
+ * condition as false.
+ *
+ *
+ * EVALUATION_MISSING_DATA_INACTIVE = 1;
+ */
+ EVALUATION_MISSING_DATA_INACTIVE(1),
+ /**
+ *
+ *
+ *
+ * If there is no data to evaluate the condition, then evaluate the
+ * condition as true.
+ *
+ *
+ * EVALUATION_MISSING_DATA_ACTIVE = 2;
+ */
+ EVALUATION_MISSING_DATA_ACTIVE(2),
+ /**
+ *
+ *
+ *
+ * Do not evaluate the condition to any value if there is no data.
+ *
+ *
+ * EVALUATION_MISSING_DATA_NO_OP = 3;
+ */
+ EVALUATION_MISSING_DATA_NO_OP(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * An unspecified evaluation missing data option. Equivalent to
+ * EVALUATION_MISSING_DATA_NO_OP.
+ *
+ *
+ * EVALUATION_MISSING_DATA_UNSPECIFIED = 0;
+ */
+ public static final int EVALUATION_MISSING_DATA_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * If there is no data to evaluate the condition, then evaluate the
+ * condition as false.
+ *
+ *
+ * EVALUATION_MISSING_DATA_INACTIVE = 1;
+ */
+ public static final int EVALUATION_MISSING_DATA_INACTIVE_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * If there is no data to evaluate the condition, then evaluate the
+ * condition as true.
+ *
+ *
+ * EVALUATION_MISSING_DATA_ACTIVE = 2;
+ */
+ public static final int EVALUATION_MISSING_DATA_ACTIVE_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * Do not evaluate the condition to any value if there is no data.
+ *
+ *
+ * EVALUATION_MISSING_DATA_NO_OP = 3;
+ */
+ public static final int EVALUATION_MISSING_DATA_NO_OP_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static EvaluationMissingData valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static EvaluationMissingData forNumber(int value) {
+ switch (value) {
+ case 0:
+ return EVALUATION_MISSING_DATA_UNSPECIFIED;
+ case 1:
+ return EVALUATION_MISSING_DATA_INACTIVE;
+ case 2:
+ return EVALUATION_MISSING_DATA_ACTIVE;
+ case 3:
+ return EVALUATION_MISSING_DATA_NO_OP;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap.google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 7;
*/
com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11;
+ *
+ *
+ * @return The enum numeric value on the wire for evaluationMissingData.
+ */
+ int getEvaluationMissingDataValue();
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11;
+ *
+ *
+ * @return The evaluationMissingData.
+ */
+ com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData
+ getEvaluationMissingData();
}
/**
*
@@ -3167,6 +3398,7 @@ private MetricThreshold() {
denominatorFilter_ = "";
denominatorAggregations_ = java.util.Collections.emptyList();
comparison_ = 0;
+ evaluationMissingData_ = 0;
}
@java.lang.Override
@@ -3280,6 +3512,13 @@ private MetricThreshold(
com.google.monitoring.v3.Aggregation.parser(), extensionRegistry));
break;
}
+ case 88:
+ {
+ int rawValue = input.readEnum();
+
+ evaluationMissingData_ = rawValue;
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -3874,6 +4113,52 @@ public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTrigge
return getTrigger();
}
+ public static final int EVALUATION_MISSING_DATA_FIELD_NUMBER = 11;
+ private int evaluationMissingData_;
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11;
+ *
+ *
+ * @return The enum numeric value on the wire for evaluationMissingData.
+ */
+ @java.lang.Override
+ public int getEvaluationMissingDataValue() {
+ return evaluationMissingData_;
+ }
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11;
+ *
+ *
+ * @return The evaluationMissingData.
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData
+ getEvaluationMissingData() {
+ @SuppressWarnings("deprecation")
+ com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result =
+ com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.valueOf(
+ evaluationMissingData_);
+ return result == null
+ ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED
+ : result;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -3913,6 +4198,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < denominatorAggregations_.size(); i++) {
output.writeMessage(10, denominatorAggregations_.get(i));
}
+ if (evaluationMissingData_
+ != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData
+ .EVALUATION_MISSING_DATA_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(11, evaluationMissingData_);
+ }
unknownFields.writeTo(output);
}
@@ -3949,6 +4240,12 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
10, denominatorAggregations_.get(i));
}
+ if (evaluationMissingData_
+ != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData
+ .EVALUATION_MISSING_DATA_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, evaluationMissingData_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -3981,6 +4278,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasTrigger()) {
if (!getTrigger().equals(other.getTrigger())) return false;
}
+ if (evaluationMissingData_ != other.evaluationMissingData_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -4019,6 +4317,8 @@ public int hashCode() {
hash = (37 * hash) + TRIGGER_FIELD_NUMBER;
hash = (53 * hash) + getTrigger().hashCode();
}
+ hash = (37 * hash) + EVALUATION_MISSING_DATA_FIELD_NUMBER;
+ hash = (53 * hash) + evaluationMissingData_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -4206,6 +4506,8 @@ public Builder clear() {
trigger_ = null;
triggerBuilder_ = null;
}
+ evaluationMissingData_ = 0;
+
return this;
}
@@ -4269,6 +4571,7 @@ public com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold buildParti
} else {
result.trigger_ = triggerBuilder_.build();
}
+ result.evaluationMissingData_ = evaluationMissingData_;
onBuilt();
return result;
}
@@ -4398,6 +4701,9 @@ public Builder mergeFrom(
if (other.hasTrigger()) {
mergeTrigger(other.getTrigger());
}
+ if (other.evaluationMissingData_ != 0) {
+ setEvaluationMissingDataValue(other.getEvaluationMissingDataValue());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -6401,6 +6707,117 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder getTrigger
return triggerBuilder_;
}
+ private int evaluationMissingData_ = 0;
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11;
+ *
+ *
+ * @return The enum numeric value on the wire for evaluationMissingData.
+ */
+ @java.lang.Override
+ public int getEvaluationMissingDataValue() {
+ return evaluationMissingData_;
+ }
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11;
+ *
+ *
+ * @param value The enum numeric value on the wire for evaluationMissingData to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEvaluationMissingDataValue(int value) {
+
+ evaluationMissingData_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11;
+ *
+ *
+ * @return The evaluationMissingData.
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData
+ getEvaluationMissingData() {
+ @SuppressWarnings("deprecation")
+ com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result =
+ com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.valueOf(
+ evaluationMissingData_);
+ return result == null
+ ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11;
+ *
+ *
+ * @param value The evaluationMissingData to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEvaluationMissingData(
+ com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ evaluationMissingData_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 11;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEvaluationMissingData() {
+
+ evaluationMissingData_ = 0;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -10130,6 +10547,38 @@ public interface MonitoringQueryLanguageConditionOrBuilder
* .google.monitoring.v3.AlertPolicy.Condition.Trigger trigger = 3;
*/
com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTriggerOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4;
+ *
+ *
+ * @return The enum numeric value on the wire for evaluationMissingData.
+ */
+ int getEvaluationMissingDataValue();
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4;
+ *
+ *
+ * @return The evaluationMissingData.
+ */
+ com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData
+ getEvaluationMissingData();
}
/**
*
@@ -10156,6 +10605,7 @@ private MonitoringQueryLanguageCondition(
private MonitoringQueryLanguageCondition() {
query_ = "";
+ evaluationMissingData_ = 0;
}
@java.lang.Override
@@ -10224,6 +10674,13 @@ private MonitoringQueryLanguageCondition(
trigger_ = subBuilder.buildPartial();
}
+ break;
+ }
+ case 32:
+ {
+ int rawValue = input.readEnum();
+
+ evaluationMissingData_ = rawValue;
break;
}
default:
@@ -10452,6 +10909,52 @@ public com.google.monitoring.v3.AlertPolicy.Condition.TriggerOrBuilder getTrigge
return getTrigger();
}
+ public static final int EVALUATION_MISSING_DATA_FIELD_NUMBER = 4;
+ private int evaluationMissingData_;
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4;
+ *
+ *
+ * @return The enum numeric value on the wire for evaluationMissingData.
+ */
+ @java.lang.Override
+ public int getEvaluationMissingDataValue() {
+ return evaluationMissingData_;
+ }
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4;
+ *
+ *
+ * @return The evaluationMissingData.
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData
+ getEvaluationMissingData() {
+ @SuppressWarnings("deprecation")
+ com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result =
+ com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.valueOf(
+ evaluationMissingData_);
+ return result == null
+ ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED
+ : result;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -10475,6 +10978,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (trigger_ != null) {
output.writeMessage(3, getTrigger());
}
+ if (evaluationMissingData_
+ != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData
+ .EVALUATION_MISSING_DATA_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(4, evaluationMissingData_);
+ }
unknownFields.writeTo(output);
}
@@ -10493,6 +11002,12 @@ public int getSerializedSize() {
if (trigger_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTrigger());
}
+ if (evaluationMissingData_
+ != com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData
+ .EVALUATION_MISSING_DATA_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, evaluationMissingData_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -10520,6 +11035,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasTrigger()) {
if (!getTrigger().equals(other.getTrigger())) return false;
}
+ if (evaluationMissingData_ != other.evaluationMissingData_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -10541,6 +11057,8 @@ public int hashCode() {
hash = (37 * hash) + TRIGGER_FIELD_NUMBER;
hash = (53 * hash) + getTrigger().hashCode();
}
+ hash = (37 * hash) + EVALUATION_MISSING_DATA_FIELD_NUMBER;
+ hash = (53 * hash) + evaluationMissingData_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -10717,6 +11235,8 @@ public Builder clear() {
trigger_ = null;
triggerBuilder_ = null;
}
+ evaluationMissingData_ = 0;
+
return this;
}
@@ -10761,6 +11281,7 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
} else {
result.trigger_ = triggerBuilder_.build();
}
+ result.evaluationMissingData_ = evaluationMissingData_;
onBuilt();
return result;
}
@@ -10829,6 +11350,9 @@ public Builder mergeFrom(
if (other.hasTrigger()) {
mergeTrigger(other.getTrigger());
}
+ if (other.evaluationMissingData_ != 0) {
+ setEvaluationMissingDataValue(other.getEvaluationMissingDataValue());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -11470,6 +11994,117 @@ public com.google.monitoring.v3.AlertPolicy.Condition.Trigger.Builder getTrigger
return triggerBuilder_;
}
+ private int evaluationMissingData_ = 0;
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4;
+ *
+ *
+ * @return The enum numeric value on the wire for evaluationMissingData.
+ */
+ @java.lang.Override
+ public int getEvaluationMissingDataValue() {
+ return evaluationMissingData_;
+ }
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4;
+ *
+ *
+ * @param value The enum numeric value on the wire for evaluationMissingData to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEvaluationMissingDataValue(int value) {
+
+ evaluationMissingData_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4;
+ *
+ *
+ * @return The evaluationMissingData.
+ */
+ @java.lang.Override
+ public com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData
+ getEvaluationMissingData() {
+ @SuppressWarnings("deprecation")
+ com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData result =
+ com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.valueOf(
+ evaluationMissingData_);
+ return result == null
+ ? com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4;
+ *
+ *
+ * @param value The evaluationMissingData to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEvaluationMissingData(
+ com.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ evaluationMissingData_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A condition control that determines how metric-threshold conditions
+ * are evaluated when data stops arriving.
+ *
+ *
+ *
+ * .google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData evaluation_missing_data = 4;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEvaluationMissingData() {
+
+ evaluationMissingData_ = 0;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -11589,12 +12224,12 @@ public ConditionCase getConditionCase() {
* Required if the condition exists. The unique resource name for this
* condition. Its format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
- * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
+ * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
* condition is created as part of a new or updated alerting policy.
* When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the conditions of the
- * requested alerting policy. Stackdriver Monitoring creates the
+ * requested alerting policy. Cloud Monitoring creates the
* condition identifiers and includes them in the new policy.
* When calling the
* [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
@@ -11631,12 +12266,12 @@ public java.lang.String getName() {
* Required if the condition exists. The unique resource name for this
* condition. Its format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
- * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
+ * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
* condition is created as part of a new or updated alerting policy.
* When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the conditions of the
- * requested alerting policy. Stackdriver Monitoring creates the
+ * requested alerting policy. Cloud Monitoring creates the
* condition identifiers and includes them in the new policy.
* When calling the
* [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
@@ -12447,12 +13082,12 @@ public Builder clearCondition() {
* Required if the condition exists. The unique resource name for this
* condition. Its format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
- * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
+ * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
* condition is created as part of a new or updated alerting policy.
* When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the conditions of the
- * requested alerting policy. Stackdriver Monitoring creates the
+ * requested alerting policy. Cloud Monitoring creates the
* condition identifiers and includes them in the new policy.
* When calling the
* [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
@@ -12488,12 +13123,12 @@ public java.lang.String getName() {
* Required if the condition exists. The unique resource name for this
* condition. Its format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
- * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
+ * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
* condition is created as part of a new or updated alerting policy.
* When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the conditions of the
- * requested alerting policy. Stackdriver Monitoring creates the
+ * requested alerting policy. Cloud Monitoring creates the
* condition identifiers and includes them in the new policy.
* When calling the
* [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
@@ -12529,12 +13164,12 @@ public com.google.protobuf.ByteString getNameBytes() {
* Required if the condition exists. The unique resource name for this
* condition. Its format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
- * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
+ * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
* condition is created as part of a new or updated alerting policy.
* When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the conditions of the
- * requested alerting policy. Stackdriver Monitoring creates the
+ * requested alerting policy. Cloud Monitoring creates the
* condition identifiers and includes them in the new policy.
* When calling the
* [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
@@ -12569,12 +13204,12 @@ public Builder setName(java.lang.String value) {
* Required if the condition exists. The unique resource name for this
* condition. Its format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
- * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
+ * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
* condition is created as part of a new or updated alerting policy.
* When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the conditions of the
- * requested alerting policy. Stackdriver Monitoring creates the
+ * requested alerting policy. Cloud Monitoring creates the
* condition identifiers and includes them in the new policy.
* When calling the
* [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
@@ -12605,12 +13240,12 @@ public Builder clearName() {
* Required if the condition exists. The unique resource name for this
* condition. Its format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
- * `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
+ * `[CONDITION_ID]` is assigned by Cloud Monitoring when the
* condition is created as part of a new or updated alerting policy.
* When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the conditions of the
- * requested alerting policy. Stackdriver Monitoring creates the
+ * requested alerting policy. Cloud Monitoring creates the
* condition identifiers and includes them in the new policy.
* When calling the
* [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
@@ -15713,7 +16348,7 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy getDefaultInstanceForT
* Required if the policy exists. The resource name for this policy. The
* format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
- * `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
+ * `[ALERT_POLICY_ID]` is assigned by Cloud Monitoring when the policy
* is created. When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the alerting policy passed as
@@ -15743,7 +16378,7 @@ public java.lang.String getName() {
* Required if the policy exists. The resource name for this policy. The
* format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
- * `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
+ * `[ALERT_POLICY_ID]` is assigned by Cloud Monitoring when the policy
* is created. When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the alerting policy passed as
@@ -17149,7 +17784,7 @@ public Builder mergeFrom(
* Required if the policy exists. The resource name for this policy. The
* format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
- * `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
+ * `[ALERT_POLICY_ID]` is assigned by Cloud Monitoring when the policy
* is created. When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the alerting policy passed as
@@ -17178,7 +17813,7 @@ public java.lang.String getName() {
* Required if the policy exists. The resource name for this policy. The
* format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
- * `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
+ * `[ALERT_POLICY_ID]` is assigned by Cloud Monitoring when the policy
* is created. When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the alerting policy passed as
@@ -17207,7 +17842,7 @@ public com.google.protobuf.ByteString getNameBytes() {
* Required if the policy exists. The resource name for this policy. The
* format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
- * `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
+ * `[ALERT_POLICY_ID]` is assigned by Cloud Monitoring when the policy
* is created. When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the alerting policy passed as
@@ -17235,7 +17870,7 @@ public Builder setName(java.lang.String value) {
* Required if the policy exists. The resource name for this policy. The
* format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
- * `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
+ * `[ALERT_POLICY_ID]` is assigned by Cloud Monitoring when the policy
* is created. When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the alerting policy passed as
@@ -17259,7 +17894,7 @@ public Builder clearName() {
* Required if the policy exists. The resource name for this policy. The
* format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
- * `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
+ * `[ALERT_POLICY_ID]` is assigned by Cloud Monitoring when the policy
* is created. When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the alerting policy passed as
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java
index 4d0fabddbb26..dc021f564b2d 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java
@@ -30,7 +30,7 @@ public interface AlertPolicyOrBuilder
* Required if the policy exists. The resource name for this policy. The
* format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
- * `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
+ * `[ALERT_POLICY_ID]` is assigned by Cloud Monitoring when the policy
* is created. When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the alerting policy passed as
@@ -49,7 +49,7 @@ public interface AlertPolicyOrBuilder
* Required if the policy exists. The resource name for this policy. The
* format is:
* projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
- * `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
+ * `[ALERT_POLICY_ID]` is assigned by Cloud Monitoring when the policy
* is created. When calling the
* [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
* method, do not include the `name` field in the alerting policy passed as
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java
index ab6ac96dabcb..fa1d53345ccd 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java
@@ -91,7 +91,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "monitoring/v3/mutation_record.proto\032\036goo"
+ "gle/protobuf/duration.proto\032\036google/prot"
+ "obuf/wrappers.proto\032\027google/rpc/status.p"
- + "roto\"\343\027\n\013AlertPolicy\022\014\n\004name\030\001 \001(\t\022\024\n\014di"
+ + "roto\"\333\032\n\013AlertPolicy\022\014\n\004name\030\001 \001(\t\022\024\n\014di"
+ "splay_name\030\002 \001(\t\022F\n\rdocumentation\030\r \001(\0132"
+ "/.google.monitoring.v3.AlertPolicy.Docum"
+ "entation\022F\n\013user_labels\030\020 \003(\01321.google.m"
@@ -108,7 +108,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ng.v3.MutationRecord\022G\n\016alert_strategy\030\025"
+ " \001(\0132/.google.monitoring.v3.AlertPolicy."
+ "AlertStrategy\0323\n\rDocumentation\022\017\n\007conten"
- + "t\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\032\326\r\n\tCondition"
+ + "t\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\032\316\020\n\tCondition"
+ "\022\014\n\004name\030\014 \001(\t\022\024\n\014display_name\030\006 \001(\t\022Z\n\023"
+ "condition_threshold\030\001 \001(\0132;.google.monit"
+ "oring.v3.AlertPolicy.Condition.MetricThr"
@@ -121,7 +121,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "itoring.v3.AlertPolicy.Condition.Monitor"
+ "ingQueryLanguageConditionH\000\0325\n\007Trigger\022\017"
+ "\n\005count\030\001 \001(\005H\000\022\021\n\007percent\030\002 \001(\001H\000B\006\n\004ty"
- + "pe\032\206\003\n\017MetricThreshold\022\023\n\006filter\030\002 \001(\tB\003"
+ + "pe\032\352\003\n\017MetricThreshold\022\023\n\006filter\030\002 \001(\tB\003"
+ "\340A\002\0227\n\014aggregations\030\010 \003(\0132!.google.monit"
+ "oring.v3.Aggregation\022\032\n\022denominator_filt"
+ "er\030\t \001(\t\022C\n\030denominator_aggregations\030\n \003"
@@ -130,49 +130,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ ".ComparisonType\022\027\n\017threshold_value\030\005 \001(\001"
+ "\022+\n\010duration\030\006 \001(\0132\031.google.protobuf.Dur"
+ "ation\022D\n\007trigger\030\007 \001(\01323.google.monitori"
- + "ng.v3.AlertPolicy.Condition.Trigger\032\320\001\n\r"
- + "MetricAbsence\022\023\n\006filter\030\001 \001(\tB\003\340A\002\0227\n\014ag"
- + "gregations\030\005 \003(\0132!.google.monitoring.v3."
- + "Aggregation\022+\n\010duration\030\002 \001(\0132\031.google.p"
- + "rotobuf.Duration\022D\n\007trigger\030\003 \001(\01323.goog"
- + "le.monitoring.v3.AlertPolicy.Condition.T"
- + "rigger\032\274\001\n\010LogMatch\022\023\n\006filter\030\001 \001(\tB\003\340A\002"
- + "\022c\n\020label_extractors\030\002 \003(\0132I.google.moni"
- + "toring.v3.AlertPolicy.Condition.LogMatch"
- + ".LabelExtractorsEntry\0326\n\024LabelExtractors"
- + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032\244\001"
- + "\n MonitoringQueryLanguageCondition\022\r\n\005qu"
- + "ery\030\001 \001(\t\022+\n\010duration\030\002 \001(\0132\031.google.pro"
- + "tobuf.Duration\022D\n\007trigger\030\003 \001(\01323.google"
- + ".monitoring.v3.AlertPolicy.Condition.Tri"
- + "gger:\227\002\352A\223\002\n.monitoring.googleapis.com/A"
- + "lertPolicyCondition\022Fprojects/{project}/"
- + "alertPolicies/{alert_policy}/conditions/"
- + "{condition}\022Porganizations/{organization"
- + "}/alertPolicies/{alert_policy}/condition"
- + "s/{condition}\022Dfolders/{folder}/alertPol"
- + "icies/{alert_policy}/conditions/{conditi"
- + "on}\022\001*B\013\n\tcondition\032\352\001\n\rAlertStrategy\022f\n"
- + "\027notification_rate_limit\030\001 \001(\0132E.google."
- + "monitoring.v3.AlertPolicy.AlertStrategy."
- + "NotificationRateLimit\022-\n\nauto_close\030\003 \001("
- + "\0132\031.google.protobuf.Duration\032B\n\025Notifica"
- + "tionRateLimit\022)\n\006period\030\001 \001(\0132\031.google.p"
- + "rotobuf.Duration\0321\n\017UserLabelsEntry\022\013\n\003k"
- + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"a\n\025Condition"
- + "CombinerType\022\027\n\023COMBINE_UNSPECIFIED\020\000\022\007\n"
- + "\003AND\020\001\022\006\n\002OR\020\002\022\036\n\032AND_WITH_MATCHING_RESO"
- + "URCE\020\003:\311\001\352A\305\001\n%monitoring.googleapis.com"
- + "/AlertPolicy\022/projects/{project}/alertPo"
- + "licies/{alert_policy}\0229organizations/{or"
- + "ganization}/alertPolicies/{alert_policy}"
- + "\022-folders/{folder}/alertPolicies/{alert_"
- + "policy}\022\001*B\302\001\n\030com.google.monitoring.v3B"
- + "\nAlertProtoP\001Z>google.golang.org/genprot"
- + "o/googleapis/monitoring/v3;monitoring\252\002\032"
- + "Google.Cloud.Monitoring.V3\312\002\032Google\\Clou"
- + "d\\Monitoring\\V3\352\002\035Google::Cloud::Monitor"
- + "ing::V3b\006proto3"
+ + "ng.v3.AlertPolicy.Condition.Trigger\022b\n\027e"
+ + "valuation_missing_data\030\013 \001(\0162A.google.mo"
+ + "nitoring.v3.AlertPolicy.Condition.Evalua"
+ + "tionMissingData\032\320\001\n\rMetricAbsence\022\023\n\006fil"
+ + "ter\030\001 \001(\tB\003\340A\002\0227\n\014aggregations\030\005 \003(\0132!.g"
+ + "oogle.monitoring.v3.Aggregation\022+\n\010durat"
+ + "ion\030\002 \001(\0132\031.google.protobuf.Duration\022D\n\007"
+ + "trigger\030\003 \001(\01323.google.monitoring.v3.Ale"
+ + "rtPolicy.Condition.Trigger\032\274\001\n\010LogMatch\022"
+ + "\023\n\006filter\030\001 \001(\tB\003\340A\002\022c\n\020label_extractors"
+ + "\030\002 \003(\0132I.google.monitoring.v3.AlertPolic"
+ + "y.Condition.LogMatch.LabelExtractorsEntr"
+ + "y\0326\n\024LabelExtractorsEntry\022\013\n\003key\030\001 \001(\t\022\r"
+ + "\n\005value\030\002 \001(\t:\0028\001\032\210\002\n MonitoringQueryLan"
+ + "guageCondition\022\r\n\005query\030\001 \001(\t\022+\n\010duratio"
+ + "n\030\002 \001(\0132\031.google.protobuf.Duration\022D\n\007tr"
+ + "igger\030\003 \001(\01323.google.monitoring.v3.Alert"
+ + "Policy.Condition.Trigger\022b\n\027evaluation_m"
+ + "issing_data\030\004 \001(\0162A.google.monitoring.v3"
+ + ".AlertPolicy.Condition.EvaluationMissing"
+ + "Data\"\255\001\n\025EvaluationMissingData\022\'\n#EVALUA"
+ + "TION_MISSING_DATA_UNSPECIFIED\020\000\022$\n EVALU"
+ + "ATION_MISSING_DATA_INACTIVE\020\001\022\"\n\036EVALUAT"
+ + "ION_MISSING_DATA_ACTIVE\020\002\022!\n\035EVALUATION_"
+ + "MISSING_DATA_NO_OP\020\003:\227\002\352A\223\002\n.monitoring."
+ + "googleapis.com/AlertPolicyCondition\022Fpro"
+ + "jects/{project}/alertPolicies/{alert_pol"
+ + "icy}/conditions/{condition}\022Porganizatio"
+ + "ns/{organization}/alertPolicies/{alert_p"
+ + "olicy}/conditions/{condition}\022Dfolders/{"
+ + "folder}/alertPolicies/{alert_policy}/con"
+ + "ditions/{condition}\022\001*B\013\n\tcondition\032\352\001\n\r"
+ + "AlertStrategy\022f\n\027notification_rate_limit"
+ + "\030\001 \001(\0132E.google.monitoring.v3.AlertPolic"
+ + "y.AlertStrategy.NotificationRateLimit\022-\n"
+ + "\nauto_close\030\003 \001(\0132\031.google.protobuf.Dura"
+ + "tion\032B\n\025NotificationRateLimit\022)\n\006period\030"
+ + "\001 \001(\0132\031.google.protobuf.Duration\0321\n\017User"
+ + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:"
+ + "\0028\001\"a\n\025ConditionCombinerType\022\027\n\023COMBINE_"
+ + "UNSPECIFIED\020\000\022\007\n\003AND\020\001\022\006\n\002OR\020\002\022\036\n\032AND_WI"
+ + "TH_MATCHING_RESOURCE\020\003:\311\001\352A\305\001\n%monitorin"
+ + "g.googleapis.com/AlertPolicy\022/projects/{"
+ + "project}/alertPolicies/{alert_policy}\0229o"
+ + "rganizations/{organization}/alertPolicie"
+ + "s/{alert_policy}\022-folders/{folder}/alert"
+ + "Policies/{alert_policy}\022\001*B\302\001\n\030com.googl"
+ + "e.monitoring.v3B\nAlertProtoP\001Z>google.go"
+ + "lang.org/genproto/googleapis/monitoring/"
+ + "v3;monitoring\252\002\032Google.Cloud.Monitoring."
+ + "V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Google"
+ + "::Cloud::Monitoring::V3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -253,6 +262,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ThresholdValue",
"Duration",
"Trigger",
+ "EvaluationMissingData",
});
internal_static_google_monitoring_v3_AlertPolicy_Condition_MetricAbsence_descriptor =
internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor
@@ -292,7 +302,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_monitoring_v3_AlertPolicy_Condition_MonitoringQueryLanguageCondition_descriptor,
new java.lang.String[] {
- "Query", "Duration", "Trigger",
+ "Query", "Duration", "Trigger", "EvaluationMissingData",
});
internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor =
internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(2);
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java
index 29b177f439c2..6c4b335118e8 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java
@@ -140,7 +140,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policy will be written, not the name of the created policy. |name| must be
- * a host project of a workspace, otherwise INVALID_ARGUMENT error will
+ * a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will
* return. The alerting policy that is returned will have a name that contains
* a normalized representation of this name as a prefix but adds a suffix of
* the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
@@ -174,7 +174,7 @@ public java.lang.String getName() {
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policy will be written, not the name of the created policy. |name| must be
- * a host project of a workspace, otherwise INVALID_ARGUMENT error will
+ * a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will
* return. The alerting policy that is returned will have a name that contains
* a normalized representation of this name as a prefix but adds a suffix of
* the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
@@ -616,7 +616,7 @@ public Builder mergeFrom(
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policy will be written, not the name of the created policy. |name| must be
- * a host project of a workspace, otherwise INVALID_ARGUMENT error will
+ * a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will
* return. The alerting policy that is returned will have a name that contains
* a normalized representation of this name as a prefix but adds a suffix of
* the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
@@ -649,7 +649,7 @@ public java.lang.String getName() {
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policy will be written, not the name of the created policy. |name| must be
- * a host project of a workspace, otherwise INVALID_ARGUMENT error will
+ * a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will
* return. The alerting policy that is returned will have a name that contains
* a normalized representation of this name as a prefix but adds a suffix of
* the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
@@ -682,7 +682,7 @@ public com.google.protobuf.ByteString getNameBytes() {
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policy will be written, not the name of the created policy. |name| must be
- * a host project of a workspace, otherwise INVALID_ARGUMENT error will
+ * a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will
* return. The alerting policy that is returned will have a name that contains
* a normalized representation of this name as a prefix but adds a suffix of
* the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
@@ -714,7 +714,7 @@ public Builder setName(java.lang.String value) {
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policy will be written, not the name of the created policy. |name| must be
- * a host project of a workspace, otherwise INVALID_ARGUMENT error will
+ * a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will
* return. The alerting policy that is returned will have a name that contains
* a normalized representation of this name as a prefix but adds a suffix of
* the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
@@ -742,7 +742,7 @@ public Builder clearName() {
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policy will be written, not the name of the created policy. |name| must be
- * a host project of a workspace, otherwise INVALID_ARGUMENT error will
+ * a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will
* return. The alerting policy that is returned will have a name that contains
* a normalized representation of this name as a prefix but adds a suffix of
* the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java
index d84bfb52bbeb..0f8020749958 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequestOrBuilder.java
@@ -32,7 +32,7 @@ public interface CreateAlertPolicyRequestOrBuilder
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policy will be written, not the name of the created policy. |name| must be
- * a host project of a workspace, otherwise INVALID_ARGUMENT error will
+ * a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will
* return. The alerting policy that is returned will have a name that contains
* a normalized representation of this name as a prefix but adds a suffix of
* the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
@@ -55,7 +55,7 @@ public interface CreateAlertPolicyRequestOrBuilder
* projects/[PROJECT_ID_OR_NUMBER]
* Note that this field names the parent container in which the alerting
* policy will be written, not the name of the created policy. |name| must be
- * a host project of a workspace, otherwise INVALID_ARGUMENT error will
+ * a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will
* return. The alerting policy that is returned will have a name that contains
* a normalized representation of this name as a prefix but adds a suffix of
* the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto
index b63b318a2a91..10256483c994 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto
@@ -1,4 +1,4 @@
-// Copyright 2021 Google LLC
+// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -51,7 +51,8 @@ message AlertPolicy {
// The text of the documentation, interpreted according to `mime_type`.
// The content may not exceed 8,192 Unicode characters and may not exceed
// more than 10,240 bytes when encoded in UTF-8 format, whichever is
- // smaller.
+ // smaller. This text can be [templatized by using
+ // variables](https://cloud.google.com/monitoring/alerts/doc-variables).
string content = 1;
// The format of the `content` field. Presently, only the value
@@ -87,6 +88,26 @@ message AlertPolicy {
}
}
+ // A condition control that determines how metric-threshold conditions
+ // are evaluated when data stops arriving.
+ // This control doesn't affect metric-absence policies.
+ enum EvaluationMissingData {
+ // An unspecified evaluation missing data option. Equivalent to
+ // EVALUATION_MISSING_DATA_NO_OP.
+ EVALUATION_MISSING_DATA_UNSPECIFIED = 0;
+
+ // If there is no data to evaluate the condition, then evaluate the
+ // condition as false.
+ EVALUATION_MISSING_DATA_INACTIVE = 1;
+
+ // If there is no data to evaluate the condition, then evaluate the
+ // condition as true.
+ EVALUATION_MISSING_DATA_ACTIVE = 2;
+
+ // Do not evaluate the condition to any value if there is no data.
+ EVALUATION_MISSING_DATA_NO_OP = 3;
+ }
+
// A condition type that compares a collection of time series
// against a threshold.
message MetricThreshold {
@@ -168,6 +189,10 @@ message AlertPolicy {
// or by the ratio, if `denominator_filter` and `denominator_aggregations`
// are specified.
Trigger trigger = 7;
+
+ // A condition control that determines how metric-threshold conditions
+ // are evaluated when data stops arriving.
+ EvaluationMissingData evaluation_missing_data = 11;
}
// A condition type that checks that monitored resources
@@ -267,6 +292,10 @@ message AlertPolicy {
// or by the ratio, if `denominator_filter` and `denominator_aggregations`
// are specified.
Trigger trigger = 3;
+
+ // A condition control that determines how metric-threshold conditions
+ // are evaluated when data stops arriving.
+ EvaluationMissingData evaluation_missing_data = 4;
}
// Required if the condition exists. The unique resource name for this
@@ -274,13 +303,13 @@ message AlertPolicy {
//
// projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
//
- // `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
+ // `[CONDITION_ID]` is assigned by Cloud Monitoring when the
// condition is created as part of a new or updated alerting policy.
//
// When calling the
// [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
// method, do not include the `name` field in the conditions of the
- // requested alerting policy. Stackdriver Monitoring creates the
+ // requested alerting policy. Cloud Monitoring creates the
// condition identifiers and includes them in the new policy.
//
// When calling the
@@ -320,26 +349,6 @@ message AlertPolicy {
}
}
- // Control over how the notification channels in `notification_channels`
- // are notified when this alert fires.
- message AlertStrategy {
- // Control over the rate of notifications sent to this alert policy's
- // notification channels.
- message NotificationRateLimit {
- // Not more than one notification per `period`.
- google.protobuf.Duration period = 1;
- }
-
- // Required for alert policies with a `LogMatch` condition.
- //
- // This limit is not implemented for alert policies that are not log-based.
- NotificationRateLimit notification_rate_limit = 1;
-
- // If an alert policy that was active has no data for this long, any open
- // incidents will close
- google.protobuf.Duration auto_close = 3;
- }
-
// Operators for combining conditions.
enum ConditionCombinerType {
// An unspecified combiner.
@@ -361,12 +370,32 @@ message AlertPolicy {
AND_WITH_MATCHING_RESOURCE = 3;
}
+ // Control over how the notification channels in `notification_channels`
+ // are notified when this alert fires.
+ message AlertStrategy {
+ // Control over the rate of notifications sent to this alert policy's
+ // notification channels.
+ message NotificationRateLimit {
+ // Not more than one notification per `period`.
+ google.protobuf.Duration period = 1;
+ }
+
+ // Required for alert policies with a `LogMatch` condition.
+ //
+ // This limit is not implemented for alert policies that are not log-based.
+ NotificationRateLimit notification_rate_limit = 1;
+
+ // If an alert policy that was active has no data for this long, any open
+ // incidents will close
+ google.protobuf.Duration auto_close = 3;
+ }
+
// Required if the policy exists. The resource name for this policy. The
// format is:
//
// projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
//
- // `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
+ // `[ALERT_POLICY_ID]` is assigned by Cloud Monitoring when the policy
// is created. When calling the
// [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
// method, do not include the `name` field in the alerting policy passed as
diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto
index 3d229e503395..dd82f658d329 100644
--- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto
+++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto
@@ -1,4 +1,4 @@
-// Copyright 2021 Google LLC
+// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -33,14 +33,14 @@ option php_namespace = "Google\\Cloud\\Monitoring\\V3";
option ruby_package = "Google::Cloud::Monitoring::V3";
// The AlertPolicyService API is used to manage (list, create, delete,
-// edit) alert policies in Stackdriver Monitoring. An alerting policy is
+// edit) alert policies in Cloud Monitoring. An alerting policy is
// a description of the conditions under which some aspect of your
// system is considered to be "unhealthy" and the ways to notify
// people or services about this state. In addition to using this API, alert
// policies can also be managed through
-// [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
+// [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
// which can be reached by clicking the "Monitoring" tab in
-// [Cloud Console](https://console.cloud.google.com/).
+// [Cloud console](https://console.cloud.google.com/).
service AlertPolicyService {
option (google.api.default_host) = "monitoring.googleapis.com";
option (google.api.oauth_scopes) =
@@ -103,7 +103,7 @@ message CreateAlertPolicyRequest {
//
// Note that this field names the parent container in which the alerting
// policy will be written, not the name of the created policy. |name| must be
- // a host project of a workspace, otherwise INVALID_ARGUMENT error will
+ // a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will
// return. The alerting policy that is returned will have a name that contains
// a normalized representation of this name as a prefix but adds a suffix of
// the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the