Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector 是一个连接器对象,用于创建于 Adanos-alert 的连接
func NewConnector ¶
NewConnector create a new connector
type Event ¶
type Event struct { Meta map[string]interface{} `json:"meta" yaml:"meta"` Tags []string `json:"tags" yaml:"tags"` Origin string `json:"origin" yaml:"origin"` Ctl EventControl `json:"ctl" yaml:"ctl"` Content string `json:"content" yaml:"content"` }
Event is a adanos alert message
func (*Event) WithCtl ¶
func (m *Event) WithCtl(ctl EventControl) *Event
func (*Event) WithOrigin ¶
type EventControl ¶
Click to show internal directories.
Click to hide internal directories.