Class NewtsConverterUtils
- java.lang.Object
-
- org.opennms.netmgt.timeseries.sampleread.aggregation.NewtsConverterUtils
-
public class NewtsConverterUtils extends Object
Provides methods to convert between the Timeseries API world and Newts.
-
-
Constructor Summary
Constructors Constructor Description NewtsConverterUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>
asMap(Collection<org.opennms.integration.api.v1.timeseries.Tag> tags)
static Iterator<org.opennms.newts.api.Results.Row<org.opennms.newts.api.Sample>>
samplesToNewtsRowIterator(List<org.opennms.integration.api.v1.timeseries.Sample> allSamples)
static java.time.Instant
toInstant(org.opennms.newts.api.Timestamp timestamp)
static org.opennms.integration.api.v1.timeseries.Sample
toTimeseriesSample(org.opennms.newts.api.Results.Row<org.opennms.newts.api.Measurement> row, org.opennms.integration.api.v1.timeseries.Metric metric)
-
-
-
Method Detail
-
samplesToNewtsRowIterator
public static Iterator<org.opennms.newts.api.Results.Row<org.opennms.newts.api.Sample>> samplesToNewtsRowIterator(List<org.opennms.integration.api.v1.timeseries.Sample> allSamples)
-
toTimeseriesSample
public static org.opennms.integration.api.v1.timeseries.Sample toTimeseriesSample(org.opennms.newts.api.Results.Row<org.opennms.newts.api.Measurement> row, org.opennms.integration.api.v1.timeseries.Metric metric)
-
toInstant
public static java.time.Instant toInstant(org.opennms.newts.api.Timestamp timestamp)
-
asMap
public static Map<String,String> asMap(Collection<org.opennms.integration.api.v1.timeseries.Tag> tags)
-
-