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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9ea2f60debe6c88f5f1140e7f6a6d99c84506a5
|
4
|
+
data.tar.gz: a4c7e4cb451357320213c768e1b3f01c45f2dde3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b1b21879d3a6a64c6775413d3aaf64c3ab4a825c0054a17f8bcae1fcace9fceed9e27338f8fcf27ea8524c9efc8f2e31b6f91bec3c0697bdcb9b794da99887a
|
7
|
+
data.tar.gz: 48030cda02ea34fed30b46e4c67081b41fbd008ea6368fc629973349e9150465646582160b3dc3fe49b704e521ec894d30442a4a33297e681a1d2ce4857f8759
|
data/CHANGELOG.md
CHANGED
@@ -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
|