kapacitor-ruby 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kapacitor/client.rb +2 -2
- data/lib/kapacitor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe64e9b12e47b683901612276caeab8ddffa1955
|
4
|
+
data.tar.gz: b01e0fd07faa43b4c4069fb1f26ddd34ca09fd38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b20705bffe8209e904a5a5a6bc9e63524885e97a680254510b71bd1c53dae86faf2ac6124415f60cf8d539a16b7ae4417534f8c6e2ffb86e8e1a9ff99e1279e7
|
7
|
+
data.tar.gz: 3002383fcbeb14412fc25c5ed6f5191515e9610856c3b3829ad97da9b974f9d9eceb75e18db7cf9123db8381460d6bb3d7332ce178646ec3d20d52bf81a74e42
|
data/lib/kapacitor/client.rb
CHANGED
@@ -56,7 +56,7 @@ module Kapacitor
|
|
56
56
|
}
|
57
57
|
|
58
58
|
if template_id
|
59
|
-
req['
|
59
|
+
req['template-id'] = template_id
|
60
60
|
else
|
61
61
|
req['type'] = type
|
62
62
|
req['script'] = script
|
@@ -69,7 +69,7 @@ module Kapacitor
|
|
69
69
|
|
70
70
|
def update_task(id:, template_id: nil, type: nil, dbrps: nil, script: nil, status: nil, vars: nil)
|
71
71
|
req = {}
|
72
|
-
req['
|
72
|
+
req['template-id'] = template_id if template_id
|
73
73
|
req['type'] = type if type
|
74
74
|
req['dbrps'] = dbrps if dbrps
|
75
75
|
req['script'] = script if script
|
data/lib/kapacitor/version.rb
CHANGED