grafana-rb 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/grafana-rb/cli.rb +2 -1
- data/lib/grafana-rb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c327536b433f8d1a7ee301f62448bb85fa5b87bb
|
4
|
+
data.tar.gz: cb9ff0e4f9d98c5d84feea2cecb1f212442b67b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6b74e99e30807939dc72d9c1cc19c5c3cb45687cbcecc2c671036f88a635db49ef0e5417de604359d86ad9a852acaccecdacc81bbf890e67d2c7d9531ec6e9a
|
7
|
+
data.tar.gz: 4d935e6572aedfb577417dc3b4b5c63b3dac6d55e9d4364000276bb9468705f1865cc42ada0aafd10a6f136851f186d637701d1ccbd3168339f379a1d088a59a
|
data/CHANGELOG.md
CHANGED
data/lib/grafana-rb/cli.rb
CHANGED
@@ -267,6 +267,7 @@ module GrafanaRb
|
|
267
267
|
|
268
268
|
def create_or_update_dashboard(config)
|
269
269
|
editable = config.delete("editable") { true }
|
270
|
+
duration = config.delete("duration") { "30m" }
|
270
271
|
name = config.delete("name")
|
271
272
|
puts "create/update dashboard '#{name}'"
|
272
273
|
|
@@ -285,7 +286,7 @@ module GrafanaRb
|
|
285
286
|
title: name,
|
286
287
|
tags: [TAG],
|
287
288
|
editable: editable,
|
288
|
-
time: {from: "now
|
289
|
+
time: {from: "now-#{duration}", to: "now"},
|
289
290
|
refresh: "10s",
|
290
291
|
rows: rows
|
291
292
|
},
|
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.10.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-03
|
11
|
+
date: 2017-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|