Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/google-api-services-monitoring/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-monitoring</artifactId>
<version>v1-rev20260705-2.0.0</version>
<version>v1-rev20260903-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-monitoring:v1-rev20260705-2.0.0'
implementation 'com.google.apis:google-api-services-monitoring:v1-rev20260903-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
/*
* 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;

/**
* Represents a time range.
*
* <p> 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:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class TimeRange extends com.google.api.client.json.GenericJson {

/**
* Optional. Represents a time range with absolute start and end times. The start time is
* inclusive, and the end time is exclusive.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Interval absoluteWindow;

/**
* Optional. Specifies the duration used to shift the data relative to current time as the end
* time. The duration must be positive.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String relativeDuration;

/**
* Optional. Represents a time range with absolute start and end times. The start time is
* inclusive, and the end time is exclusive.
* @return value or {@code null} for none
*/
public Interval getAbsoluteWindow() {
return absoluteWindow;
}

/**
* Optional. Represents a time range with absolute start and end times. The start time is
* inclusive, and the end time is exclusive.
* @param absoluteWindow absoluteWindow or {@code null} for none
*/
public TimeRange setAbsoluteWindow(Interval absoluteWindow) {
this.absoluteWindow = absoluteWindow;
return this;
}

/**
* Optional. Specifies the duration used to shift the data relative to current time as the end
* time. The duration must be positive.
* @return value or {@code null} for none
*/
public String getRelativeDuration() {
return relativeDuration;
}

/**
* Optional. Specifies the duration used to shift the data relative to current time as the end
* time. The duration must be positive.
* @param relativeDuration relativeDuration or {@code null} for none
*/
public TimeRange setRelativeDuration(String relativeDuration) {
this.relativeDuration = relativeDuration;
return this;
}

@Override
public TimeRange set(String fieldName, Object value) {
return (TimeRange) super.set(fieldName, value);
}

@Override
public TimeRange clone() {
return (TimeRange) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ public final class Widget extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key
private Text text;

/**
* Optional. Represents a time range for the widget. When set, this time range will override the
* dashboard time range. Supported for line, stacked area and stacked bar widgets only.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private TimeRange timeRange;

/**
* A widget that displays time series data in a tabular format.
* The value may be {@code null}.
Expand Down Expand Up @@ -383,6 +391,25 @@ public Widget setText(Text text) {
return this;
}

/**
* Optional. Represents a time range for the widget. When set, this time range will override the
* dashboard time range. Supported for line, stacked area and stacked bar widgets only.
* @return value or {@code null} for none
*/
public TimeRange getTimeRange() {
return timeRange;
}

/**
* Optional. Represents a time range for the widget. When set, this time range will override the
* dashboard time range. Supported for line, stacked area and stacked bar widgets only.
* @param timeRange timeRange or {@code null} for none
*/
public Widget setTimeRange(TimeRange timeRange) {
this.timeRange = timeRange;
return this;
}

/**
* A widget that displays time series data in a tabular format.
* @return value or {@code null} for none
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-monitoring/v1/2.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-monitoring</artifactId>
<version>v1-rev20260705-2.0.0</version>
<name>Cloud Monitoring API v1-rev20260705-2.0.0</name>
<version>v1-rev20260903-2.0.0</version>
<name>Cloud Monitoring API v1-rev20260903-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-monitoring/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-monitoring</artifactId>
<version>v1-rev20260705-2.0.0</version>
<version>v1-rev20260903-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-monitoring:v1-rev20260705-2.0.0'
implementation 'com.google.apis:google-api-services-monitoring:v1-rev20260903-2.0.0'
}
```

Expand Down
Loading