All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eg.agent.android.measurement.CustomMetricMeasurement Maven / Gradle / Ivy

There is a newer version: 2.1.3
Show newest version
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