Skip to content

Commit

Permalink
Process log API format changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
vhadianto committed Aug 1, 2024
1 parent b21b7bf commit add2cda
Show file tree
Hide file tree
Showing 7 changed files with 610 additions and 35 deletions.
4 changes: 2 additions & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ client.go
configuration.go
docs/CmdPipeline.md
docs/CmdTrigger.md
docs/EventEventLogImpl.md
docs/ExecutionExecution.md
docs/ExecutionPipelineExecution.md
docs/ExecutionStepExecution.md
Expand Down Expand Up @@ -59,7 +60,6 @@ docs/PipelineApi.md
docs/PipelineExecutionResponse.md
docs/Process.md
docs/ProcessApi.md
docs/ProcessEventLog.md
docs/Require.md
docs/TriggerApi.md
docs/TriggerExecutionResponse.md
Expand All @@ -69,6 +69,7 @@ go.mod
go.sum
model_cmd_pipeline.go
model_cmd_trigger.go
model_event_event_log_impl.go
model_execution_execution.go
model_execution_pipeline_execution.go
model_execution_step_execution.go
Expand Down Expand Up @@ -110,7 +111,6 @@ model_perr_error_detail_model.go
model_perr_error_model.go
model_pipeline_execution_response.go
model_process.go
model_process_event_log.go
model_require.go
model_trigger_execution_response.go
response.go
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ Class | Method | HTTP request | Description

- [CmdPipeline](docs/CmdPipeline.md)
- [CmdTrigger](docs/CmdTrigger.md)
- [EventEventLogImpl](docs/EventEventLogImpl.md)
- [ExecutionExecution](docs/ExecutionExecution.md)
- [ExecutionPipelineExecution](docs/ExecutionPipelineExecution.md)
- [ExecutionStepExecution](docs/ExecutionStepExecution.md)
Expand Down Expand Up @@ -144,7 +145,6 @@ Class | Method | HTTP request | Description
- [PerrErrorModel](docs/PerrErrorModel.md)
- [PipelineExecutionResponse](docs/PipelineExecutionResponse.md)
- [Process](docs/Process.md)
- [ProcessEventLog](docs/ProcessEventLog.md)
- [Require](docs/Require.md)
- [TriggerExecutionResponse](docs/TriggerExecutionResponse.md)

Expand Down
62 changes: 40 additions & 22 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1873,16 +1873,24 @@ components:
example:
next_token: next_token
items:
- event_type: event_type
payload: payload
ts: ts
- event_type: event_type
payload: payload
ts: ts
- process_id: process_id
struct_version: struct_version
level: level
created_at: created_at
detail: "{}"
id: id
message: message
- process_id: process_id
struct_version: struct_version
level: level
created_at: created_at
detail: "{}"
id: id
message: message
properties:
items:
items:
$ref: '#/components/schemas/ProcessEventLog'
$ref: '#/components/schemas/event.EventLogImpl'
type: array
next_token:
type: string
Expand Down Expand Up @@ -2115,21 +2123,6 @@ components:
status:
type: string
type: object
ProcessEventLog:
example:
event_type: event_type
payload: payload
ts: ts
properties:
event_type:
type: string
payload:
description: "Setting the type as string for now, as the CLI need to print\
\ the payload"
type: string
ts:
type: string
type: object
Require:
example:
mods:
Expand Down Expand Up @@ -2164,6 +2157,31 @@ components:
additionalProperties: true
type: object
type: object
event.EventLogImpl:
example:
process_id: process_id
struct_version: struct_version
level: level
created_at: created_at
detail: "{}"
id: id
message: message
properties:
created_at:
type: string
detail:
type: object
id:
type: string
level:
type: string
message:
type: string
process_id:
type: string
struct_version:
type: string
type: object
execution.Execution:
example:
pipeline_executions:
Expand Down
212 changes: 212 additions & 0 deletions docs/EventEventLogImpl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
# EventEventLogImpl

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**CreatedAt** | Pointer to **string** | | [optional]
**Detail** | Pointer to **map[string]interface{}** | | [optional]
**Id** | Pointer to **string** | | [optional]
**Level** | Pointer to **string** | | [optional]
**Message** | Pointer to **string** | | [optional]
**ProcessId** | Pointer to **string** | | [optional]
**StructVersion** | Pointer to **string** | | [optional]

## Methods

### NewEventEventLogImpl

`func NewEventEventLogImpl() *EventEventLogImpl`

NewEventEventLogImpl instantiates a new EventEventLogImpl object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed

### NewEventEventLogImplWithDefaults

`func NewEventEventLogImplWithDefaults() *EventEventLogImpl`

NewEventEventLogImplWithDefaults instantiates a new EventEventLogImpl object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set

### GetCreatedAt

`func (o *EventEventLogImpl) GetCreatedAt() string`

GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.

### GetCreatedAtOk

`func (o *EventEventLogImpl) GetCreatedAtOk() (*string, bool)`

GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetCreatedAt

`func (o *EventEventLogImpl) SetCreatedAt(v string)`

SetCreatedAt sets CreatedAt field to given value.

### HasCreatedAt

`func (o *EventEventLogImpl) HasCreatedAt() bool`

HasCreatedAt returns a boolean if a field has been set.

### GetDetail

`func (o *EventEventLogImpl) GetDetail() map[string]interface{}`

GetDetail returns the Detail field if non-nil, zero value otherwise.

### GetDetailOk

`func (o *EventEventLogImpl) GetDetailOk() (*map[string]interface{}, bool)`

GetDetailOk returns a tuple with the Detail field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetDetail

`func (o *EventEventLogImpl) SetDetail(v map[string]interface{})`

SetDetail sets Detail field to given value.

### HasDetail

`func (o *EventEventLogImpl) HasDetail() bool`

HasDetail returns a boolean if a field has been set.

### GetId

`func (o *EventEventLogImpl) GetId() string`

GetId returns the Id field if non-nil, zero value otherwise.

### GetIdOk

`func (o *EventEventLogImpl) GetIdOk() (*string, bool)`

GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetId

`func (o *EventEventLogImpl) SetId(v string)`

SetId sets Id field to given value.

### HasId

`func (o *EventEventLogImpl) HasId() bool`

HasId returns a boolean if a field has been set.

### GetLevel

`func (o *EventEventLogImpl) GetLevel() string`

GetLevel returns the Level field if non-nil, zero value otherwise.

### GetLevelOk

`func (o *EventEventLogImpl) GetLevelOk() (*string, bool)`

GetLevelOk returns a tuple with the Level field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetLevel

`func (o *EventEventLogImpl) SetLevel(v string)`

SetLevel sets Level field to given value.

### HasLevel

`func (o *EventEventLogImpl) HasLevel() bool`

HasLevel returns a boolean if a field has been set.

### GetMessage

`func (o *EventEventLogImpl) GetMessage() string`

GetMessage returns the Message field if non-nil, zero value otherwise.

### GetMessageOk

`func (o *EventEventLogImpl) GetMessageOk() (*string, bool)`

GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetMessage

`func (o *EventEventLogImpl) SetMessage(v string)`

SetMessage sets Message field to given value.

### HasMessage

`func (o *EventEventLogImpl) HasMessage() bool`

HasMessage returns a boolean if a field has been set.

### GetProcessId

`func (o *EventEventLogImpl) GetProcessId() string`

GetProcessId returns the ProcessId field if non-nil, zero value otherwise.

### GetProcessIdOk

`func (o *EventEventLogImpl) GetProcessIdOk() (*string, bool)`

GetProcessIdOk returns a tuple with the ProcessId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetProcessId

`func (o *EventEventLogImpl) SetProcessId(v string)`

SetProcessId sets ProcessId field to given value.

### HasProcessId

`func (o *EventEventLogImpl) HasProcessId() bool`

HasProcessId returns a boolean if a field has been set.

### GetStructVersion

`func (o *EventEventLogImpl) GetStructVersion() string`

GetStructVersion returns the StructVersion field if non-nil, zero value otherwise.

### GetStructVersionOk

`func (o *EventEventLogImpl) GetStructVersionOk() (*string, bool)`

GetStructVersionOk returns a tuple with the StructVersion field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetStructVersion

`func (o *EventEventLogImpl) SetStructVersion(v string)`

SetStructVersion sets StructVersion field to given value.

### HasStructVersion

`func (o *EventEventLogImpl) HasStructVersion() bool`

HasStructVersion returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


8 changes: 4 additions & 4 deletions docs/ListProcessLogJSONResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Items** | Pointer to [**[]ProcessEventLog**](ProcessEventLog.md) | | [optional]
**Items** | Pointer to [**[]EventEventLogImpl**](EventEventLogImpl.md) | | [optional]
**NextToken** | Pointer to **string** | | [optional]

## Methods
Expand All @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set

### GetItems

`func (o *ListProcessLogJSONResponse) GetItems() []ProcessEventLog`
`func (o *ListProcessLogJSONResponse) GetItems() []EventEventLogImpl`

GetItems returns the Items field if non-nil, zero value otherwise.

### GetItemsOk

`func (o *ListProcessLogJSONResponse) GetItemsOk() (*[]ProcessEventLog, bool)`
`func (o *ListProcessLogJSONResponse) GetItemsOk() (*[]EventEventLogImpl, bool)`

GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetItems

`func (o *ListProcessLogJSONResponse) SetItems(v []ProcessEventLog)`
`func (o *ListProcessLogJSONResponse) SetItems(v []EventEventLogImpl)`

SetItems sets Items field to given value.

Expand Down
Loading

0 comments on commit add2cda

Please sign in to comment.