events

package
Version: v1.7.1-0...-29a0ac7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectorConnected

type CollectorConnected struct {
	CollectorId int64  `json:"collector_id"`
	InstanceId  string `json:"instance_id"`
}

type CollectorDisconnected

type CollectorDisconnected struct {
	CollectorId int64  `json:"collector_id"`
	InstanceId  string `json:"instance_id"`
}

type CollectorUpdated

type CollectorUpdated struct {
	m.CollectorDTO
	Timestamp time.Time       `json:"timestamp"`
	LastState *m.CollectorDTO `json:"last_state"`
}

type EndpointCreated

type EndpointCreated struct {
	EndpointPayload
	Timestamp time.Time `json:"timestamp"`
}

type EndpointPayload

type EndpointPayload struct {
	Id    int64    `json:"id"`
	OrgId int64    `json:"org_id"`
	Name  string   `json:"name"`
	Slug  string   `json:"slug"`
	Tags  []string `json:"tags"`
}

type EndpointRemoved

type EndpointRemoved struct {
	Timestamp time.Time `json:"timestamp"`
	Id        int64     `json:"id"`
	Name      string    `json:"name"`
	Slug      string    `json:"slug"`
	OrgId     int64     `json:"org_id"`
	Tags      []string  `json:"tags"`
}

type EndpointUpdated

type EndpointUpdated struct {
	EndpointPayload
	Timestamp time.Time        `json:"timestamp"`
	LastState *EndpointPayload `json:"last_state"`
}

type Event

type Event struct {
	Timestamp time.Time `json:"timestamp"`
}

type EventBase

type EventBase interface {
	ToOnWriteEvent() *OnTheWireEvent
}

type MonitorCreated

type MonitorCreated struct {
	MonitorPayload
	Timestamp time.Time `json:"timestamp"`
}

type MonitorPayload

type MonitorPayload struct {
	Id            int64                  `json:"id"`
	OrgId         int64                  `json:"org_id"`
	EndpointId    int64                  `json:"endpoint_id"`
	EndpointSlug  string                 `json:"endpoint_slug"`
	MonitorTypeId int64                  `json:"monitor_type_id"`
	CollectorIds  []int64                `json:"collector_ids"`
	CollectorTags []string               `json:"collector_tags"`
	Collectors    []int64                `json:"collectors"`
	Settings      []*m.MonitorSettingDTO `json:"settings"`
	Frequency     int64                  `json:"frequency"`
	Enabled       bool                   `json:"enabled"`
	Offset        int64                  `json:"offset"`
	Updated       time.Time              `json:"updated"`
}

type MonitorRemoved

type MonitorRemoved struct {
	Timestamp     time.Time `json:"timestamp"`
	Id            int64     `json:"id"`
	EndpointId    int64     `json:"endpoint_id"`
	OrgId         int64     `json:"org_id"`
	CollectorIds  []int64   `json:"collectors_ids"`
	CollectorTags []string  `json:"collectors_tags"`
	Collectors    []int64   `json:"collectors"`
}

type MonitorUpdated

type MonitorUpdated struct {
	MonitorPayload
	Timestamp time.Time       `json:"timestamp"`
	LastState *MonitorPayload `json:"last_state"`
}

type OnTheWireEvent

type OnTheWireEvent struct {
	EventType string      `json:"event_type"`
	Priority  Priority    `json:"priority"`
	Timestamp time.Time   `json:"timestamp"`
	Payload   interface{} `json:"payload"`
}

func ToOnWriteEvent

func ToOnWriteEvent(event interface{}) (*OnTheWireEvent, error)

type OrgCreated

type OrgCreated struct {
	Timestamp time.Time `json:"timestamp"`
	Id        int64     `json:"id"`
	Name      string    `json:"name"`
}

type OrgUpdated

type OrgUpdated struct {
	Timestamp time.Time `json:"timestamp"`
	Id        int64     `json:"id"`
	Name      string    `json:"name"`
}

type Priority

type Priority string
const (
	PRIO_DEBUG Priority = "DEBUG"
	PRIO_INFO  Priority = "INFO"
	PRIO_ERROR Priority = "ERROR"
)

type SignUpCompleted

type SignUpCompleted struct {
	Timestamp time.Time `json:"timestamp"`
	Name      string    `json:"name"`
	Email     string    `json:"email"`
}

type SignUpStarted

type SignUpStarted struct {
	Timestamp time.Time `json:"timestamp"`
	Email     string    `json:"email"`
	Code      string    `json:"code"`
}

type UserCreated

type UserCreated struct {
	Timestamp time.Time `json:"timestamp"`
	Id        int64     `json:"id"`
	Name      string    `json:"name"`
	Login     string    `json:"login"`
	Email     string    `json:"email"`
}

type UserUpdated

type UserUpdated struct {
	Timestamp time.Time `json:"timestamp"`
	Id        int64     `json:"id"`
	Name      string    `json:"name"`
	Login     string    `json:"login"`
	Email     string    `json:"email"`
}

Jump to

Keyboard shortcuts

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