command

package
v3.1.2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2020 License: Apache-2.0 Imports: 20 Imported by: 2

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcknowledgeAction

func AcknowledgeAction(c *gcli.Context)

AcknowledgeAction acknowledges an alert at Opsgenie.

func AddDetailsAction

func AddDetailsAction(c *gcli.Context)

AddDetailsAction adds details to an alert at Opsgenie.

func AddNoteAction

func AddNoteAction(c *gcli.Context)

AddNoteAction adds a note to an alert at Opsgenie.

func AddResponderAction

func AddResponderAction(c *gcli.Context)

AddResponderAction adds responder to an alert at Opsgenie.

func AddTagsAction

func AddTagsAction(c *gcli.Context)

AddTagsAction adds tags to an alert at Opsgenie.

func AddTeamAction

func AddTeamAction(c *gcli.Context)

AddTeamAction adds a team to an alert at Opsgenie.

func AssignOwnerAction

func AssignOwnerAction(c *gcli.Context)

AssignOwnerAction assigns the specified user as the owner of the alert at Opsgenie.

func AttachFileAction

func AttachFileAction(c *gcli.Context)

AttachFileAction attaches a file to an alert at Opsgenie.

func CloseAlertAction

func CloseAlertAction(c *gcli.Context)

CloseAlertAction closes an alert at Opsgenie.

func CountAlertsAction

func CountAlertsAction(c *gcli.Context)

CountAlertsAction retrieves number of alerts from Opsgenie.

func CreateAlertAction

func CreateAlertAction(c *gcli.Context)

CreateAlertAction creates an alert at Opsgenie.

func DeleteAlertAction

func DeleteAlertAction(c *gcli.Context)

DeleteAlertAction deletes an alert at Opsgenie.

func DeleteAlertAttachmentAction

func DeleteAlertAttachmentAction(c *gcli.Context)

DeleteAlertAttachmentAction deletes the specified alert attachment from alert

func DisableAction

func DisableAction(c *gcli.Context)

DisableAction disables an integration/policy according to the --type parameter at Opsgenie.

func DownloadAttachmentAction

func DownloadAttachmentAction(c *gcli.Context)

DownloadAttachmentAction downloads the attachment specified with attachmentId for given alert

func DownloadLogs

func DownloadLogs(c *gcli.Context)

func EnableAction

func EnableAction(c *gcli.Context)

EnableAction enables an integration/policy according to the --type parameter at Opsgenie.

func EscalateToNextAction

func EscalateToNextAction(c *gcli.Context)

EscalateToNextAction processes the next available rule in the specified escalation.

func ExecuteActionAction

func ExecuteActionAction(c *gcli.Context)

ExecuteActionAction executes a custom action on an alert at Opsgenie.

func ExportUsersAction

func ExportUsersAction(c *gcli.Context)

ListUsersAction retrieves users from Opsgenie.

func GetAlertAction

func GetAlertAction(c *gcli.Context)

GetAlertAction retrieves specified alert details from Opsgenie.

func GetAttachmentAction

func GetAttachmentAction(c *gcli.Context)

GetAttachmentAction retrieves a download link to specified alert attachment

func HeartbeatAction

func HeartbeatAction(c *gcli.Context)

HeartbeatAction sends an Heartbeat signal to Opsgenie.

func ListAlertAttachmentsAction

func ListAlertAttachmentsAction(c *gcli.Context)

ListAlertAttachmentsAction returns a list of attachment meta information for specified alert

func ListAlertLogsAction

func ListAlertLogsAction(c *gcli.Context)

ListAlertLogsAction retrieves specified alert logs from Opsgenie.

func ListAlertNotesAction

func ListAlertNotesAction(c *gcli.Context)

ListAlertNotesAction retrieves specified alert notes from Opsgenie.

func ListAlertRecipientsAction

func ListAlertRecipientsAction(c *gcli.Context)

ListAlertRecipientsAction retrieves specified alert recipients from Opsgenie.

func ListAlertsAction

func ListAlertsAction(c *gcli.Context)

ListAlertsAction retrieves alert details from Opsgenie.

func NewAlertClient

func NewAlertClient(c *gcli.Context) (*alert.Client, error)

func NewCustomerLogClient

func NewCustomerLogClient(c *gcli.Context) (*logs.Client, error)

func NewHeartbeatClient

func NewHeartbeatClient(c *gcli.Context) (*heartbeat.Client, error)

func NewIntegrationClient

func NewIntegrationClient(c *gcli.Context) (*integration.Client, error)

func NewPolicyClient

func NewPolicyClient(c *gcli.Context) (*policy.Client, error)

func NewUserClient

func NewUserClient(c *gcli.Context) (*user.Client, error)

func RemoveDetailsAction

func RemoveDetailsAction(c *gcli.Context)

RemoveDetailsAction removes details from an alert at Opsgenie.

func RemoveTagsAction

func RemoveTagsAction(c *gcli.Context)

RemoveTagsAction removes tags from an alert at Opsgenie.

func SnoozeAction

func SnoozeAction(c *gcli.Context)

SnoozeAction snoozes an alert at Opsgenie.

func UnAcknowledgeAction

func UnAcknowledgeAction(c *gcli.Context)

UnAcknowledgeAction unAcknowledges an alert at Opsgenie.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL