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

com.eg.agent.android.measurement.consumer.HttpErrorMetricsConsumer Maven / Gradle / Ivy

The newest version!
package com.eg.agent.android.measurement.consumer;


import com.eg.agent.android.harvest.DataReaper;
import com.eg.agent.android.harvest.HttpErrorResponse;
import com.eg.agent.android.measurement.Metrics;
import com.eg.agent.android.measurement.MetricsType;
import com.eg.agent.android.measurement.http.HttpErrorMetrics;

public class HttpErrorMetricsConsumer extends BaseMetricsConsumer {
    public HttpErrorMetricsConsumer() {
        super(MetricsType.HttpError);
    }

    public void consumeMeasurement(Metrics measurement) {
        DataReaper.addHttpError(new HttpErrorResponse((HttpErrorMetrics) measurement));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy