Class: Istat::Frames::MeasurementRequest
- Defined in:
- lib/istat/frames/measurement.rb
Constant Summary collapse
- RID =
:rid
- CPU =
:c
- NETWORK =
:n
- MEMORY =
:m
- LOAD =
:lo
- TEMP =
qnap only
:t
- FAN =
:f
- UPTIME =
:u
- DISK =
:d
Constants inherited from Base
Instance Method Summary collapse
-
#initialize(rid, since = -1)) ⇒ MeasurementRequest
constructor
create a new request based on the requested id.
Methods inherited from Base
Constructor Details
#initialize(rid, since = -1)) ⇒ MeasurementRequest
create a new request based on the requested id. The default is to request only the last values (since -1)
37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/istat/frames/measurement.rb', line 37 def initialize(rid, since = -1) super create([RID, rid], [CPU, since], [NETWORK, since], [MEMORY, since], [LOAD, since], [TEMP, since], [FAN, since], [UPTIME, since], [DISK, since]) end |