net.savantly.graphite.query.impl.UntilImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphite-client Show documentation
Show all versions of graphite-client Show documentation
Connects to a carbon/graphite instance to push metrics
The newest version!
package net.savantly.graphite.query.impl;
import net.savantly.graphite.query.GraphiteTimeUnit;
import net.savantly.graphite.query.Until;
public class UntilImpl implements Until {
private String value = "now";
public UntilImpl() { }
public UntilImpl(int value, GraphiteTimeUnit unit) {
this.value = String.format("%i%s", value, unit.value());
}
@Override
public String value() {
return this.value;
}
}