cloudstack_stats 0.4.0 → 0.4.1

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: e9c84e386e53ef11f8cb75da2f779edb18f3bcff
4
- data.tar.gz: 6650c96957ed98ab9fb0ad78d112ddfeff5aed49
3
+ metadata.gz: a89df0e90202a75f6dafd0c416985e44fad4d99c
4
+ data.tar.gz: 9cbd336b8a8432e2f11de09ea456148cd0852b44
5
5
  SHA512:
6
- metadata.gz: 9f9e2d5611ebc92fc6637473af883842a0e4a29c396fffde8e3ec2e17c49719bdd3414a596288c46fd0b9b8029890803496a1033ae84bc6fc2d0fa642be32320
7
- data.tar.gz: 9196ef85ab3a8349bf4f81e9d628f8d582c158fb959fad516fc4d47530ebfad6404a1d77a54705421d992ebd5f3b8880a649c62566e710076d263362f21a21dd
6
+ metadata.gz: c227ae47fe0c0ffb39d842f7175586c40cf0b97b5bf805cf5a75894da50f6bff03fe7d67555604de0c59d62d0e8d2dfce3ae089c6cd67fe2520860d0df52d2fc
7
+ data.tar.gz: 7d249dcb514a34896f3a02d68869c9a6d2cedd5a97d8ed37acf98db3a0a092d29efc182c18812d806d7db350b2e10fec4a95365d754253d904c8a2c9ede0665b
@@ -21,7 +21,7 @@ module CloudstackStats
21
21
  @user = opts[:influx_user]
22
22
  @password = opts[:influx_password]
23
23
  @debug = opts[:debug]
24
- @total = {type: "total", stats: [{"name" => "_total_"}]}
24
+ @total = {type: "total", stats: [{}]}
25
25
  end
26
26
 
27
27
  def write(stats, total = true)
@@ -52,6 +52,7 @@ module CloudstackStats
52
52
  yield(stat, response) if block_given?
53
53
  end
54
54
  if total
55
+ @total[:stats][0]['name'] = type
55
56
  write(@total, total = false) {|stat, response| yield(stat, response)}
56
57
  end
57
58
  end
@@ -1,3 +1,3 @@
1
1
  module CloudstackStats
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstack_stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - niwo