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));
}
}