Skip to content

Commit cb0d67c

Browse files
authored
IWF-105: Add event logger (#480)
1 parent aa564e1 commit cb0d67c

File tree

14 files changed

+989
-25
lines changed

14 files changed

+989
-25
lines changed

gen/iwfidl/.openapi-generator/FILES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ docs/DefaultApi.md
1717
docs/EncodedObject.md
1818
docs/ErrorResponse.md
1919
docs/ErrorSubStatus.md
20+
docs/EventType.md
2021
docs/ExecuteApiFailurePolicy.md
2122
docs/ExecutingStateIdMode.md
2223
docs/HealthInfo.md
2324
docs/IDReusePolicy.md
2425
docs/InterStateChannelCommand.md
2526
docs/InterStateChannelPublishing.md
2627
docs/InterStateChannelResult.md
28+
docs/IwfEvent.md
2729
docs/KeyValue.md
2830
docs/PersistenceLoadingPolicy.md
2931
docs/PersistenceLoadingType.md
@@ -99,13 +101,15 @@ model_decider_trigger_type.go
99101
model_encoded_object.go
100102
model_error_response.go
101103
model_error_sub_status.go
104+
model_event_type.go
102105
model_execute_api_failure_policy.go
103106
model_executing_state_id_mode.go
104107
model_health_info.go
105108
model_id_reuse_policy.go
106109
model_inter_state_channel_command.go
107110
model_inter_state_channel_publishing.go
108111
model_inter_state_channel_result.go
112+
model_iwf_event.go
109113
model_key_value.go
110114
model_persistence_loading_policy.go
111115
model_persistence_loading_type.go

gen/iwfidl/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,15 @@ Class | Method | HTTP request | Description
112112
- [EncodedObject](docs/EncodedObject.md)
113113
- [ErrorResponse](docs/ErrorResponse.md)
114114
- [ErrorSubStatus](docs/ErrorSubStatus.md)
115+
- [EventType](docs/EventType.md)
115116
- [ExecuteApiFailurePolicy](docs/ExecuteApiFailurePolicy.md)
116117
- [ExecutingStateIdMode](docs/ExecutingStateIdMode.md)
117118
- [HealthInfo](docs/HealthInfo.md)
118119
- [IDReusePolicy](docs/IDReusePolicy.md)
119120
- [InterStateChannelCommand](docs/InterStateChannelCommand.md)
120121
- [InterStateChannelPublishing](docs/InterStateChannelPublishing.md)
121122
- [InterStateChannelResult](docs/InterStateChannelResult.md)
123+
- [IwfEvent](docs/IwfEvent.md)
122124
- [KeyValue](docs/KeyValue.md)
123125
- [PersistenceLoadingPolicy](docs/PersistenceLoadingPolicy.md)
124126
- [PersistenceLoadingType](docs/PersistenceLoadingType.md)

gen/iwfidl/api/openapi.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3303,3 +3303,45 @@ components:
33033303
- workflowRunId
33043304
- workflowStartedTimestamp
33053305
type: object
3306+
EventType:
3307+
enum:
3308+
- STATE_EXECUTE_ATTEMPT_FAIL_EVENT
3309+
- STATE_EXECUTE_ATTEMPT_SUCC_EVENT
3310+
- STATE_EXECUTE_EE_COMPLETE_EVENT
3311+
- STATE_EXECUTE_EE_FAIL_EVENT
3312+
- STATE_EXECUTE_EE_START_EVENT
3313+
- STATE_WAIT_UNTIL_ATTEMPT_FAIL_EVENT
3314+
- STATE_WAIT_UNTIL_ATTEMPT_SUCC_EVENT
3315+
- STATE_WAIT_UNTIL_EE_COMPLETE_EVENT
3316+
- STATE_WAIT_UNTIL_EE_FAIL_EVENT
3317+
- STATE_WAIT_UNTIL_EE_START_EVENT
3318+
- WORKFLOW_COMPLETE_EVENT
3319+
- WORKFLOW_FAIL_EVENT
3320+
- WORKFLOW_START_EVENT
3321+
type: string
3322+
IwfEvent:
3323+
properties:
3324+
eventType:
3325+
$ref: '#/components/schemas/EventType'
3326+
workflowType:
3327+
type: string
3328+
workflowId:
3329+
type: string
3330+
workflowRunId:
3331+
type: string
3332+
stateId:
3333+
type: string
3334+
stateExecutionId:
3335+
type: string
3336+
startTimestampInMs:
3337+
format: int64
3338+
type: integer
3339+
endTimestampInMs:
3340+
format: int64
3341+
type: integer
3342+
required:
3343+
- eventType
3344+
- workflowId
3345+
- workflowRunId
3346+
- workflowType
3347+
type: object

gen/iwfidl/docs/EventType.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# EventType
2+
3+
## Enum
4+
5+
6+
* `STATE_EXECUTE_ATTEMPT_FAIL_EVENT` (value: `"STATE_EXECUTE_ATTEMPT_FAIL_EVENT"`)
7+
8+
* `STATE_EXECUTE_ATTEMPT_SUCC_EVENT` (value: `"STATE_EXECUTE_ATTEMPT_SUCC_EVENT"`)
9+
10+
* `STATE_EXECUTE_EE_COMPLETE_EVENT` (value: `"STATE_EXECUTE_EE_COMPLETE_EVENT"`)
11+
12+
* `STATE_EXECUTE_EE_FAIL_EVENT` (value: `"STATE_EXECUTE_EE_FAIL_EVENT"`)
13+
14+
* `STATE_EXECUTE_EE_START_EVENT` (value: `"STATE_EXECUTE_EE_START_EVENT"`)
15+
16+
* `STATE_WAIT_UNTIL_ATTEMPT_FAIL_EVENT` (value: `"STATE_WAIT_UNTIL_ATTEMPT_FAIL_EVENT"`)
17+
18+
* `STATE_WAIT_UNTIL_ATTEMPT_SUCC_EVENT` (value: `"STATE_WAIT_UNTIL_ATTEMPT_SUCC_EVENT"`)
19+
20+
* `STATE_WAIT_UNTIL_EE_COMPLETE_EVENT` (value: `"STATE_WAIT_UNTIL_EE_COMPLETE_EVENT"`)
21+
22+
* `STATE_WAIT_UNTIL_EE_FAIL_EVENT` (value: `"STATE_WAIT_UNTIL_EE_FAIL_EVENT"`)
23+
24+
* `STATE_WAIT_UNTIL_EE_START_EVENT` (value: `"STATE_WAIT_UNTIL_EE_START_EVENT"`)
25+
26+
* `WORKFLOW_COMPLETE_EVENT` (value: `"WORKFLOW_COMPLETE_EVENT"`)
27+
28+
* `WORKFLOW_FAIL_EVENT` (value: `"WORKFLOW_FAIL_EVENT"`)
29+
30+
* `WORKFLOW_START_EVENT` (value: `"WORKFLOW_START_EVENT"`)
31+
32+
33+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
34+
35+

gen/iwfidl/docs/IwfEvent.md

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
# IwfEvent
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**EventType** | [**EventType**](EventType.md) | |
8+
**WorkflowType** | **string** | |
9+
**WorkflowId** | **string** | |
10+
**WorkflowRunId** | **string** | |
11+
**StateId** | Pointer to **string** | | [optional]
12+
**StateExecutionId** | Pointer to **string** | | [optional]
13+
**StartTimestampInMs** | Pointer to **int64** | | [optional]
14+
**EndTimestampInMs** | Pointer to **int64** | | [optional]
15+
16+
## Methods
17+
18+
### NewIwfEvent
19+
20+
`func NewIwfEvent(eventType EventType, workflowType string, workflowId string, workflowRunId string, ) *IwfEvent`
21+
22+
NewIwfEvent instantiates a new IwfEvent object
23+
This constructor will assign default values to properties that have it defined,
24+
and makes sure properties required by API are set, but the set of arguments
25+
will change when the set of required properties is changed
26+
27+
### NewIwfEventWithDefaults
28+
29+
`func NewIwfEventWithDefaults() *IwfEvent`
30+
31+
NewIwfEventWithDefaults instantiates a new IwfEvent object
32+
This constructor will only assign default values to properties that have it defined,
33+
but it doesn't guarantee that properties required by API are set
34+
35+
### GetEventType
36+
37+
`func (o *IwfEvent) GetEventType() EventType`
38+
39+
GetEventType returns the EventType field if non-nil, zero value otherwise.
40+
41+
### GetEventTypeOk
42+
43+
`func (o *IwfEvent) GetEventTypeOk() (*EventType, bool)`
44+
45+
GetEventTypeOk returns a tuple with the EventType field if it's non-nil, zero value otherwise
46+
and a boolean to check if the value has been set.
47+
48+
### SetEventType
49+
50+
`func (o *IwfEvent) SetEventType(v EventType)`
51+
52+
SetEventType sets EventType field to given value.
53+
54+
55+
### GetWorkflowType
56+
57+
`func (o *IwfEvent) GetWorkflowType() string`
58+
59+
GetWorkflowType returns the WorkflowType field if non-nil, zero value otherwise.
60+
61+
### GetWorkflowTypeOk
62+
63+
`func (o *IwfEvent) GetWorkflowTypeOk() (*string, bool)`
64+
65+
GetWorkflowTypeOk returns a tuple with the WorkflowType field if it's non-nil, zero value otherwise
66+
and a boolean to check if the value has been set.
67+
68+
### SetWorkflowType
69+
70+
`func (o *IwfEvent) SetWorkflowType(v string)`
71+
72+
SetWorkflowType sets WorkflowType field to given value.
73+
74+
75+
### GetWorkflowId
76+
77+
`func (o *IwfEvent) GetWorkflowId() string`
78+
79+
GetWorkflowId returns the WorkflowId field if non-nil, zero value otherwise.
80+
81+
### GetWorkflowIdOk
82+
83+
`func (o *IwfEvent) GetWorkflowIdOk() (*string, bool)`
84+
85+
GetWorkflowIdOk returns a tuple with the WorkflowId field if it's non-nil, zero value otherwise
86+
and a boolean to check if the value has been set.
87+
88+
### SetWorkflowId
89+
90+
`func (o *IwfEvent) SetWorkflowId(v string)`
91+
92+
SetWorkflowId sets WorkflowId field to given value.
93+
94+
95+
### GetWorkflowRunId
96+
97+
`func (o *IwfEvent) GetWorkflowRunId() string`
98+
99+
GetWorkflowRunId returns the WorkflowRunId field if non-nil, zero value otherwise.
100+
101+
### GetWorkflowRunIdOk
102+
103+
`func (o *IwfEvent) GetWorkflowRunIdOk() (*string, bool)`
104+
105+
GetWorkflowRunIdOk returns a tuple with the WorkflowRunId field if it's non-nil, zero value otherwise
106+
and a boolean to check if the value has been set.
107+
108+
### SetWorkflowRunId
109+
110+
`func (o *IwfEvent) SetWorkflowRunId(v string)`
111+
112+
SetWorkflowRunId sets WorkflowRunId field to given value.
113+
114+
115+
### GetStateId
116+
117+
`func (o *IwfEvent) GetStateId() string`
118+
119+
GetStateId returns the StateId field if non-nil, zero value otherwise.
120+
121+
### GetStateIdOk
122+
123+
`func (o *IwfEvent) GetStateIdOk() (*string, bool)`
124+
125+
GetStateIdOk returns a tuple with the StateId field if it's non-nil, zero value otherwise
126+
and a boolean to check if the value has been set.
127+
128+
### SetStateId
129+
130+
`func (o *IwfEvent) SetStateId(v string)`
131+
132+
SetStateId sets StateId field to given value.
133+
134+
### HasStateId
135+
136+
`func (o *IwfEvent) HasStateId() bool`
137+
138+
HasStateId returns a boolean if a field has been set.
139+
140+
### GetStateExecutionId
141+
142+
`func (o *IwfEvent) GetStateExecutionId() string`
143+
144+
GetStateExecutionId returns the StateExecutionId field if non-nil, zero value otherwise.
145+
146+
### GetStateExecutionIdOk
147+
148+
`func (o *IwfEvent) GetStateExecutionIdOk() (*string, bool)`
149+
150+
GetStateExecutionIdOk returns a tuple with the StateExecutionId field if it's non-nil, zero value otherwise
151+
and a boolean to check if the value has been set.
152+
153+
### SetStateExecutionId
154+
155+
`func (o *IwfEvent) SetStateExecutionId(v string)`
156+
157+
SetStateExecutionId sets StateExecutionId field to given value.
158+
159+
### HasStateExecutionId
160+
161+
`func (o *IwfEvent) HasStateExecutionId() bool`
162+
163+
HasStateExecutionId returns a boolean if a field has been set.
164+
165+
### GetStartTimestampInMs
166+
167+
`func (o *IwfEvent) GetStartTimestampInMs() int64`
168+
169+
GetStartTimestampInMs returns the StartTimestampInMs field if non-nil, zero value otherwise.
170+
171+
### GetStartTimestampInMsOk
172+
173+
`func (o *IwfEvent) GetStartTimestampInMsOk() (*int64, bool)`
174+
175+
GetStartTimestampInMsOk returns a tuple with the StartTimestampInMs field if it's non-nil, zero value otherwise
176+
and a boolean to check if the value has been set.
177+
178+
### SetStartTimestampInMs
179+
180+
`func (o *IwfEvent) SetStartTimestampInMs(v int64)`
181+
182+
SetStartTimestampInMs sets StartTimestampInMs field to given value.
183+
184+
### HasStartTimestampInMs
185+
186+
`func (o *IwfEvent) HasStartTimestampInMs() bool`
187+
188+
HasStartTimestampInMs returns a boolean if a field has been set.
189+
190+
### GetEndTimestampInMs
191+
192+
`func (o *IwfEvent) GetEndTimestampInMs() int64`
193+
194+
GetEndTimestampInMs returns the EndTimestampInMs field if non-nil, zero value otherwise.
195+
196+
### GetEndTimestampInMsOk
197+
198+
`func (o *IwfEvent) GetEndTimestampInMsOk() (*int64, bool)`
199+
200+
GetEndTimestampInMsOk returns a tuple with the EndTimestampInMs field if it's non-nil, zero value otherwise
201+
and a boolean to check if the value has been set.
202+
203+
### SetEndTimestampInMs
204+
205+
`func (o *IwfEvent) SetEndTimestampInMs(v int64)`
206+
207+
SetEndTimestampInMs sets EndTimestampInMs field to given value.
208+
209+
### HasEndTimestampInMs
210+
211+
`func (o *IwfEvent) HasEndTimestampInMs() bool`
212+
213+
HasEndTimestampInMs returns a boolean if a field has been set.
214+
215+
216+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
217+
218+

0 commit comments

Comments
 (0)