Method: M2X::Client::Stream#sampling

Defined in:
lib/m2x/stream.rb

#sampling(params) ⇒ Object

Sample values from the stream, sorted in reverse chronological order (most recent values first).

This method only works for numeric streams

m2x.att.com/developer/documentation/v2/device#Data-Stream-Sampling



61
62
63
# File 'lib/m2x/stream.rb', line 61

def sampling(params)
  @client.get("#{path}/sampling", params)
end