Class NewtsConverterUtils


  • public class NewtsConverterUtils
    extends Object
    Provides methods to convert between the Timeseries API world and Newts.
    • Constructor Detail

      • NewtsConverterUtils

        public NewtsConverterUtils()
    • 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)