Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
19
plugins/inputs/webhooks/mandrill/mandrill_webhooks_events.go
Normal file
19
plugins/inputs/webhooks/mandrill/mandrill_webhooks_events.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
package mandrill
|
||||
|
||||
type mandrillEvent struct {
|
||||
EventName string `json:"event"`
|
||||
TimeStamp int64 `json:"ts"`
|
||||
ID string `json:"_id"`
|
||||
}
|
||||
|
||||
func (me *mandrillEvent) tags() map[string]string {
|
||||
return map[string]string{
|
||||
"event": me.EventName,
|
||||
}
|
||||
}
|
||||
|
||||
func (me *mandrillEvent) fields() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"id": me.ID,
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue