lib/logstash/outputs/circonus.rb in logstash-output-circonus-2.0.4 vs lib/logstash/outputs/circonus.rb in logstash-output-circonus-3.0.0

- old
+ new

@@ -23,11 +23,11 @@ config :app_name, :validate => :string, :required => true # Annotations # Registers an annotation with Circonus # The only required field is `title` and `description`. - # `start` and `stop` will be set to `event["@timestamp"]` + # `start` and `stop` will be set to the event timestamp. # You can add any other optional annotation values as well. # All values will be passed through `event.sprintf` # # Example: # [source,ruby] @@ -51,10 +51,9 @@ public def receive(event) # TODO (lusis) # batch and flush - annotation_event = Hash[*@annotation.collect{|k,v| [event.sprintf(k),event.sprintf(v)]}.flatten] @logger.warn("Annotation event", :data => annotation_event) annotation_array = []