/** * Creates a distribution summary object that manages a set of counters based on the bucket * function supplied. Calling record will increment the appropriate counter. * * @param id * Identifier for the metric being registered. * @param f * Function to map values to buckets. * @return * Distribution summary that manages sub-counters based on the bucket function. */ public static BucketCounter get(Id id, BucketFunction f) { return get(Spectator.globalRegistry(), id, f); }
/** * Creates a distribution summary object that manages a set of counters based on the bucket * function supplied. Calling record will increment the appropriate counter. * * @param registry * Registry to use. * @param id * Identifier for the metric being registered. * @param f * Function to map values to buckets. * @return * Distribution summary that manages sub-counters based on the bucket function. */ public static BucketCounter get(Registry registry, Id id, BucketFunction f) { return new BucketCounter( com.netflix.spectator.api.histogram.BucketCounter.get(registry, id, f)); }
/** * Creates a distribution summary object that manages a set of counters based on the bucket * function supplied. Calling record will increment the appropriate counter. * * @param registry * Registry to use. * @param id * Identifier for the metric being registered. * @param f * Function to map values to buckets. * @return * Distribution summary that manages sub-counters based on the bucket function. */ public static BucketCounter get(Registry registry, Id id, BucketFunction f) { return new BucketCounter( com.netflix.spectator.api.histogram.BucketCounter.get(registry, id, f)); }
/** * Creates a distribution summary object that manages a set of counters based on the bucket * function supplied. Calling record will increment the appropriate counter. * * @param id * Identifier for the metric being registered. * @param f * Function to map values to buckets. * @return * Distribution summary that manages sub-counters based on the bucket function. */ public static BucketCounter get(Id id, BucketFunction f) { return get(Spectator.globalRegistry(), id, f); }