Documentation
¶
Index ¶
- type CollectorConnected
- type CollectorDisconnected
- type CollectorUpdated
- type EndpointCreated
- type EndpointPayload
- type EndpointRemoved
- type EndpointUpdated
- type Event
- type EventBase
- type MonitorCreated
- type MonitorPayload
- type MonitorRemoved
- type MonitorUpdated
- type OnTheWireEvent
- type OrgCreated
- type OrgUpdated
- type Priority
- type SignUpCompleted
- type SignUpStarted
- type UserCreated
- type UserUpdated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectorConnected ¶
type CollectorDisconnected ¶
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 EndpointRemoved ¶
type EndpointUpdated ¶
type EndpointUpdated struct { EndpointPayload Timestamp time.Time `json:"timestamp"` LastState *EndpointPayload `json:"last_state"` }
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 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 OrgUpdated ¶
type SignUpCompleted ¶
type SignUpStarted ¶
type UserCreated ¶
Click to show internal directories.
Click to hide internal directories.