1
0
Fork 0
telegraf/plugins/inputs/webhooks/filestack/filestack_webhooks_events.go
Daniel Baumann 4978089aab
Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-05-24 07:26:29 +02:00

21 lines
405 B
Go

package filestack
import "strconv"
type filestackEvent struct {
Action string `json:"action"`
TimeStamp int64 `json:"timestamp"`
ID int `json:"id"`
}
func (fe *filestackEvent) tags() map[string]string {
return map[string]string{
"action": fe.Action,
}
}
func (fe *filestackEvent) fields() map[string]interface{} {
return map[string]interface{}{
"id": strconv.Itoa(fe.ID),
}
}