copperegg 0.6.2 → 0.6.3

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: 4091d2e26520972ae8388fef9e588c0d1d2589e6
4
- data.tar.gz: 3e5709ab6f6fbc6899015a55ad1cd9b311322c8b
3
+ metadata.gz: 3f161c275e111092679f3adda7db536b3d88b23e
4
+ data.tar.gz: 47406a15bb5f92b79efda125f63aee6a46242df4
5
5
  SHA512:
6
- metadata.gz: a3707dd557bca8419954965971d1c0054d90a397f64f9f75405ed7cdd7a339213571d15ff9813087db213414f7a56a3fa90480ce0fd0621c6982208a26a6421a
7
- data.tar.gz: 2664bc9d05598abbbf779a8bed7c3c1aa8ba581ce9f13fd291fac672a3d88b32c155555a3ab9a63fd642d9667253a22d16799697a8c3474d0e72bec8c842fcfd
6
+ metadata.gz: 32a12242085c5b49a5ba08c180b733cc21a22a9a1b6e1a528412413853f8745cf34fb8f560a29aa565b4ceb22cb78c5dc316b6fac51cb3da13b5f8605a87e2e9
7
+ data.tar.gz: ff16fdebc41239310c91eeaf3f9d77de421eb477879aa093334fae3dc9343424053b747ade8e3610322ae5cba7ceb3c29b78f9d5b4a3b96d18444e759c54a887
@@ -1,3 +1,8 @@
1
+ ## 0.6.3 (May 10, 2017)
2
+
3
+ - Added a parameter to detect dashboards created by database scripts to list them under databases tab on UI
4
+
5
+
1
6
  ## 0.6.2 (February 10, 2017)
2
7
 
3
8
  - Added service parameter to copperegg metric group API. Used for creating custom alerts according to the service being monitored (if service is installed from UI)
Binary file
@@ -5,10 +5,10 @@ module CopperEgg
5
5
  WIDGET_TYPES = %w(metric metric_list timeline)
6
6
  WIDGET_STYLES = %w(value timeline both list values)
7
7
  WIDGET_MATCHES = %w(select multi tag all)
8
-
8
+
9
9
  resource "dashboards"
10
10
 
11
- attr_accessor :name, :label, :data
11
+ attr_accessor :name, :label, :data, :is_database
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)
107
+ dashboard = new(name: name, is_database: (options[:is_database] || false))
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.2"
2
+ GEM_VERSION = "0.6.3"
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.2
4
+ version: 0.6.3
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-04-20 00:00:00.000000000 Z
11
+ date: 2017-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_pure
@@ -41,6 +41,7 @@ files:
41
41
  - "./LICENSE"
42
42
  - "./README.md"
43
43
  - "./Rakefile"
44
+ - "./copperegg-0.6.2.gem"
44
45
  - "./copperegg.gemspec"
45
46
  - "./lib/copperegg.rb"
46
47
  - "./lib/copperegg/api.rb"
@@ -87,6 +88,6 @@ signing_key:
87
88
  specification_version: 4
88
89
  summary: Library for using the CopperEgg REST API
89
90
  test_files:
90
- - test/metric_group_test.rb
91
91
  - test/custom_dashboard_test.rb
92
92
  - test/metric_sample_test.rb
93
+ - test/metric_group_test.rb