org.influxdb.querybuilder.clauses.RelativeTimeClause Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of influxdb-java Show documentation
Show all versions of influxdb-java Show documentation
Java API to access the InfluxDB REST API
The newest version!
package org.influxdb.querybuilder.clauses;
import org.influxdb.querybuilder.time.TimeInterval;
public class RelativeTimeClause extends AbstractClause {
private final String rule;
private final TimeInterval timeInterval;
RelativeTimeClause(final String rule, final TimeInterval timeInterval) {
super("now()");
this.rule = rule;
this.timeInterval = timeInterval;
}
@Override
public void appendTo(final StringBuilder stringBuilder) {
stringBuilder.append(name).append(" ").append(rule).append(" ");
timeInterval.appendTo(stringBuilder);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy