Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SeverityToLevel ¶
Types ¶
type Alert ¶
type Alert struct { ID string `bson:"_id,omitempty"` Resource string `bson:"resource,omitempty"` Event string `bson:"event,omitempty"` Environment string `bson:"environment,omitempty"` Cluster string `bson:"cluster,omitempty"` SeverityCode int8 `bson:"severityCode,omitempty"` SeverityName string `bson:"severityName,omitempty"` Correlate map[string]string `bson:"correlate,omitempty"` Status string `bson:"status,omitempty"` Service string `bson:"service,omitempty"` Group string `bson:"group,omitempty"` Value string `bson:"value,omitempty"` // TODO: what is this? Text string `bson:"text,omitempty"` Summary string `bson:"summary,omitempty"` Tags map[string]string `bson:"tags,omitempty"` Attributes map[string]string `bson:"attributes,omitempty"` Origin string `bson:"origin,omitempty"` Type string `bson:"type,omitempty"` Fingerprint string `bson:"fingerprint,omitempty"` GeneratorURL string `bson:"generatorURL,omitempty"` RunbookURL string `bson:"runbookURL,omitempty"` CreateTime time.Time `bson:"createTime,omitempty"` Timeout time.Time `bson:"timeout,omitempty"` RawData string `bson:"rawData,omitempty"` DuplicateCount int `bson:"duplicateCount,omitempty"` Repeat bool `bson:"repeat,omitempty"` PreviousSeverity string `bson:"previousSeverity,omitempty"` TrendIndication string `bson:"trendIndication,omitempty"` ReceiveTime time.Time `bson:"receiveTime,omitempty"` UpdateTime time.Time `bson:"updateTime,omitempty"` }
func FindByFingerprint ¶
Click to show internal directories.
Click to hide internal directories.