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 +4 -4
- data/CHANGELOG.md +5 -0
- data/copperegg-0.6.2.gem +0 -0
- data/lib/copperegg/custom_dashboard.rb +3 -3
- data/lib/copperegg/ver.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f161c275e111092679f3adda7db536b3d88b23e
|
4
|
+
data.tar.gz: 47406a15bb5f92b79efda125f63aee6a46242df4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32a12242085c5b49a5ba08c180b733cc21a22a9a1b6e1a528412413853f8745cf34fb8f560a29aa565b4ceb22cb78c5dc316b6fac51cb3da13b5f8605a87e2e9
|
7
|
+
data.tar.gz: ff16fdebc41239310c91eeaf3f9d77de421eb477879aa093334fae3dc9343424053b747ade8e3610322ae5cba7ceb3c29b78f9d5b4a3b96d18444e759c54a887
|
data/CHANGELOG.md
CHANGED
@@ -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)
|
data/copperegg-0.6.2.gem
ADDED
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
|
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"
|
data/lib/copperegg/ver.rb
CHANGED
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.
|
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-
|
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
|