mandrill

package
v1.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 8 Imported by: 9

README

mandrill webhook

You should configure your Mandrill's Webhooks to point at the webhooks service. To do this go to mandrillapp.com and click Settings > Webhooks. In the resulting page, click on Add a Webhook, select all events, and set the URL to http://<my_ip>:1619/mandrill, and click on Create Webhook.

Events

See the webhook doc.

All events for logs the original timestamp, the event name and the unique identifier of the message that generated the event.

Tags:

  • 'event' = event.event string

Fields:

  • 'id' = event._id string

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	Tags() map[string]string
	Fields() map[string]interface{}
}

type MandrillEvent

type MandrillEvent struct {
	EventName string `json:"event"`
	TimeStamp int64  `json:"ts"`
	ID        string `json:"_id"`
}

func (*MandrillEvent) Fields

func (me *MandrillEvent) Fields() map[string]interface{}

func (*MandrillEvent) Tags

func (me *MandrillEvent) Tags() map[string]string

type MandrillWebhook

type MandrillWebhook struct {
	Path string

	auth.BasicAuth
	// contains filtered or unexported fields
}

func (*MandrillWebhook) Register

func (md *MandrillWebhook) Register(router *mux.Router, acc telegraf.Accumulator, log telegraf.Logger)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL