com.eg.agent.android.measurement.CustomMetricMeasurement Maven / Gradle / Ivy
package com.eg.agent.android.measurement;
/*
import com.newrelic.agent.android.metric.Metric;
*/
import com.eg.agent.android.metric.Metric;
public class CustomMetricMeasurement extends CategorizedMeasurement {
private Metric customMetric;
public CustomMetricMeasurement() {
super(MeasurementType.Custom);
}
public CustomMetricMeasurement(String name, int count, double totalValue, double exclusiveValue) {
this();
setName(name);
this.customMetric = new Metric(name);
this.customMetric.sample(totalValue);
this.customMetric.setCount((long) count);
this.customMetric.setExclusive(Double.valueOf(exclusiveValue));
}
public Metric getCustomMetric() {
return this.customMetric;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy