summaryrefslogtreecommitdiffstats
path: root/clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/util/MetricReporter.java
blob: f9422081f05501a8375050253cac165cda95d132 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.utils.util;

/**
 * Wrapper for current jdisc metrics, such that applications can report metrics without depending on
 * the whole container. The apputil project will provide an implementation of this interface that
 * reports on to injected jdisc implementation.
 */
public interface MetricReporter {
    void set(java.lang.String s, java.lang.Number number, Context context);

    void add(java.lang.String s, java.lang.Number number, Context context);

    Context createContext(java.util.Map<java.lang.String,?> dimensions);
    static interface Context {
    }
}