/** * Create a PointBuilder instance with no default settings. PointBuilder * instances are not thread-safe. * * @return an "empty" point builder instance */ public PointBuilder pointBuilder() { return new PointBuilder(); }
/** * Set a named dimension to a floating point value. * * @param dimensionName the name of the dimension to set * @param dimensionValue to value for the given dimension * @return this, to facilitate chaining */ public PointBuilder set(String dimensionName, double dimensionValue) { return set(dimensionName, Value.of(dimensionValue)); }
/** * Set a named dimension to an integer value. * * @param dimensionName the name of the dimension to set * @param dimensionValue to value for the given dimension * @return this, to facilitate chaining */ public PointBuilder set(String dimensionName, long dimensionValue) { return set(dimensionName, Value.of(dimensionValue)); }
/** * Set a named dimension to a string value. * * @param dimensionName the name of the dimension to set * @param dimensionValue to value for the given dimension * @return this, to facilitate chaining */ public PointBuilder set(String dimensionName, String dimensionValue) { return set(dimensionName, Value.of(dimensionValue)); }
/** * Create a PointBuilder with default dimension values as given when this * counter was declared. * * @return a PointBuilder reflecting the default dimension values of this * counter */ public PointBuilder builder() { return new PointBuilder(defaultPosition); } }
/** * Create a PointBuilder with the default dimension values reflecting those * given when this gauge was declared. * * @return a builder initialized with defaults from this metric instance */ public PointBuilder builder() { return new PointBuilder(defaultPosition); } }