Skip to content

Commit

Permalink
Fix system event invocationFailed field name
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Winnicki committed Jul 24, 2018
1 parent 66f4c60 commit a7fff0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/system-events-and-plugin-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ of event processing flow starting from receiving event to function invocation en
* `path` - Events API path
* `headers` - HTTP request headers
* `eventgateway.function.invoking` - the event emitted before invoking a function. Data fields:
* `space` - space
* `event` - event payload
* `functionId` - registered function ID
* `eventgateway.function.invoked` - the event emitted after successful function invocation. Data fields:
* `space` - space
* `event` - event payload
* `functionId` - registered function ID
* `result` - function response
* `eventgateway.function.invocationFailed` - the event emitted after failed function invocation. Data fields:
* `space` - space
* `event` - event payload
* `functionId` - registered function ID
* `error` - invocation error
Expand Down
2 changes: 1 addition & 1 deletion event/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ type SystemFunctionInvocationFailedData struct {
Space string `json:"space"`
FunctionID function.ID `json:"functionId"`
Event Event `json:"event"`
Error error `json:"result"`
Error error `json:"error"`
}

0 comments on commit a7fff0c

Please sign in to comment.