From 35fc2c810145e9ca6611ebe3181c8b0c9c29ecba Mon Sep 17 00:00:00 2001 From: Maciej Winnicki Date: Tue, 24 Jul 2018 16:48:50 +0200 Subject: [PATCH] Fix system event invocationFailed field name --- docs/system-events-and-plugin-system.md | 3 +++ event/system.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/system-events-and-plugin-system.md b/docs/system-events-and-plugin-system.md index 6a6c942..f857ecb 100644 --- a/docs/system-events-and-plugin-system.md +++ b/docs/system-events-and-plugin-system.md @@ -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 diff --git a/event/system.go b/event/system.go index bc5c78f..2ed27df 100644 --- a/event/system.go +++ b/event/system.go @@ -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"` }