Class: Alula::CameraGetStatsProc

Inherits:
RpcResource show all
Defined in:
lib/alula/procedures/camera_get_stats_proc.rb

Defined Under Namespace

Classes: Response

Class Method Summary collapse

Methods inherited from RpcResource

ok?, request, wrap_payload

Class Method Details

.call(device_id:) ⇒ Object



14
15
16
17
18
19
20
21
# File 'lib/alula/procedures/camera_get_stats_proc.rb', line 14

def self.call(device_id:)
  request(
    http_method: :get,
    path: "/video/v1/stats/devices/#{device_id}",
    payload: {},
    handler: Response
  )
end