use of org.opensearch.ml.stats.suppliers.CounterSupplier in project ml-commons by opensearch-project.
the class MLStatsTests method setup.
@Before
public void setup() {
clusterStatName1 = "clusterStat1";
nodeStatName1 = "nodeStat1";
statsMap = new HashMap<String, MLStat<?>>() {
{
put(nodeStatName1, new MLStat<>(false, new CounterSupplier()));
put(clusterStatName1, new MLStat<>(true, new CounterSupplier()));
}
};
mlStats = new MLStats(statsMap);
}
Aggregations