Documentation ¶
Index ¶
- func ConfirmAlerts(alertList []alert.Alert, silentMode bool, action string) (confirm bool)
- func ConfirmUser(userInfo UserMemberships, userName string, action string) (confirm bool)
- func CountAlerts(alertClient *alert.Client, query string) (count int, err error)
- func CreateEscalationClient(apiKey string, url client.ApiUrl) (escalationClient *escalation.Client, clientErr error)
- func CreateOpsgenieClient(apiKey string, url client.ApiUrl) (alertClient *alert.Client, clientErr error)
- func CreateScheduleClient(apiKey string, url client.ApiUrl) (scheduleClient *schedule.Client, clientErr error)
- func CreateTeamClient(apiKey string, url client.ApiUrl) (teamClient *team.Client, clientErr error)
- func CreateUserClient(apiKey string, url client.ApiUrl) (userClient *user.Client, clientErr error)
- func DelUserFromAccount(userClient *user.Client, userName string) error
- func GetApiUrl(euFlag bool) (url client.ApiUrl)
- func GetEscalation(escalationClient *escalation.Client, escalationId string) (escalationRes *escalation.GetResult, err error)
- func GetScheduleRotations(scheduleClient *schedule.Client, scheduleId string, userName string) ([]schedule.Rotation, error)
- func InitLogging(debug bool) logrus.Logger
- func ListOpsgenieAlerts(alertClient *alert.Client, query string, offset int) (listResult *alert.ListAlertResult, err error)
- func NumPagingRequests(count int) (n int)
- func RemoveRule(escalation []escalation.Rule, e int) []escalation.Rule
- type Schedule
- type UserMemberships
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfirmAlerts ¶
func ConfirmUser ¶
func ConfirmUser(userInfo UserMemberships, userName string, action string) (confirm bool)
func CreateEscalationClient ¶
func CreateOpsgenieClient ¶
func CreateScheduleClient ¶
func CreateTeamClient ¶
func CreateUserClient ¶
func GetEscalation ¶
func GetEscalation(escalationClient *escalation.Client, escalationId string) (escalationRes *escalation.GetResult, err error)
func GetScheduleRotations ¶
func InitLogging ¶
func ListOpsgenieAlerts ¶
func NumPagingRequests ¶
func RemoveRule ¶
func RemoveRule(escalation []escalation.Rule, e int) []escalation.Rule
Types ¶
type UserMemberships ¶
type UserMemberships struct { Escalations []user.UserEscalation Teams []user.Team Schedules []Schedule }
func GetUserMemberships ¶
func GetUserMemberships(userClient *user.Client, userName string) (UserMemberships, error)
Click to show internal directories.
Click to hide internal directories.