com.newrelic.telemetry.micrometer.transform.TimeGaugeTransformer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of micrometer-registry-new-relic Show documentation
Show all versions of micrometer-registry-new-relic Show documentation
Micrometer registry implementation that sends data to New Relic as dimensional metrics
The newest version!
/*
* ---------------------------------------------------------------------------------------------
* Copyright (c) 2019 New Relic Corporation. All rights reserved.
* Licensed under the Apache 2.0 License. See LICENSE in the project root directory for license information.
* --------------------------------------------------------------------------------------------
*/
package com.newrelic.telemetry.micrometer.transform;
import com.newrelic.telemetry.metrics.Metric;
import io.micrometer.core.instrument.TimeGauge;
public class TimeGaugeTransformer {
private final GaugeTransformer delegate;
public TimeGaugeTransformer(GaugeTransformer delegate) {
this.delegate = delegate;
}
public Metric transform(TimeGauge timeGauge) {
return delegate.transform(timeGauge, "timeGauge");
}
}