1 Reply Latest reply on Oct 12, 2012 5:42 PM by genman

    Expose method to set timestamp on MeasurementData

    genman

      I am gathering data from a reporting system for metrics that are in the past:

       

      The query is basically:

       

      select time_stamp, value1, value2
      from report
      order by time_stamp desc
      

       

      So I'd like this data to be added to the RHQ database with this timestamp.

       

      Unfortunately MeasurementData has no (easy) way to set the timestamp value.

       

      There's also the problem of potentially returning duplicate values. It would be preferable if RHQ would ignore duplicates on insert.