Method: ATSD::MessagesService#stats_query
- Defined in:
- lib/atsd/services/messages_service.rb
#stats_query(options) ⇒ self
Retrieve message counters for the specified filters as series.
40 41 42 43 44 45 46 47 48 |
# File 'lib/atsd/services/messages_service.rb', line 40 def stats_query() [:metric] = 'message-count' = Utils.ensure_array().map do |s| s = Message.new(s) if s.is_a? Hash s.to_request_hash end result = @client.() result.map { |json| Series.new json } end |