copperegg 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f161c275e111092679f3adda7db536b3d88b23e
4
- data.tar.gz: 47406a15bb5f92b79efda125f63aee6a46242df4
3
+ metadata.gz: c5054bedeb67b89a9135876f83f23ea041f2f05b
4
+ data.tar.gz: 4b570e797e1c336d2556cc76d6a8aac079976bff
5
5
  SHA512:
6
- metadata.gz: 32a12242085c5b49a5ba08c180b733cc21a22a9a1b6e1a528412413853f8745cf34fb8f560a29aa565b4ceb22cb78c5dc316b6fac51cb3da13b5f8605a87e2e9
7
- data.tar.gz: ff16fdebc41239310c91eeaf3f9d77de421eb477879aa093334fae3dc9343424053b747ade8e3610322ae5cba7ceb3c29b78f9d5b4a3b96d18444e759c54a887
6
+ metadata.gz: 59409bae3cf86c65e1e9ef868a746a9b325395e682974057812d786f94d100d6b415ff19330f45db2a6de8d30323010f0b7ce539b63d66e60e78211068264c53
7
+ data.tar.gz: a1e10e6be0bf51e1894027e2f261df45db4f8aa60839d1e138a9fa4ee601ab539bb424f4e4918622639d68ede5153ad85475798afbf455ecfcd1209fe0dfdc9d
Binary file
@@ -8,7 +8,7 @@ module CopperEgg
8
8
 
9
9
  resource "dashboards"
10
10
 
11
- attr_accessor :name, :label, :data, :is_database
11
+ attr_accessor :name, :label, :data, :is_database, :service
12
12
 
13
13
  def load_attributes(attributes)
14
14
  @data = {"widgets" => {}, "order" => []}
@@ -104,7 +104,7 @@ module CopperEgg
104
104
  widget_style = widget_type == "metric" ? "both" : "values"
105
105
  name = options[:name] || "#{metric_group.label} Dashboard"
106
106
 
107
- dashboard = new(name: name, is_database: (options[:is_database] || false))
107
+ dashboard = new(name: name, is_database: (options[:is_database] || false), service: (options[:service] || ''))
108
108
  metrics.each.with_index do |metric, i|
109
109
  metric_data = [metric.position, metric.name]
110
110
  metric_data.push("rate") if metric.type == "ce_counter" || metric.type == "ce_counter_f"
@@ -1,3 +1,3 @@
1
1
  module CopperEgg
2
- GEM_VERSION = "0.6.3"
2
+ GEM_VERSION = "0.6.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: copperegg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Anderson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-15 00:00:00.000000000 Z
11
+ date: 2017-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_pure
@@ -42,6 +42,7 @@ files:
42
42
  - "./README.md"
43
43
  - "./Rakefile"
44
44
  - "./copperegg-0.6.2.gem"
45
+ - "./copperegg-0.6.3.gem"
45
46
  - "./copperegg.gemspec"
46
47
  - "./lib/copperegg.rb"
47
48
  - "./lib/copperegg/api.rb"