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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed6f37739b1b549ed60776672d2bc2ec420c74c7
4
- data.tar.gz: f50ab5d2667dfb7dc8e8c1f966e5734a74ffea49
3
+ metadata.gz: c327536b433f8d1a7ee301f62448bb85fa5b87bb
4
+ data.tar.gz: cb9ff0e4f9d98c5d84feea2cecb1f212442b67b6
5
5
  SHA512:
6
- metadata.gz: 6dcab643e6a69411fc8380b014634fc1325628ee37aa0c27ac28fdaba86cdd17613d4c14f4db0deee503abac2005098f895b6e8274d9fb94a443dbbec77ab48d
7
- data.tar.gz: 42cd0ce220d5fc7a89d3945657f2bf25867273b613927bc89bd723afa5b8a9aa4d801dc5bf6ea5fa9609a206afe291ee0847d64628de41bf06d970af28a42768
6
+ metadata.gz: f6b74e99e30807939dc72d9c1cc19c5c3cb45687cbcecc2c671036f88a635db49ef0e5417de604359d86ad9a852acaccecdacc81bbf890e67d2c7d9531ec6e9a
7
+ data.tar.gz: 4d935e6572aedfb577417dc3b4b5c63b3dac6d55e9d4364000276bb9468705f1865cc42ada0aafd10a6f136851f186d637701d1ccbd3168339f379a1d088a59a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## Grafana-rb 0.10.0 (April 3, 2017) ##
2
+
3
+ * Add optional `duration` param.
4
+
1
5
  ## Grafana-rb 0.9.0 (March 11, 2017) ##
2
6
 
3
7
  * Rename `run` command into `apply`.
@@ -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-30m", to: "now"},
289
+ time: {from: "now-#{duration}", to: "now"},
289
290
  refresh: "10s",
290
291
  rows: rows
291
292
  },
@@ -1,3 +1,3 @@
1
1
  module GrafanaRb
2
- VERSION = "0.9.0"
2
+ VERSION = "0.10.0"
3
3
  end
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.9.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-10 00:00:00.000000000 Z
11
+ date: 2017-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler