diff options
author | Jon Bratseth <bratseth@gmail.com> | 2020-09-25 15:56:29 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2020-09-25 15:56:29 +0200 |
commit | bc1db935b7c06e95d478dc2d8fdc78e6ba984d1c (patch) | |
tree | 89fa9c54d80e978a25644c3bb651d561a18f3f7d /jdisc_core | |
parent | 3d6ae1fc0a71b8a47591d77f2f84590fa1d6db24 (diff) |
Allow non-fresource metrics
Diffstat (limited to 'jdisc_core')
-rw-r--r-- | jdisc_core/src/main/java/com/yahoo/jdisc/application/MetricConsumer.java | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/application/MetricConsumer.java b/jdisc_core/src/main/java/com/yahoo/jdisc/application/MetricConsumer.java index f060f1840ff..44cfb205271 100644 --- a/jdisc_core/src/main/java/com/yahoo/jdisc/application/MetricConsumer.java +++ b/jdisc_core/src/main/java/com/yahoo/jdisc/application/MetricConsumer.java @@ -39,30 +39,31 @@ import java.util.Map; public interface MetricConsumer { /** - * <p>Consume a call to <code>Metric.set(String, Number, Metric.Context)</code>.</p> + * Consume a call to <code>Metric.set(String, Number, Metric.Context)</code>. * - * @param key The name of the metric to modify. - * @param val The value to assign to the named metric. - * @param ctx The context to further describe this entry. + * @param key the name of the metric to modify + * @param val the value to assign to the named metric + * @param ctx the context to further describe this entry */ - public void set(String key, Number val, Metric.Context ctx); + void set(String key, Number val, Metric.Context ctx); /** - * <p>Consume a call to <code>Metric.add(String, Number, Metric.Context)</code>.</p> + * Consume a call to <code>Metric.add(String, Number, Metric.Context)</code>. * - * @param key The name of the metric to modify. - * @param val The value to add to the named metric. - * @param ctx The context to further describe this entry. + * @param key the name of the metric to modify + * @param val the value to add to the named metric + * @param ctx the context to further describe this entry */ - public void add(String key, Number val, Metric.Context ctx); + void add(String key, Number val, Metric.Context ctx); /** - * <p>Creates a <code>Metric.Context</code> object that encapsulates the given properties. The returned Context object + * Creates a <code>Metric.Context</code> object that encapsulates the given properties. The returned Context object * will be passed along every future call to <code>set(String, Number, Metric.Context)</code> and - * <code>add(String, Number, Metric.Context)</code> where the properties match those given here.</p> + * <code>add(String, Number, Metric.Context)</code> where the properties match those given here. * - * @param properties The properties to incorporate in the context. - * @return The created context. + * @param properties the properties to incorporate in the context + * @return the created context */ - public Metric.Context createContext(Map<String, ?> properties); + Metric.Context createContext(Map<String, ?> properties); + } |