telegraf/plugins/inputs/webhooks/filestack/filestack_webhooks_events.go

22 lines
396 B
Go
Raw Normal View History

2016-06-28 17:26:41 +00:00
package filestack
import "strconv"
type DialogEvent struct {
Action string `json:"action"`
TimeStamp int64 `json:"timestamp"`
Id int `json:"id"`
}
func (de *DialogEvent) Tags() map[string]string {
return map[string]string{
"action": de.Action,
}
}
func (de *DialogEvent) Fields() map[string]interface{} {
return map[string]interface{}{
"id": strconv.Itoa(de.Id),
}
}