monosasi 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -0
- data/lib/monosasi/driver.rb +4 -0
- data/lib/monosasi/dsl/context/rule/target.rb +4 -0
- data/lib/monosasi/dsl/converter.rb +6 -0
- data/lib/monosasi/version.rb +1 -1
- 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: 59fbb459c9fe2e563a97130ffb73f96668e41efa01219070969d259e2882534a
|
4
|
+
data.tar.gz: 71240ada08e3ce67acb26c960d72379519f20ede50db4b05511c8a1fb5a092c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0655ede007497ebd8918e6bccc19a6a7c00a4afc95f8f5470f9dde3a258c885a527555f5bd97388dc81b537ff0d31f98450d0510a13903af437522c2f0ff3c5b
|
7
|
+
data.tar.gz: 9ae5121d7861b63c1458e107c9210ad5a169b68b2b0ed389a976cd7c7c99d76952cb8b42a032f20870450ee47715f04279885b5dddbfd0f5b4d23e60d6fdeb3b
|
data/README.md
CHANGED
@@ -119,6 +119,21 @@ rule "batch-scheduled-task" do
|
|
119
119
|
})
|
120
120
|
end
|
121
121
|
end
|
122
|
+
|
123
|
+
rule "hako-console-ScaleSpotFleetByReservation-ap-northeast-1" do
|
124
|
+
state "ENABLED"
|
125
|
+
schedule_expression "rate(30 minutes)"
|
126
|
+
target "zzzzzzzzzz-zzzzzzz-zzzzzz" do
|
127
|
+
arn 'arn:aws:sqs:ap-northeast-1:33333333333:monosasi-events'
|
128
|
+
input_transformer(
|
129
|
+
input_paths_map: {
|
130
|
+
'id' => '$.id',
|
131
|
+
'time' => '$.time',
|
132
|
+
},
|
133
|
+
input_template: '{"id": <id>, "time": <time>, "message": "hello, world"}',
|
134
|
+
)
|
135
|
+
end
|
136
|
+
end
|
122
137
|
```
|
123
138
|
|
124
139
|
## Similar tools
|
data/lib/monosasi/driver.rb
CHANGED
@@ -101,6 +101,10 @@ class Monosasi::Driver
|
|
101
101
|
params_target[:input_path] = target[:input_path]
|
102
102
|
end
|
103
103
|
|
104
|
+
if target[:input_transformer]
|
105
|
+
params_target[:input_transformer] = target[:input_transformer]
|
106
|
+
end
|
107
|
+
|
104
108
|
if target[:role_arn]
|
105
109
|
params_target[:role_arn] = target[:role_arn]
|
106
110
|
end
|
data/lib/monosasi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: monosasi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- winebarrel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|