doggy 2.0.41 → 2.0.42

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: f0b239aecde57aa2452b412bf4e1a23004d1105b
4
- data.tar.gz: ced94d76dd3895a4b244695b1ed98d97a1e74571
3
+ metadata.gz: acd2bd44733b75a52aa9e5b1a5fb23e432c9a808
4
+ data.tar.gz: cf4daaca16048b3ee1845997e22446bb8c395e75
5
5
  SHA512:
6
- metadata.gz: 5ac1501e4b2b701deb5a427c2256d6865c1c397cd756b7494efd0851a473627367a81f3345ffc729de76e45529291c61c0b4a810b49f01dab3487f5108dcb99f
7
- data.tar.gz: 1863fb5222ca325b56f0fb4a461b1f844803d62ec23c0fee036738ab09414f2ea3e3948fa65f0c0e00bd850addd60791f9b8696ace8d8f79f9061fa1dc354f17
6
+ metadata.gz: cd12ae555cd716b121e02f5d150e2d04f5fa48f6d2870f5ec82c4327f43b9f626bd807cf5679ecfc5ed5314c6b29163e9a2b0bb6c4f3cd9a40d9de5f45cf88e4
7
+ data.tar.gz: ba102e7b2d6c75f7da242bc306629e24f780d80a8ec6783c4cba780797adc012640c9e1294c547a29f8518392fdad8d07b3ebb3480a73f33934c48ac09938eba
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- doggy (2.0.41)
4
+ doggy (2.0.42)
5
5
  activesupport (~> 4)
6
6
  json (~> 1.8.3)
7
7
  parallel (~> 1.6.1)
@@ -12,7 +12,7 @@ PATH
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- activesupport (4.2.9)
15
+ activesupport (4.2.10)
16
16
  i18n (~> 0.7)
17
17
  minitest (~> 5.1)
18
18
  thread_safe (~> 0.3, >= 0.3.4)
@@ -25,13 +25,15 @@ GEM
25
25
  thread_safe (~> 0.3, >= 0.3.1)
26
26
  coercible (1.0.0)
27
27
  descendants_tracker (~> 0.0.1)
28
+ concurrent-ruby (1.0.5)
28
29
  crack (0.4.3)
29
30
  safe_yaml (~> 1.0.0)
30
31
  descendants_tracker (0.0.4)
31
32
  thread_safe (~> 0.3, >= 0.3.1)
32
33
  equalizer (0.0.11)
33
34
  hashdiff (0.2.3)
34
- i18n (0.8.6)
35
+ i18n (0.9.3)
36
+ concurrent-ruby (~> 1.0)
35
37
  ice_nine (0.11.2)
36
38
  json (1.8.6)
37
39
  metaclass (0.0.4)
@@ -45,7 +47,7 @@ GEM
45
47
  safe_yaml (1.0.4)
46
48
  thor (0.19.4)
47
49
  thread_safe (0.3.6)
48
- tzinfo (1.2.3)
50
+ tzinfo (1.2.4)
49
51
  thread_safe (~> 0.1)
50
52
  virtus (1.0.5)
51
53
  axiom-types (~> 0.1)
@@ -69,4 +71,4 @@ DEPENDENCIES
69
71
  webmock
70
72
 
71
73
  BUNDLED WITH
72
- 1.15.0
74
+ 1.16.0
data/README.md CHANGED
@@ -28,6 +28,8 @@ To authenticate, you need to set API and APP keys for your DataDog account.
28
28
 
29
29
  Export `DATADOG_API_KEY` and `DATADOG_APP_KEY` environment variables and `doggy` will catch them up automatically.
30
30
 
31
+ Optional: You can set `DATADOG_BASE_HUMAN_URL` environment variable if your organization uses a custom domain. This will change the urls given to users.
32
+
31
33
  #### ejson
32
34
 
33
35
  Set up `ejson` by putting `secrets.ejson` in your root object store.
@@ -43,6 +45,8 @@ If you're feeling adventurous, just put plaintext `secrets.json` in your root ob
43
45
  }
44
46
  ```
45
47
 
48
+ Optional: Add `datadog_base_human_url` if your organization uses a custom domain.
49
+
46
50
  ## Usage
47
51
 
48
52
  ```bash
@@ -54,6 +54,10 @@ module Doggy
54
54
  end
55
55
  end
56
56
 
57
+ def base_human_url
58
+ ENV['DATADOG_BASE_HUMAN_URL'] || secrets['datadog_base_human_url'] || 'app.datadoghq.com'
59
+ end
60
+
57
61
  def api_key
58
62
  ENV['DATADOG_API_KEY'] || secrets['datadog_api_key']
59
63
  end
@@ -42,7 +42,7 @@ module Doggy
42
42
  end
43
43
 
44
44
  def human_url
45
- "https://app.datadoghq.com/dash/#{ id }"
45
+ "https://#{Doggy.base_human_url}/dash/#{ id }"
46
46
  end
47
47
 
48
48
  # Dashboards don't have a direct edit URL
@@ -87,11 +87,11 @@ module Doggy
87
87
  end
88
88
 
89
89
  def human_url
90
- "https://app.datadoghq.com/monitors##{ id }"
90
+ "https://#{Doggy.base_human_url}/monitors##{ id }"
91
91
  end
92
92
 
93
93
  def human_edit_url
94
- "https://app.datadoghq.com/monitors##{ id }/edit"
94
+ "https://#{Doggy.base_human_url}/monitors##{ id }/edit"
95
95
  end
96
96
 
97
97
  def to_h
@@ -43,7 +43,7 @@ module Doggy
43
43
  end
44
44
 
45
45
  def human_url
46
- "https://app.datadoghq.com/screen/#{ id }"
46
+ "https://#{Doggy.base_human_url}/screen/#{ id }"
47
47
  end
48
48
 
49
49
  # Screens don't have a direct edit URL
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Doggy
4
- VERSION = '2.0.41'
4
+ VERSION = '2.0.42'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doggy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.41
4
+ version: 2.0.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vlad Gorodetsky
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-09-11 00:00:00.000000000 Z
12
+ date: 2018-01-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  version: '0'
194
194
  requirements: []
195
195
  rubyforge_project:
196
- rubygems_version: 2.6.13
196
+ rubygems_version: 2.6.14
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: Syncs DataDog dashboards, alerts, screenboards, and monitors.