From 577ca219912809f05edf392ba755343c86efdef7 Mon Sep 17 00:00:00 2001 From: Quentin MOUTY Date: Tue, 11 Mar 2025 09:42:10 +0100 Subject: [PATCH] #616 - Specify return type for EventMsg.Values for custom plugin --- docs/user_guide/event_processors/event_plugin.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/user_guide/event_processors/event_plugin.md b/docs/user_guide/event_processors/event_plugin.md index 5f81c7486..2569bdcaa 100644 --- a/docs/user_guide/event_processors/event_plugin.md +++ b/docs/user_guide/event_processors/event_plugin.md @@ -127,3 +127,19 @@ func main() { }) } ``` + +#### Return value + +The data model of the return event is: + +```go +type EventMsg struct { + Name string `json:"name,omitempty"` + Timestamp int64 `json:"timestamp,omitempty"` + Tags map[string]string `json:"tags,omitempty"` + Values map[string]interface{} `json:"values,omitempty"` + Deletes []string `json:"deletes,omitempty"` +} +``` + +However `Value` only support based type as value.