Documentation ¶
Overview ¶
Package command creates various OpsGenie API clients:
- Alert
- Heartbeat
- Integration
- Policy
And contains command action implementations that uses OpsGenie API clients mentioned above. Commands use OpsGenie Go SDK to send requests to OpsGenie.
Index ¶
- func AcknowledgeAction(c *gcli.Context)
- func AddDetailsAction(c *gcli.Context)
- func AddNoteAction(c *gcli.Context)
- func AddResponderAction(c *gcli.Context)
- func AddTagsAction(c *gcli.Context)
- func AddTeamAction(c *gcli.Context)
- func AssignOwnerAction(c *gcli.Context)
- func AttachFileAction(c *gcli.Context)
- func CloseAlertAction(c *gcli.Context)
- func CountAlertsAction(c *gcli.Context)
- func CreateAlertAction(c *gcli.Context)
- func DeleteAlertAction(c *gcli.Context)
- func DeleteAlertAttachmentAction(c *gcli.Context)
- func DisableAction(c *gcli.Context)
- func DownloadAttachmentAction(c *gcli.Context)
- func DownloadLogs(c *gcli.Context)
- func EnableAction(c *gcli.Context)
- func EscalateToNextAction(c *gcli.Context)
- func ExecuteActionAction(c *gcli.Context)
- func ExportUsersAction(c *gcli.Context)
- func GetAlertAction(c *gcli.Context)
- func GetAttachmentAction(c *gcli.Context)
- func HeartbeatAction(c *gcli.Context)
- func ListAlertAttachmentsAction(c *gcli.Context)
- func ListAlertLogsAction(c *gcli.Context)
- func ListAlertNotesAction(c *gcli.Context)
- func ListAlertRecipientsAction(c *gcli.Context)
- func ListAlertsAction(c *gcli.Context)
- func NewAlertClient(c *gcli.Context) (*alert.Client, error)
- func NewCustomerLogClient(c *gcli.Context) (*logs.Client, error)
- func NewHeartbeatClient(c *gcli.Context) (*heartbeat.Client, error)
- func NewIntegrationClient(c *gcli.Context) (*integration.Client, error)
- func NewPolicyClient(c *gcli.Context) (*policy.Client, error)
- func NewUserClient(c *gcli.Context) (*user.Client, error)
- func RemoveDetailsAction(c *gcli.Context)
- func RemoveTagsAction(c *gcli.Context)
- func SnoozeAction(c *gcli.Context)
- func UnAcknowledgeAction(c *gcli.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcknowledgeAction ¶
AcknowledgeAction acknowledges an alert at Opsgenie.
func AddDetailsAction ¶
AddDetailsAction adds details to an alert at Opsgenie.
func AddNoteAction ¶
AddNoteAction adds a note to an alert at Opsgenie.
func AddResponderAction ¶
AddResponderAction adds responder to an alert at Opsgenie.
func AddTagsAction ¶
AddTagsAction adds tags to an alert at Opsgenie.
func AddTeamAction ¶
AddTeamAction adds a team to an alert at Opsgenie.
func AssignOwnerAction ¶
AssignOwnerAction assigns the specified user as the owner of the alert at Opsgenie.
func AttachFileAction ¶
AttachFileAction attaches a file to an alert at Opsgenie.
func CloseAlertAction ¶
CloseAlertAction closes an alert at Opsgenie.
func CountAlertsAction ¶
CountAlertsAction retrieves number of alerts from Opsgenie.
func CreateAlertAction ¶
CreateAlertAction creates an alert at Opsgenie.
func DeleteAlertAction ¶
DeleteAlertAction deletes an alert at Opsgenie.
func DeleteAlertAttachmentAction ¶
DeleteAlertAttachmentAction deletes the specified alert attachment from alert
func DisableAction ¶
DisableAction disables an integration/policy according to the --type parameter at Opsgenie.
func DownloadAttachmentAction ¶
DownloadAttachmentAction downloads the attachment specified with attachmentId for given alert
func DownloadLogs ¶
func EnableAction ¶
EnableAction enables an integration/policy according to the --type parameter at Opsgenie.
func EscalateToNextAction ¶
EscalateToNextAction processes the next available rule in the specified escalation.
func ExecuteActionAction ¶
ExecuteActionAction executes a custom action on an alert at Opsgenie.
func ExportUsersAction ¶
ListUsersAction retrieves users from Opsgenie.
func GetAlertAction ¶
GetAlertAction retrieves specified alert details from Opsgenie.
func GetAttachmentAction ¶
GetAttachmentAction retrieves a download link to specified alert attachment
func HeartbeatAction ¶
HeartbeatAction sends an Heartbeat signal to Opsgenie.
func ListAlertAttachmentsAction ¶
ListAlertAttachmentsAction returns a list of attachment meta information for specified alert
func ListAlertLogsAction ¶
ListAlertLogsAction retrieves specified alert logs from Opsgenie.
func ListAlertNotesAction ¶
ListAlertNotesAction retrieves specified alert notes from Opsgenie.
func ListAlertRecipientsAction ¶
ListAlertRecipientsAction retrieves specified alert recipients from Opsgenie.
func ListAlertsAction ¶
ListAlertsAction retrieves alert details from Opsgenie.
func NewIntegrationClient ¶
func NewIntegrationClient(c *gcli.Context) (*integration.Client, error)
func RemoveDetailsAction ¶
RemoveDetailsAction removes details from an alert at Opsgenie.
func RemoveTagsAction ¶
RemoveTagsAction removes tags from an alert at Opsgenie.
func UnAcknowledgeAction ¶
UnAcknowledgeAction unAcknowledges an alert at Opsgenie.
Types ¶
This section is empty.