/** * Creates a distribution summary object that manages a set of distribution summaries based on * the bucket function supplied. Calling record will be mapped to the record on the appropriate * distribution summary. * * @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 BucketDistributionSummary get(Registry registry, Id id, BucketFunction f) { return new BucketDistributionSummary( com.netflix.spectator.api.histogram.BucketDistributionSummary.get(registry, id, f)); }
/** * Creates a distribution summary object that manages a set of distribution summaries based on * the bucket function supplied. Calling record will be mapped to the record on the appropriate * distribution summary. * * @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 BucketDistributionSummary get(Id id, BucketFunction f) { return get(Spectator.globalRegistry(), id, f); }
/** * Creates a distribution summary object that manages a set of distribution summaries based on * the bucket function supplied. Calling record will be mapped to the record on the appropriate * distribution summary. * * @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 BucketDistributionSummary get(Id id, BucketFunction f) { return get(Spectator.globalRegistry(), id, f); }
/** * Creates a distribution summary object that manages a set of distribution summaries based on * the bucket function supplied. Calling record will be mapped to the record on the appropriate * distribution summary. * * @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 BucketDistributionSummary get(Registry registry, Id id, BucketFunction f) { return new BucketDistributionSummary( com.netflix.spectator.api.histogram.BucketDistributionSummary.get(registry, id, f)); }