ruby-sfn-local 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sfn/execution_log.rb +8 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d655dc8f501ace970ed5a36bfe03ce609b520c0e5395a15e5ea9e39802da0a7
|
4
|
+
data.tar.gz: 876bb0c3e239c9f23935ab2220f3790dafb58d46c50893f5b90c492cd1a5a732
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7ac6a2a6e99d56fc0dff450504480bf3cc401176e6b09ce9bd00073214bf1d2dde2a33fc239e18adb702e415805113b6bfc78a1838d8afc9c125fbf7548a47e
|
7
|
+
data.tar.gz: d8d38c722b72679eb0cb85e8930f1c3dc773a2803881254db173865d09e0df62b840cd03679ff1b86eb93c502e99ac34e6996838a2956770d4f6d369f4b9f0e0
|
data/lib/sfn/execution_log.rb
CHANGED
@@ -33,12 +33,12 @@ module Sfn
|
|
33
33
|
state_name = parsed_event.state_name
|
34
34
|
|
35
35
|
unless state_name.nil?
|
36
|
-
profile[state_name] ||= { input
|
37
|
-
profile[state_name][
|
38
|
-
profile[state_name][
|
36
|
+
profile[state_name] ||= { 'input' => [], 'output' => [], 'parameters' => [] }
|
37
|
+
profile[state_name]['input'] << parsed_event.profile['input'] unless parsed_event.profile['input'].nil?
|
38
|
+
profile[state_name]['output'] << parsed_event.profile['output'] unless parsed_event.profile['output'].nil?
|
39
39
|
end
|
40
|
-
if !last_state_name.nil? && !parsed_event.profile[
|
41
|
-
profile[last_state_name][
|
40
|
+
if !last_state_name.nil? && !parsed_event.profile['parameters'].nil?
|
41
|
+
profile[last_state_name]['parameters'] << parsed_event.profile['parameters']
|
42
42
|
end
|
43
43
|
end
|
44
44
|
[output, profile]
|
@@ -66,9 +66,9 @@ module Sfn
|
|
66
66
|
|
67
67
|
def profile
|
68
68
|
{
|
69
|
-
input
|
70
|
-
output
|
71
|
-
parameters
|
69
|
+
'input' => try_parse(event.dig('stateEnteredEventDetails', 'input')),
|
70
|
+
'output' => try_parse(event.dig('stateExitedEventDetails', 'output')),
|
71
|
+
'parameters' => try_parse(event.dig('taskScheduledEventDetails', 'parameters'))
|
72
72
|
}.compact
|
73
73
|
end
|
74
74
|
|