fog-sakuracloud 1.5.1 → 1.5.2

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
  SHA1:
3
- metadata.gz: c18a6120741137db78a06d626e5a28d3703cdf1d
4
- data.tar.gz: 025fdbc626abf29dcfb0041c61eca9644dd416b2
3
+ metadata.gz: e9ea2f60debe6c88f5f1140e7f6a6d99c84506a5
4
+ data.tar.gz: a4c7e4cb451357320213c768e1b3f01c45f2dde3
5
5
  SHA512:
6
- metadata.gz: 6993a0c02fc14eefbaada19360f0a7231a05e20540c9c8b73c6ae660c5a9441ffae15cd766b60065964d9cf49c771718bbdc6b0e21b1c450cee28214a8907740
7
- data.tar.gz: af89f6fe9929c4165d3612ef95e7e7936b6d663ebc19a3cd5680c12cab0a8e6b1ccd6fa01483c80371b5d63fe67bf9e81497fc77bcff16f3ad5339bb272c07bc
6
+ metadata.gz: 1b1b21879d3a6a64c6775413d3aaf64c3ab4a825c0054a17f8bcae1fcace9fceed9e27338f8fcf27ea8524c9efc8f2e31b6f91bec3c0697bdcb9b794da99887a
7
+ data.tar.gz: 48030cda02ea34fed30b46e4c67081b41fbd008ea6368fc629973349e9150465646582160b3dc3fe49b704e521ec894d30442a4a33297e681a1d2ce4857f8759
@@ -1,5 +1,9 @@
1
1
  # Changelog of fog-sakuracloud
2
2
 
3
+ ## v1.5.2
4
+
5
+ - Feature: Add filter params Start and End to collect_monitor_router.
6
+
3
7
  ## v1.5.1
4
8
 
5
9
  - Feature: Add monitor to Router model PR #20 HT: @miyukki
@@ -32,8 +32,8 @@ module Fog
32
32
  true
33
33
  end
34
34
 
35
- def collect_monitor
36
- service.collect_monitor_router(identity).body["Data"]
35
+ def collect_monitor(start_time = nil, end_time = nil)
36
+ service.collect_monitor_router(identity, start_time, end_time).body["Data"]
37
37
  end
38
38
 
39
39
  def router_available?(network, router_id)
@@ -4,14 +4,18 @@ module Fog
4
4
  module Network
5
5
  class SakuraCloud
6
6
  class Real
7
- def collect_monitor_router( id )
7
+ def collect_monitor_router( id ,start_time = nil, end_time = nil)
8
+ filter = {}
9
+ filter['Start'] = start_time if start_time
10
+ filter['End'] = end_time if end_time
8
11
  request(
9
12
  :headers => {
10
13
  'Authorization' => "Basic #{@auth_encode}"
11
14
  },
12
15
  :expects => [200],
13
16
  :method => 'GET',
14
- :path => "#{Fog::SakuraCloud.build_endpoint(@api_zone)}/internet/#{id}/monitor"
17
+ :path => "#{Fog::SakuraCloud.build_endpoint(@api_zone)}/internet/#{id}/monitor",
18
+ :query => URI.encode(Fog::JSON.encode(filter))
15
19
  )
16
20
  end
17
21
  end # Real
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Sakuracloud
3
- VERSION = "1.5.1"
3
+ VERSION = "1.5.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-sakuracloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sawanoboly