kennel 1.44.1 → 1.44.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Readme.md +4 -20
- data/lib/kennel/version.rb +1 -1
- data/template/Readme.md +4 -20
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a082a7fecbd48644ecf42e77031067157da065702cd9e25a2016e51abdd95ead
|
4
|
+
data.tar.gz: 37e40cf691a4e39568b4e1025139d3dd61b48f3cfa142463c3b325cbe5133571
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f881bb79cfcd83e9955a9d9c3571d956d77ecd2fa7d46c2155438cc424e62ddc88ccb42eaf1c7be113abaab1a544ba2fc152078e1fe7938d4f7f0d6325ca031
|
7
|
+
data.tar.gz: 8790990af82edc96f91ca68b901dede5a6e4515ef7675c5a86d61ff0e5210dfe62a873eeb9803a8badec0eecdf4dfa6a3cdde2f445a21774e901a5eed18587e6
|
data/Readme.md
CHANGED
@@ -105,9 +105,9 @@ end
|
|
105
105
|
- datadog is updated by travis
|
106
106
|
|
107
107
|
### Adding a new dashboard
|
108
|
-
- go to [datadog dashboard UI](https://app.datadoghq.com/
|
108
|
+
- go to [datadog dashboard UI](https://app.datadoghq.com/dashboar/lists) and click on _New Dashboard_ to create a dashboard
|
109
109
|
- get the `id` from the url
|
110
|
-
- `RESOURCE=
|
110
|
+
- `RESOURCE=dashboard ID=12345 bundle exec rake kennel:import`
|
111
111
|
- see below
|
112
112
|
|
113
113
|
### Updating an existing dashboard
|
@@ -119,13 +119,14 @@ end
|
|
119
119
|
team: -> { Teams::MyTeam.new }, # use existing team or create new one in teams/
|
120
120
|
parts: -> {
|
121
121
|
[
|
122
|
-
Kennel::Models::
|
122
|
+
Kennel::Models::Dashboard.new(
|
123
123
|
self,
|
124
124
|
id: -> { 123457 }, # id from datadog url, not needed when creating a new dashboard
|
125
125
|
title: -> { "My Dashboard" },
|
126
126
|
description: -> { "Overview of foobar" },
|
127
127
|
template_variables: -> { ["environment"] }, # see https://docs.datadoghq.com/api/?lang=ruby#timeboards
|
128
128
|
kennel_id: -> { "overview-dashboard" }, # make up a unique name
|
129
|
+
layout_type: -> { "ordered" },
|
129
130
|
definitions: -> {
|
130
131
|
[ # An array or arrays, each one is a graph in the dashboard, alternatively a hash for finer control
|
131
132
|
[
|
@@ -148,23 +149,6 @@ end
|
|
148
149
|
end
|
149
150
|
```
|
150
151
|
|
151
|
-
### Adding a new screenboard
|
152
|
-
- similar to `dash.rb`
|
153
|
-
- add to `parts:` list
|
154
|
-
```Ruby
|
155
|
-
Kennel::Models::Screen.new(
|
156
|
-
self,
|
157
|
-
board_title: -> { "test-board" },
|
158
|
-
kennel_id: -> { "test-screen" },
|
159
|
-
widgets: -> {
|
160
|
-
[
|
161
|
-
{text: "Hello World", height: 6, width: 24, x: 0, y: 0, type: "free_text"},
|
162
|
-
{title_text: "CPU", height: 12, width: 36, timeframe: "1mo", x: 0, y: 6, type: "timeseries", tile_def: {viz: "timeseries", requests: [{q: "avg:system.cpu.user{*}", type: "line"}]}}
|
163
|
-
]
|
164
|
-
}
|
165
|
-
)
|
166
|
-
```
|
167
|
-
|
168
152
|
### Skipping validations
|
169
153
|
|
170
154
|
Some validations might be too strict for your usecase or just wrong, please [open an issue](https://github.com/grosser/kennel/issues) and
|
data/lib/kennel/version.rb
CHANGED
data/template/Readme.md
CHANGED
@@ -87,9 +87,9 @@ end
|
|
87
87
|
- datadog is updated by travis
|
88
88
|
|
89
89
|
### Adding a new dashboard
|
90
|
-
- go to [datadog dashboard UI](https://app.datadoghq.com/
|
90
|
+
- go to [datadog dashboard UI](https://app.datadoghq.com/dashboar/lists) and click on _New Dashboard_ to create a dashboard
|
91
91
|
- get the `id` from the url
|
92
|
-
- `RESOURCE=
|
92
|
+
- `RESOURCE=dashboard ID=12345 bundle exec rake kennel:import`
|
93
93
|
- see below
|
94
94
|
|
95
95
|
### Updating an existing dashboard
|
@@ -101,13 +101,14 @@ end
|
|
101
101
|
team: -> { Teams::MyTeam.new }, # use existing team or create new one in teams/
|
102
102
|
parts: -> {
|
103
103
|
[
|
104
|
-
Kennel::Models::
|
104
|
+
Kennel::Models::Dashboard.new(
|
105
105
|
self,
|
106
106
|
id: -> { 123457 }, # id from datadog url, not needed when creating a new dashboard
|
107
107
|
title: -> { "My Dashboard" },
|
108
108
|
description: -> { "Overview of foobar" },
|
109
109
|
template_variables: -> { ["environment"] }, # see https://docs.datadoghq.com/api/?lang=ruby#timeboards
|
110
110
|
kennel_id: -> { "overview-dashboard" }, # make up a unique name
|
111
|
+
layout_type: -> { "ordered" },
|
111
112
|
definitions: -> {
|
112
113
|
[ # An array or arrays, each one is a graph in the dashboard, alternatively a hash for finer control
|
113
114
|
[
|
@@ -130,23 +131,6 @@ end
|
|
130
131
|
end
|
131
132
|
```
|
132
133
|
|
133
|
-
### Adding a new screenboard
|
134
|
-
- similar to `dash.rb`
|
135
|
-
- add to `parts:` list
|
136
|
-
```Ruby
|
137
|
-
Kennel::Models::Screen.new(
|
138
|
-
self,
|
139
|
-
board_title: -> { "test-board" },
|
140
|
-
kennel_id: -> { "test-screen" },
|
141
|
-
widgets: -> {
|
142
|
-
[
|
143
|
-
{text: "Hello World", height: 6, width: 24, x: 0, y: 0, type: "free_text"},
|
144
|
-
{title_text: "CPU", height: 12, width: 36, timeframe: "1mo", x: 0, y: 6, type: "timeseries", tile_def: {viz: "timeseries", requests: [{q: "avg:system.cpu.user{*}", type: "line"}]}}
|
145
|
-
]
|
146
|
-
}
|
147
|
-
)
|
148
|
-
```
|
149
|
-
|
150
134
|
### Skipping validations
|
151
135
|
|
152
136
|
Some validations might be too strict for your usecase or just wrong, please [open an issue](https://github.com/grosser/kennel/issues) and
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kennel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.44.
|
4
|
+
version: 1.44.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|