alula-ruby 1.9.15 → 1.9.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b7739917c002099d1faef9ca3be6c7d816296e5ec598d63373fa12bf4db4955
4
- data.tar.gz: f23cf0753376e191baaf24c54d42f72ad1ff3324871dc9d40ca6f1a2825bc123
3
+ metadata.gz: 84f7fb2b4e66558a20dbeb13ce3ac1cfe32b58c2b6c07b939870109d9af10903
4
+ data.tar.gz: 780c0021ae770e46460deca787d1cf0ad0cb7765390d9968817da84bc7a7fbb8
5
5
  SHA512:
6
- metadata.gz: ec710ab13e373cf6550f6b6ee7e211e75120469f4c9a6b2b310b2eb1d6af8958101f15fb8e79b97dfbdde04952b7b9ed36e5c22e6365f79697a79bac271df033
7
- data.tar.gz: 5e1f0f774736ffd4e4de8cdf648a1b8eff3392e42d00ace2d87853aabb3b173590cd683d79fed00a38290ddb212d83780a322b1dd7e172ece6d3401bb4af33de
6
+ metadata.gz: a76f1141ce9bec10c9c61aab6cf096f18c666a3c1193171e28287691b1bcafe8fbe04eae1a1b66a017288a23e42d85f42bf02a98df90604295d5a9247f8ca44d
7
+ data.tar.gz: 9c116ab893d29af6d6787104b73beaa55bff779c67790e7747155da970124f91b0765baefb18433310e6f83626e343e4d6cadd726c0498937908e5c624d2f478
data/VERSION.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  | Version | Date | Description |
4
4
  | ------- | ------------| --------------------------------------------------------------------------- |
5
+ | v1.9.16 | 2024-09-04 | Add get camera stats proc |
5
6
  | v1.9.15 | 2024-09-02 | Add impersonated_by accessor to the ImpersonatedToken |
6
7
  | v1.9.14 | 2024-08-28 | Getting rid of all mention of callerID in device import |
7
8
  | v1.9.13 | 2024-08-27 | Updated camera info proc |
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Alula
4
+ class CameraGetStatsProc < Alula::RpcResource
5
+ class Response < Alula::RpcResponse
6
+ attr_accessor :result
7
+
8
+ def initialize(response)
9
+ super(response)
10
+ @result = response.data['data']
11
+ end
12
+ end
13
+
14
+ def self.call(device_id:)
15
+ request(
16
+ http_method: :get,
17
+ path: "/video/v1/stats/devices/#{device_id}",
18
+ payload: {},
19
+ handler: Response
20
+ )
21
+ end
22
+ end
23
+ end
data/lib/alula/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alula
4
- VERSION = '1.9.15'
4
+ VERSION = '1.9.16'
5
5
  end
data/lib/alula.rb CHANGED
@@ -94,6 +94,7 @@ require_relative 'alula/procedures/video_unregister_proc'
94
94
  require_relative 'alula/procedures/camera_get_wifi_proc'
95
95
  require_relative 'alula/procedures/camera_get_sd_status_proc'
96
96
  require_relative 'alula/procedures/camera_get_info_proc'
97
+ require_relative 'alula/procedures/camera_get_stats_proc'
97
98
  require_relative 'alula/procedures/camera_get_svr_config_proc'
98
99
  require_relative 'alula/procedures/camera_set_svr_config_proc'
99
100
  require_relative 'alula/procedures/camera_get_rec_config_proc'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alula-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.15
4
+ version: 1.9.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Johnson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-03 00:00:00.000000000 Z
11
+ date: 2024-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -219,6 +219,7 @@ files:
219
219
  - lib/alula/procedures/camera_get_info_proc.rb
220
220
  - lib/alula/procedures/camera_get_rec_config_proc.rb
221
221
  - lib/alula/procedures/camera_get_sd_status_proc.rb
222
+ - lib/alula/procedures/camera_get_stats_proc.rb
222
223
  - lib/alula/procedures/camera_get_svr_config_proc.rb
223
224
  - lib/alula/procedures/camera_get_wifi_proc.rb
224
225
  - lib/alula/procedures/camera_set_rec_config_proc.rb