diff --git a/clients/google-api-services-monitoring/v1/2.0.0/README.md b/clients/google-api-services-monitoring/v1/2.0.0/README.md index 861a229b88c..1173a63055a 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/README.md +++ b/clients/google-api-services-monitoring/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-monitoring - v1-rev20260604-2.0.0 + v1-rev20260611-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-monitoring:v1-rev20260604-2.0.0' + implementation 'com.google.apis:google-api-services-monitoring:v1-rev20260611-2.0.0' } ``` diff --git a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/SpanAttributeFilter.java b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/SpanAttributeFilter.java new file mode 100644 index 00000000000..18d39ea086e --- /dev/null +++ b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/SpanAttributeFilter.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.monitoring.v1.model; + +/** + * Span attribute key and list of values to be used for filtering. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud Monitoring API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SpanAttributeFilter extends com.google.api.client.json.GenericJson { + + /** + * Key of the attribute + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * List of attribute values for given key. Multiple values will be OR'd together. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List value; + + /** + * Key of the attribute + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * Key of the attribute + * @param key key or {@code null} for none + */ + public SpanAttributeFilter setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * List of attribute values for given key. Multiple values will be OR'd together. + * @return value or {@code null} for none + */ + public java.util.List getValue() { + return value; + } + + /** + * List of attribute values for given key. Multiple values will be OR'd together. + * @param value value or {@code null} for none + */ + public SpanAttributeFilter setValue(java.util.List value) { + this.value = value; + return this; + } + + @Override + public SpanAttributeFilter set(String fieldName, Object value) { + return (SpanAttributeFilter) super.set(fieldName, value); + } + + @Override + public SpanAttributeFilter clone() { + return (SpanAttributeFilter) super.clone(); + } + +} diff --git a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/SpanFilters.java b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/SpanFilters.java new file mode 100644 index 00000000000..485d7632554 --- /dev/null +++ b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/SpanFilters.java @@ -0,0 +1,339 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.monitoring.v1.model; + +/** + * First version of span filtering that is supported by the Trace component. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud Monitoring API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SpanFilters extends com.google.api.client.json.GenericJson { + + /** + * Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple + * values will be OR'd together. Example: "service-id1", "service-id2" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List apphubServices; + + /** + * Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple + * values will be OR'd together. Example: "workload-id1", "workload-id2" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List apphubWorkloads; + + /** + * Optional. Filtering for spans containing one of the Apphub Application IDs in the list. + * Multiple values will be OR'd together. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List applicationIds; + + /** + * Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple + * attribute filters will be AND'd together. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List attributes; + + static { + // hack to force ProGuard to consider SpanAttributeFilter used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(SpanAttributeFilter.class); + } + + /** + * Optional. Filtering for spans containing one of the span display names in the list. Multiple + * values will be OR'd together. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List displayNames; + + /** + * Optional. Filters for root spans only if set to true. A root span is a span without a defined + * parent span ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isRootSpan; + + /** + * Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be + * OR'd together. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List kinds; + + /** + * Optional. Filtering for spans with a maximum duration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String maxDuration; + + /** + * Optional. Filtering for spans with a minimum duration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String minDuration; + + /** + * Optional. Filtering for spans containing one of the services in the list. Multiple values will + * be OR'd together. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List services; + + /** + * Optional. Filtering for spans containing one of the statuses in the list. Multiple values will + * be OR'd together. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List status; + + /** + * Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple + * values will be OR'd together. Example: "service-id1", "service-id2" + * @return value or {@code null} for none + */ + public java.util.List getApphubServices() { + return apphubServices; + } + + /** + * Optional. Filtering for spans containing one of the Apphub service IDs in the list. Multiple + * values will be OR'd together. Example: "service-id1", "service-id2" + * @param apphubServices apphubServices or {@code null} for none + */ + public SpanFilters setApphubServices(java.util.List apphubServices) { + this.apphubServices = apphubServices; + return this; + } + + /** + * Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple + * values will be OR'd together. Example: "workload-id1", "workload-id2" + * @return value or {@code null} for none + */ + public java.util.List getApphubWorkloads() { + return apphubWorkloads; + } + + /** + * Optional. Filtering for spans containing one of the Apphub workload IDs in the list. Multiple + * values will be OR'd together. Example: "workload-id1", "workload-id2" + * @param apphubWorkloads apphubWorkloads or {@code null} for none + */ + public SpanFilters setApphubWorkloads(java.util.List apphubWorkloads) { + this.apphubWorkloads = apphubWorkloads; + return this; + } + + /** + * Optional. Filtering for spans containing one of the Apphub Application IDs in the list. + * Multiple values will be OR'd together. + * @return value or {@code null} for none + */ + public java.util.List getApplicationIds() { + return applicationIds; + } + + /** + * Optional. Filtering for spans containing one of the Apphub Application IDs in the list. + * Multiple values will be OR'd together. + * @param applicationIds applicationIds or {@code null} for none + */ + public SpanFilters setApplicationIds(java.util.List applicationIds) { + this.applicationIds = applicationIds; + return this; + } + + /** + * Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple + * attribute filters will be AND'd together. + * @return value or {@code null} for none + */ + public java.util.List getAttributes() { + return attributes; + } + + /** + * Optional. List of span attribute filters. Each SpanAttributeFilter key must be unique. Multiple + * attribute filters will be AND'd together. + * @param attributes attributes or {@code null} for none + */ + public SpanFilters setAttributes(java.util.List attributes) { + this.attributes = attributes; + return this; + } + + /** + * Optional. Filtering for spans containing one of the span display names in the list. Multiple + * values will be OR'd together. + * @return value or {@code null} for none + */ + public java.util.List getDisplayNames() { + return displayNames; + } + + /** + * Optional. Filtering for spans containing one of the span display names in the list. Multiple + * values will be OR'd together. + * @param displayNames displayNames or {@code null} for none + */ + public SpanFilters setDisplayNames(java.util.List displayNames) { + this.displayNames = displayNames; + return this; + } + + /** + * Optional. Filters for root spans only if set to true. A root span is a span without a defined + * parent span ID. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsRootSpan() { + return isRootSpan; + } + + /** + * Optional. Filters for root spans only if set to true. A root span is a span without a defined + * parent span ID. + * @param isRootSpan isRootSpan or {@code null} for none + */ + public SpanFilters setIsRootSpan(java.lang.Boolean isRootSpan) { + this.isRootSpan = isRootSpan; + return this; + } + + /** + * Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be + * OR'd together. + * @return value or {@code null} for none + */ + public java.util.List getKinds() { + return kinds; + } + + /** + * Optional. Filtering for spans containing one of the kinds in the list. Multiple values will be + * OR'd together. + * @param kinds kinds or {@code null} for none + */ + public SpanFilters setKinds(java.util.List kinds) { + this.kinds = kinds; + return this; + } + + /** + * Optional. Filtering for spans with a maximum duration. + * @return value or {@code null} for none + */ + public String getMaxDuration() { + return maxDuration; + } + + /** + * Optional. Filtering for spans with a maximum duration. + * @param maxDuration maxDuration or {@code null} for none + */ + public SpanFilters setMaxDuration(String maxDuration) { + this.maxDuration = maxDuration; + return this; + } + + /** + * Optional. Filtering for spans with a minimum duration. + * @return value or {@code null} for none + */ + public String getMinDuration() { + return minDuration; + } + + /** + * Optional. Filtering for spans with a minimum duration. + * @param minDuration minDuration or {@code null} for none + */ + public SpanFilters setMinDuration(String minDuration) { + this.minDuration = minDuration; + return this; + } + + /** + * Optional. Filtering for spans containing one of the services in the list. Multiple values will + * be OR'd together. + * @return value or {@code null} for none + */ + public java.util.List getServices() { + return services; + } + + /** + * Optional. Filtering for spans containing one of the services in the list. Multiple values will + * be OR'd together. + * @param services services or {@code null} for none + */ + public SpanFilters setServices(java.util.List services) { + this.services = services; + return this; + } + + /** + * Optional. Filtering for spans containing one of the statuses in the list. Multiple values will + * be OR'd together. + * @return value or {@code null} for none + */ + public java.util.List getStatus() { + return status; + } + + /** + * Optional. Filtering for spans containing one of the statuses in the list. Multiple values will + * be OR'd together. + * @param status status or {@code null} for none + */ + public SpanFilters setStatus(java.util.List status) { + this.status = status; + return this; + } + + @Override + public SpanFilters set(String fieldName, Object value) { + return (SpanFilters) super.set(fieldName, value); + } + + @Override + public SpanFilters clone() { + return (SpanFilters) super.clone(); + } + +} diff --git a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/TraceQuery.java b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/TraceQuery.java index cf05c242515..53fd9cb0b0e 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/TraceQuery.java +++ b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/TraceQuery.java @@ -30,6 +30,84 @@ @SuppressWarnings("javadoc") public final class TraceQuery extends com.google.api.client.json.GenericJson { + /** + * Optional. The resource name of the project or Trace scope to fetch data from. If empty, the + * widget will default to the project's default Trace scope. If scope cannot be determined, then + * we fallback to the current project. Optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resourceContainer; + + /** + * The type of span data value to be displayed on the chart. Required. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String spanDataValue; + + /** + * First version of span filtering that we will support. Required. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SpanFilters spanFilters; + + /** + * Optional. The resource name of the project or Trace scope to fetch data from. If empty, the + * widget will default to the project's default Trace scope. If scope cannot be determined, then + * we fallback to the current project. Optional. + * @return value or {@code null} for none + */ + public java.lang.String getResourceContainer() { + return resourceContainer; + } + + /** + * Optional. The resource name of the project or Trace scope to fetch data from. If empty, the + * widget will default to the project's default Trace scope. If scope cannot be determined, then + * we fallback to the current project. Optional. + * @param resourceContainer resourceContainer or {@code null} for none + */ + public TraceQuery setResourceContainer(java.lang.String resourceContainer) { + this.resourceContainer = resourceContainer; + return this; + } + + /** + * The type of span data value to be displayed on the chart. Required. + * @return value or {@code null} for none + */ + public java.lang.String getSpanDataValue() { + return spanDataValue; + } + + /** + * The type of span data value to be displayed on the chart. Required. + * @param spanDataValue spanDataValue or {@code null} for none + */ + public TraceQuery setSpanDataValue(java.lang.String spanDataValue) { + this.spanDataValue = spanDataValue; + return this; + } + + /** + * First version of span filtering that we will support. Required. + * @return value or {@code null} for none + */ + public SpanFilters getSpanFilters() { + return spanFilters; + } + + /** + * First version of span filtering that we will support. Required. + * @param spanFilters spanFilters or {@code null} for none + */ + public TraceQuery setSpanFilters(SpanFilters spanFilters) { + this.spanFilters = spanFilters; + return this; + } + @Override public TraceQuery set(String fieldName, Object value) { return (TraceQuery) super.set(fieldName, value); diff --git a/clients/google-api-services-monitoring/v1/2.0.0/pom.xml b/clients/google-api-services-monitoring/v1/2.0.0/pom.xml index fe1189db9f1..03b70ada2c0 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/pom.xml +++ b/clients/google-api-services-monitoring/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-monitoring - v1-rev20260604-2.0.0 - Cloud Monitoring API v1-rev20260604-2.0.0 + v1-rev20260611-2.0.0 + Cloud Monitoring API v1-rev20260611-2.0.0 jar 2011 diff --git a/clients/google-api-services-monitoring/v1/README.md b/clients/google-api-services-monitoring/v1/README.md index 861a229b88c..1173a63055a 100644 --- a/clients/google-api-services-monitoring/v1/README.md +++ b/clients/google-api-services-monitoring/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-monitoring - v1-rev20260604-2.0.0 + v1-rev20260611-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-monitoring:v1-rev20260604-2.0.0' + implementation 'com.google.apis:google-api-services-monitoring:v1-rev20260611-2.0.0' } ```