Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct {
ID int `json:"id,omitempty"`
Version int `json:"version,omitempty"`
Type string `json:"type"` // computed MANUAL
Name string `json:"name"`
Description string `json:"description"`
Enabled bool `json:"enabled"`
NotificationChannelIds []int `json:"notificationChannelIds"`
Filter string `json:"filter"`
Severity int `json:"severity"` // 6 == INFO, 4 == LOW, 2 == MEDIUM, 0 == HIGH // NOT USED
Timespan int `json:"timespan"` // computed 600000000
CustomNotification *CustomNotification `json:"customNotification"`
TeamID int `json:"teamId,omitempty"` // computed
AutoCreated bool `json:"autoCreated"`
SysdigCapture *SysdigCapture `json:"sysdigCapture"`
RateOfChange bool `json:"rateOfChange,omitempty"`
ReNotifyMinutes int `json:"reNotifyMinutes"`
ReNotify bool `json:"reNotify"`
Valid bool `json:"valid"`
SeverityLabel string `json:"severityLabel,omitempty"` // MEDIUM == MEDIUM, LOW == LOW, NONE == INFO, HIGH == HIGH
SegmentBy []string `json:"segmentBy"`
SegmentCondition *SegmentCondition `json:"segmentCondition"`
Criteria *Criteria `json:"criteria,omitempty"`
Monitor []*Monitor `json:"monitor,omitempty"`
Condition string `json:"condition"`
SeverityLevel int `json:"severityLevel,omitempty"` // 0 == MEDIUM, 2 == LOW, 4 == INFO, 6 == HIGH
}
func AlertFromJSON ¶
type CustomNotification ¶
type SegmentCondition ¶
type SegmentCondition struct {
Type string `json:"type"`
}
type SysdigCapture ¶
type SysdigCapture struct {
Name string `json:"name"`
Filters string `json:"filters,omitempty"`
Duration int `json:"duration"`
Type string `json:"type,omitempty"`
BucketName string `json:"bucketName"`
Folder string `json:"folder,omitempty"`
Enabled bool `json:"enabled"`
StorageID interface{} `json:"storageId,omitempty"`
}
type SysdigMonitorClient ¶
type SysdigMonitorClient interface {
CreateAlert(Alert) (Alert, error)
DeleteAlert(int) error
UpdateAlert(Alert) (Alert, error)
GetAlertById(int) (Alert, error)
}
func NewSysdigMonitorClient ¶
func NewSysdigMonitorClient(apiToken string, url string, insecure bool) SysdigMonitorClient
Click to show internal directories.
Click to hide internal directories.