lib/one2influx/one_object/one_object.rb
def serialize_as_points
    points = []
    @metrics.each do |metric_name, metric_value|
      points << {
          :measurement => metric_name,
          :tags => @tags,
          :fields => {
              :value => metric_value.to_f
          }
      }
    end

    return points
  end
# Serialize OneObject instance to InfluxDB point form
Serialize OneObject instance to InfluxDB point form
Serialize OneObject instance to InfluxDB point form
def serialize_as_points
    points = []
    @metrics.each do |metric_name, metric_value|
      points << {
          :measurement => metric_name,
          :tags => @tags,
          :fields => {
              :value => metric_value.to_f
          }
      }
    end
    return points
  end
def serialize_as_points points = [ ] @metrics . each do | metric_name , metric_value | points << { :measurement => metric_name , :tags => @tags , :fields => { :value => metric_value . to_f } } end return points end
Serialize OneObject instance to InfluxDB point form
Serialize OneObject instance to InfluxDB point form