grafana-rb 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +4 -0
- data/lib/grafana-rb/cli.rb +7 -7
- data/lib/grafana-rb/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70ddf2dd82729cc72261c84cc240faec0b1c5767
|
4
|
+
data.tar.gz: 75fa610a07f3b3b43d4b96b5a6149d14f779de35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5a882c1ae0a9c787dc0adbe5b9fca99639f4811bd9ce9a3384889f4b2727794221ddc37064f2d649e1de693b206574a58aa25e5536a4363da24bfe6f54eaacc
|
7
|
+
data.tar.gz: 6948e993ab8e8c50d97d396968ced26020eee861375a9674288dffccc5fd8620471efd388422daba9ddf10b49a77abe01ebdfffe415dee39bde3322177adf158
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/grafana-rb/cli.rb
CHANGED
@@ -178,12 +178,12 @@ module GrafanaRb
|
|
178
178
|
def gen_panel(id, datasource_id, notif_id, desc)
|
179
179
|
if desc["type"] == "text"
|
180
180
|
{
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
181
|
+
content: desc["content"].to_s,
|
182
|
+
id: id,
|
183
|
+
mode: "markdown",
|
184
|
+
span: desc["span"] || 2,
|
185
|
+
title: desc["title"].to_s,
|
186
|
+
type: "text"
|
187
187
|
}
|
188
188
|
|
189
189
|
elsif desc["type"] == "memory"
|
@@ -278,7 +278,7 @@ module GrafanaRb
|
|
278
278
|
executionErrorState: "alerting",
|
279
279
|
frequency: "30s",
|
280
280
|
name: desc["expr"],
|
281
|
-
notifications: (notif_id ? [{
|
281
|
+
notifications: (notif_id ? [{id: notif_id}] : [])
|
282
282
|
}
|
283
283
|
}))))
|
284
284
|
|
data/lib/grafana-rb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grafana-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey Vakhov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.
|
101
|
+
rubygems_version: 2.2.2
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: Grafana dashboards tool
|