Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
feat: added get-action data to contain the action index (keptn/keptn/…
Browse files Browse the repository at this point in the history
…#4206) (#361)

Signed-off-by: RealAnna <[email protected]>
  • Loading branch information
RealAnna authored Dec 1, 2021
1 parent 73b3de6 commit 08c82f0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pkg/lib/v0_2_0/getaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ package v0_2_0

const GetActionTaskName = "get-action"

type GetActionData struct {
ActionIndex int `json:"actionIndex"`
}

type GetActionTriggeredEventData struct {
EventData
Problem ProblemDetails `json:"problem"`
ActionIndex int `json:"actionIndex"`
Problem ProblemDetails `json:"problem"`
GetAction GetActionData `json:"get-action"`
}

type GetActionStartedEventData struct {
Expand All @@ -14,6 +18,6 @@ type GetActionStartedEventData struct {

type GetActionFinishedEventData struct {
EventData
Action ActionInfo `json:"action"`
ActionIndex int
Action ActionInfo `json:"action"`
GetAction GetActionData `json:"get-action"`
}

0 comments on commit 08c82f0

Please sign in to comment.