2016-06-29 01:26:41 +08:00
|
|
|
package filestack
|
|
|
|
|
|
|
|
|
|
import "strconv"
|
|
|
|
|
|
2025-01-23 01:08:13 +08:00
|
|
|
type filestackEvent struct {
|
2016-06-29 01:26:41 +08:00
|
|
|
Action string `json:"action"`
|
|
|
|
|
TimeStamp int64 `json:"timestamp"`
|
2021-03-02 05:04:35 +08:00
|
|
|
ID int `json:"id"`
|
2016-06-29 01:26:41 +08:00
|
|
|
}
|
|
|
|
|
|
2025-01-23 01:08:13 +08:00
|
|
|
func (fe *filestackEvent) tags() map[string]string {
|
2016-06-29 01:26:41 +08:00
|
|
|
return map[string]string{
|
|
|
|
|
"action": fe.Action,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-23 01:08:13 +08:00
|
|
|
func (fe *filestackEvent) fields() map[string]interface{} {
|
2016-06-29 01:26:41 +08:00
|
|
|
return map[string]interface{}{
|
2021-03-02 05:04:35 +08:00
|
|
|
"id": strconv.Itoa(fe.ID),
|
2016-06-29 01:26:41 +08:00
|
|
|
}
|
|
|
|
|
}
|