Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix system event invocationFailed field name #487

Merged
merged 1 commit into from
Jul 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 name
* `event` - event payload
* `functionId` - registered function ID
* `eventgateway.function.invoked` - the event emitted after successful function invocation. Data fields:
* `space` - space name
* `event` - event payload
* `functionId` - registered function ID
* `result` - function response
* `eventgateway.function.invocationFailed` - the event emitted after failed function invocation. Data fields:
* `space` - space name
* `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"`
}