/** * Queries the Measurement Api for the last value found in a given timeframe. * * @param resource the resource to be used * @param attribute the attribute to query for * @param aggregation the aggregation method * @return the last known value */ public double getLastValue(final String resource, final String attribute, final String aggregation) throws MeasurementException { return getLastValue(resource, attribute, aggregation, true); }
/** * Queries the Measuement Api for the last value found in a given timeframe. * * @param resource the resource to be used * @param attribute the attribute to query for * @return the last known value */ public double getLastValue(final String resource, final String attribute) throws MeasurementException { return getLastValue(resource, attribute, "AVERAGE"); }
/** * Queries the Measuement Api for the last value found in a given timeframe. * * @param resource the resource to be used * @param attribute the attribute to query for * @return the last known value */ public double getLastValue(final String resource, final String attribute) throws MeasurementException { return getLastValue(resource, attribute, "AVERAGE"); }
/** * Queries the Measurement Api for the last value found in a given timeframe. * * @param resource the resource to be used * @param attribute the attribute to query for * @param aggregation the aggregation method * @return the last known value */ public double getLastValue(final String resource, final String attribute, final String aggregation) throws MeasurementException { return getLastValue(resource, attribute, aggregation, true); }