Documentation
¶
Overview ¶
Package client provides clients for using the OpsGenie Web API. Also prepares and sends requests. API user first creates a OpsGenieClient instance.
cli := new(ogcli.OpsGenieClient)
Following that he/she can set APIKey and some configurations for HTTP communication layer by setting a proxy definition and/or transport layer options.
cli.SetAPIKey(constants.APIKey)
Then create the client of the API type that he/she wants to use.
alertCli, cliErr := cli.Alert()
if cliErr != nil { panic(cliErr) }
The most fundamental and general use case is being able to access the OpsGenie Web API by coding a Go program. The program -by mean of a client application- can send OpsGenie Web API the requests using the 'client' package in a higher level. For the programmer of the client application, that reduces the number of LoCs. Besides it will result a less error-prone application and reduce the complexity by hiding the low-level networking, error-handling and byte-processing calls.
Index ¶
- type AsyncRequestResponse
- type HTTPTransportSettings
- type OpsGenieAlertClientdeprecated
- func (cli *OpsGenieAlertClient) Acknowledge(req alerts.AcknowledgeAlertRequest) (*alerts.AcknowledgeAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) AddDetails(req alerts.AddDetailsAlertRequest) (*alerts.AddDetailsAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) AddNote(req alerts.AddNoteAlertRequest) (*alerts.AddNoteAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) AddRecipient(req alerts.AddRecipientAlertRequest) (*alerts.AddRecipientAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) AddTags(req alerts.AddTagsAlertRequest) (*alerts.AddTagsAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) AddTeam(req alerts.AddTeamAlertRequest) (*alerts.AddTeamAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) AssignOwner(req alerts.AssignOwnerAlertRequest) (*alerts.AssignOwnerAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) AttachFile(req alerts.AttachFileAlertRequest) (*alerts.AttachFileAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) Close(req alerts.CloseAlertRequest) (*alerts.CloseAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) Count(req alerts.CountAlertRequest) (*alerts.CountAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) Create(req alerts.CreateAlertRequest) (*alerts.CreateAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) Delete(req alerts.DeleteAlertRequest) (*alerts.DeleteAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) EscalateToNext(req alerts.EscalateToNextAlertRequest) (*alerts.EscalateToNextAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) ExecuteAction(req alerts.ExecuteActionAlertRequest) (*alerts.ExecuteActionAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) Get(req alerts.GetAlertRequest) (*alerts.GetAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) List(req alerts.ListAlertsRequest) (*alerts.ListAlertsResponse, error)deprecated
- func (cli *OpsGenieAlertClient) ListLogs(req alerts.ListAlertLogsRequest) (*alerts.ListAlertLogsResponse, error)deprecated
- func (cli *OpsGenieAlertClient) ListNotes(req alerts.ListAlertNotesRequest) (*alerts.ListAlertNotesResponse, error)deprecated
- func (cli *OpsGenieAlertClient) ListRecipients(req alerts.ListAlertRecipientsRequest) (*alerts.ListAlertRecipientsResponse, error)deprecated
- func (cli *OpsGenieAlertClient) RemoveDetails(req alerts.RemoveDetailsAlertRequest) (*alerts.RemoveDetailsAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) RemoveTags(req alerts.RemoveTagsAlertRequest) (*alerts.RemoveTagsAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) Renotify(req alerts.RenotifyAlertRequest) (*alerts.RenotifyAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) SetOpsGenieClient(ogCli OpsGenieClient)deprecated
- func (cli *OpsGenieAlertClient) Snooze(req alerts.SnoozeAlertRequest) (*alerts.SnoozeAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) TakeOwnership(req alerts.TakeOwnershipAlertRequest) (*alerts.TakeOwnershipAlertResponse, error)deprecated
- func (cli *OpsGenieAlertClient) UnAcknowledge(req alerts.UnAcknowledgeAlertRequest) (*alerts.UnAcknowledgeAlertResponse, error)deprecated
- type OpsGenieAlertV2Client
- func (cli *OpsGenieAlertV2Client) Acknowledge(req alertsv2.AcknowledgeRequest) (*AsyncRequestResponse, error)
- func (cli *OpsGenieAlertV2Client) AddDetails(req alertsv2.AddDetailsRequest) (*AsyncRequestResponse, error)
- func (cli *OpsGenieAlertV2Client) AddNote(req alertsv2.AddNoteRequest) (*AsyncRequestResponse, error)
- func (cli *OpsGenieAlertV2Client) AddTags(req alertsv2.AddTagsToAlertRequest) (*AsyncRequestResponse, error)
- func (cli *OpsGenieAlertV2Client) AddTeamToAlert(req alertsv2.AddTeamToAlertRequest) (*AsyncRequestResponse, error)
- func (cli *OpsGenieAlertV2Client) Assign(req alertsv2.AssignAlertRequest) (*AsyncRequestResponse, error)
- func (cli *OpsGenieAlertV2Client) AttachFile(req alertsv2.AddAlertAttachmentRequest) (*alertsv2.AddAlertAttachmentResponse, error)
- func (cli *OpsGenieAlertV2Client) Close(req alertsv2.CloseRequest) (*AsyncRequestResponse, error)
- func (cli *OpsGenieAlertV2Client) Create(req alertsv2.CreateAlertRequest) (*AsyncRequestResponse, error)
- func (cli *OpsGenieAlertV2Client) CreateSavedSearch(req savedsearches.CreateSavedSearchRequest) (*savedsearches.CreateSavedSearchResponse, error)
- func (cli *OpsGenieAlertV2Client) Delete(req alertsv2.DeleteAlertRequest) (*AsyncRequestResponse, error)
- func (cli *OpsGenieAlertV2Client) DeleteAttachment(req alertsv2.DeleteAlertAttachmentRequest) (*alertsv2.DeleteAlertAttachmentResponse, error)
- func (cli *OpsGenieAlertV2Client) DeleteSavedSearch(req savedsearches.DeleteSavedSearchRequest) (*savedsearches.DeleteSavedSearchResponse, error)
- func (cli *OpsGenieAlertV2Client) EscalateToNext(req alertsv2.EscalateToNextRequest) (*AsyncRequestResponse, error)
- func (cli *OpsGenieAlertV2Client) ExecuteCustomAction(req alertsv2.ExecuteCustomActionRequest) (*AsyncRequestResponse, error)
- func (cli *OpsGenieAlertV2Client) Get(req alertsv2.GetAlertRequest) (*alertsv2.DetailedAlertResponse, error)
- func (cli *OpsGenieAlertV2Client) GetAsyncRequestStatus(req alertsv2.GetAsyncRequestStatusRequest) (*alertsv2.GetAsyncRequestStatusResponse, error)
- func (cli *OpsGenieAlertV2Client) GetAttachmentFile(req alertsv2.GetAlertAttachmentRequest) (*alertsv2.GetAlertAttachmentResponse, error)
- func (cli *OpsGenieAlertV2Client) GetSavedSearch(req savedsearches.GetSavedSearchRequest) (*savedsearches.GetSavedSearchResponse, error)
- func (cli *OpsGenieAlertV2Client) List(req alertsv2.ListAlertRequest) (*alertsv2.ListAlertResponse, error)
- func (cli *OpsGenieAlertV2Client) ListAlertAttachments(req alertsv2.ListAlertAttachmentRequest) (*alertsv2.ListAlertAttachmentsResponse, error)
- func (cli *OpsGenieAlertV2Client) ListAlertLogs(req alertsv2.ListAlertLogsRequest) (*alertsv2.ListAlertLogsResponse, error)
- func (cli *OpsGenieAlertV2Client) ListAlertNotes(req alertsv2.ListAlertNotesRequest) (*alertsv2.ListAlertNotesResponse, error)
- func (cli *OpsGenieAlertV2Client) ListAlertRecipients(req alertsv2.ListAlertRecipientsRequest) (*alertsv2.ListAlertRecipientsResponse, error)
- func (cli *OpsGenieAlertV2Client) ListSavedSearches(req alertsv2.LisSavedSearchRequest) (*savedsearches.ListSavedSearchResponse, error)
- func (cli *OpsGenieAlertV2Client) RemoveDetails(req alertsv2.RemoveDetailsRequest) (*AsyncRequestResponse, error)
- func (cli *OpsGenieAlertV2Client) RemoveTags(req alertsv2.RemoveTagsRequest) (*AsyncRequestResponse, error)
- func (cli *OpsGenieAlertV2Client) SetOpsGenieClient(ogCli OpsGenieClient)
- func (cli *OpsGenieAlertV2Client) Snooze(req alertsv2.SnoozeRequest) (*AsyncRequestResponse, error)
- func (cli *OpsGenieAlertV2Client) Unacknowledge(req alertsv2.UnacknowledgeRequest) (*AsyncRequestResponse, error)
- func (cli *OpsGenieAlertV2Client) UpdateSavedSearch(req savedsearches.UpdateSavedSearchRequest) (*savedsearches.UpdateSavedSearchResponse, error)
- type OpsGenieClient
- func (cli *OpsGenieClient) APIKey() string
- func (cli *OpsGenieClient) Alert() (*OpsGenieAlertClient, error)
- func (cli *OpsGenieClient) AlertV2() (*OpsGenieAlertV2Client, error)
- func (cli *OpsGenieClient) Contact() (*OpsGenieContactClient, error)
- func (cli *OpsGenieClient) Escalation() (*OpsGenieEscalationClient, error)
- func (cli *OpsGenieClient) Heartbeat() (*OpsGenieHeartbeatClient, error)
- func (cli *OpsGenieClient) Integration() (*OpsGenieIntegrationClient, error)
- func (cli *OpsGenieClient) Log() (*OpsGenieLogClient, error)
- func (cli *OpsGenieClient) NotificationV2() (*OpsGenieNotificationV2Client, error)
- func (cli *OpsGenieClient) OpsGenieAPIUrl() string
- func (cli *OpsGenieClient) Policy() (*OpsGeniePolicyClient, error)
- func (cli *OpsGenieClient) Schedule() (*OpsGenieScheduleClient, error)
- func (cli *OpsGenieClient) ScheduleOverride() (*OpsGenieScheduleOverrideClient, error)
- func (cli *OpsGenieClient) ScheduleOverrideV2() (*OpsGenieScheduleOverrideV2Client, error)
- func (cli *OpsGenieClient) ScheduleRotationV2() (*OpsGenieScheduleRotationV2Client, error)
- func (cli *OpsGenieClient) ScheduleV2() (*OpsGenieScheduleV2Client, error)
- func (cli *OpsGenieClient) SetAPIKey(key string)
- func (cli *OpsGenieClient) SetHTTPTransportSettings(settings *HTTPTransportSettings)
- func (cli *OpsGenieClient) SetOpsGenieAPIUrl(url string)
- func (cli *OpsGenieClient) SetProxyConfiguration(conf *ProxyConfiguration)
- func (cli *OpsGenieClient) Team() (*OpsGenieTeamClient, error)
- func (cli *OpsGenieClient) User() (*OpsGenieUserClient, error)
- func (cli *OpsGenieClient) UserV2() (*OpsGenieUserV2Client, error)
- type OpsGenieContactClient
- func (cli *OpsGenieContactClient) Create(req contact.CreateContactRequest) (*contact.CreateContactResponse, error)
- func (cli *OpsGenieContactClient) Delete(req contact.DeleteContactRequest) (*contact.DeleteContactResponse, error)
- func (cli *OpsGenieContactClient) Disable(req contact.DisableContactRequest) (*contact.DisableContactResponse, error)
- func (cli *OpsGenieContactClient) Enable(req contact.EnableContactRequest) (*contact.EnableContactResponse, error)
- func (cli *OpsGenieContactClient) Get(req contact.GetContactRequest) (*contact.GetContactResponse, error)
- func (cli *OpsGenieContactClient) SetOpsGenieClient(ogCli OpsGenieClient)
- func (cli *OpsGenieContactClient) Update(req contact.UpdateContactRequest) (*contact.UpdateContactResponse, error)
- type OpsGenieEscalationClient
- func (cli *OpsGenieEscalationClient) Create(req escalation.CreateEscalationRequest) (*escalation.CreateEscalationResponse, error)
- func (cli *OpsGenieEscalationClient) Delete(req escalation.DeleteEscalationRequest) (*escalation.DeleteEscalationResponse, error)
- func (cli *OpsGenieEscalationClient) Get(req escalation.GetEscalationRequest) (*escalation.GetEscalationResponse, error)
- func (cli *OpsGenieEscalationClient) List(req escalation.ListEscalationsRequest) (*escalation.ListEscalationsResponse, error)
- func (cli *OpsGenieEscalationClient) SetOpsGenieClient(ogCli OpsGenieClient)
- func (cli *OpsGenieEscalationClient) Update(req escalation.UpdateEscalationRequest) (*escalation.UpdateEscalationResponse, error)
- type OpsGenieHeartbeatClient
- func (cli *OpsGenieHeartbeatClient) Add(req heartbeat.AddHeartbeatRequest) (*heartbeat.AddHeartbeatResponse, error)
- func (cli *OpsGenieHeartbeatClient) Delete(req heartbeat.DeleteHeartbeatRequest) (*heartbeat.DeleteHeartbeatResponse, error)
- func (cli *OpsGenieHeartbeatClient) Disable(req heartbeat.DisableHeartbeatRequest) (*heartbeat.DisableHeartbeatResponse, error)
- func (cli *OpsGenieHeartbeatClient) Enable(req heartbeat.EnableHeartbeatRequest) (*heartbeat.EnableHeartbeatResponse, error)
- func (cli *OpsGenieHeartbeatClient) Get(req heartbeat.GetHeartbeatRequest) (*heartbeat.GetHeartbeatResponse, error)
- func (cli *OpsGenieHeartbeatClient) List(req heartbeat.ListHeartbeatsRequest) (*heartbeat.ListHeartbeatsResponse, error)deprecated
- func (cli *OpsGenieHeartbeatClient) Ping(req heartbeat.PingHeartbeatRequest) (*AsyncRequestResponse, error)
- func (cli *OpsGenieHeartbeatClient) Send(req heartbeat.SendHeartbeatRequest) (*heartbeat.SendHeartbeatResponse, error)deprecated
- func (cli *OpsGenieHeartbeatClient) SetOpsGenieClient(ogCli OpsGenieClient)
- func (cli *OpsGenieHeartbeatClient) Update(req heartbeat.UpdateHeartbeatRequest) (*heartbeat.UpdateHeartbeatResponse, error)
- type OpsGenieIntegrationClient
- func (cli *OpsGenieIntegrationClient) Disable(req integration.DisableIntegrationRequest) (*integration.DisableIntegrationResponse, error)
- func (cli *OpsGenieIntegrationClient) Enable(req integration.EnableIntegrationRequest) (*integration.EnableIntegrationResponse, error)
- func (cli *OpsGenieIntegrationClient) SetOpsGenieClient(ogCli OpsGenieClient)
- type OpsGenieLogClient
- type OpsGenieNotificationV2Client
- func (cli *OpsGenieNotificationV2Client) Create(req notificationv2.CreateNotificationRequest) (*notificationv2.CreateNotificationResponse, error)
- func (cli *OpsGenieNotificationV2Client) Delete(req notificationv2.DeleteNotificationRequest) (*notificationv2.DeleteNotificationResponse, error)
- func (cli *OpsGenieNotificationV2Client) Disable(req notificationv2.DisableNotificationRequest) (*notificationv2.DisableNotificationResponse, error)
- func (cli *OpsGenieNotificationV2Client) Enable(req notificationv2.EnableNotificationRequest) (*notificationv2.EnableNotificationResponse, error)
- func (cli *OpsGenieNotificationV2Client) Get(req notificationv2.GetNotificationRequest) (*notificationv2.GetNotificationResponse, error)
- func (cli *OpsGenieNotificationV2Client) List(req notificationv2.ListNotificationRequest) (*notificationv2.ListNotificationResponse, error)
- func (cli *OpsGenieNotificationV2Client) SetOpsGenieClient(ogCli OpsGenieClient)
- func (cli *OpsGenieNotificationV2Client) Update(req notificationv2.UpdateNotificationRequest) (*notificationv2.UpdateNotificationResponse, error)
- type OpsGeniePolicyClient
- type OpsGenieScheduleClient
- func (cli *OpsGenieScheduleClient) Create(req schedule.CreateScheduleRequest) (*schedule.CreateScheduleResponse, error)
- func (cli *OpsGenieScheduleClient) Delete(req schedule.DeleteScheduleRequest) (*schedule.DeleteScheduleResponse, error)
- func (cli *OpsGenieScheduleClient) Get(req schedule.GetScheduleRequest) (*schedule.GetScheduleResponse, error)
- func (cli *OpsGenieScheduleClient) GetTimeline(req schedule.GetTimelineScheduleRequest) (*schedule.GetTimelineScheduleResponse, error)
- func (cli *OpsGenieScheduleClient) List(req schedule.ListSchedulesRequest) (*schedule.ListSchedulesResponse, error)
- func (cli *OpsGenieScheduleClient) SetOpsGenieClient(ogCli OpsGenieClient)
- func (cli *OpsGenieScheduleClient) Update(req schedule.UpdateScheduleRequest) (*schedule.UpdateScheduleResponse, error)
- func (cli *OpsGenieScheduleClient) WhoIsOnCall(req schedule.WhoIsOnCallRequest) (*schedule.WhoIsOnCallResponse, error)
- type OpsGenieScheduleOverrideClient
- func (cli *OpsGenieScheduleOverrideClient) Add(req override.AddScheduleOverrideRequest) (*override.AddScheduleOverrideResponse, error)
- func (cli *OpsGenieScheduleOverrideClient) Delete(req override.DeleteScheduleOverrideRequest) (*override.DeleteScheduleOverrideResponse, error)
- func (cli *OpsGenieScheduleOverrideClient) Get(req override.GetScheduleOverrideRequest) (*override.GetScheduleOverrideResponse, error)
- func (cli *OpsGenieScheduleOverrideClient) List(req override.ListScheduleOverridesRequest) (*override.ListScheduleOverridesResponse, error)
- func (cli *OpsGenieScheduleOverrideClient) SetOpsGenieClient(ogCli OpsGenieClient)
- func (cli *OpsGenieScheduleOverrideClient) Update(req override.UpdateScheduleOverrideRequest) (*override.UpdateScheduleOverrideResponse, error)
- type OpsGenieScheduleOverrideV2Client
- func (cli *OpsGenieScheduleOverrideV2Client) Create(req schedulev2.CreateScheduleOverrideRequest) (*schedulev2.CreateScheduleOverrideResponse, error)
- func (cli *OpsGenieScheduleOverrideV2Client) Delete(req schedulev2.DeleteScheduleOverrideRequest) (*schedulev2.DeleteScheduleOverrideResponse, error)
- func (cli *OpsGenieScheduleOverrideV2Client) Get(req schedulev2.GetScheduleOverrideRequest) (*schedulev2.GetScheduleOverrideResponse, error)
- func (cli *OpsGenieScheduleOverrideV2Client) List(req schedulev2.ListScheduleOverrideRequest) (*schedulev2.ListScheduleOverrideResponse, error)
- func (cli *OpsGenieScheduleOverrideV2Client) SetOpsGenieClient(ogCli OpsGenieClient)
- func (cli *OpsGenieScheduleOverrideV2Client) Update(req schedulev2.UpdateScheduleOverrideRequest) (*schedulev2.UpdateScheduleOverrideResponse, error)
- type OpsGenieScheduleRotationV2Client
- func (cli *OpsGenieScheduleRotationV2Client) Create(req schedulev2.CreateScheduleRotationRequest) (*schedulev2.CreateScheduleRotationResponse, error)
- func (cli *OpsGenieScheduleRotationV2Client) Delete(req schedulev2.DeleteScheduleRotationRequest) (*schedulev2.DeleteScheduleRotationResponse, error)
- func (cli *OpsGenieScheduleRotationV2Client) Get(req schedulev2.GetScheduleRotationRequest) (*schedulev2.GetScheduleRotationResponse, error)
- func (cli *OpsGenieScheduleRotationV2Client) List(req schedulev2.ListScheduleRotationRequest) (*schedulev2.ListScheduleRotationResponse, error)
- func (cli *OpsGenieScheduleRotationV2Client) SetOpsGenieClient(ogCli OpsGenieClient)
- func (cli *OpsGenieScheduleRotationV2Client) Update(req schedulev2.UpdateScheduleRotationRequest) (*schedulev2.UpdateScheduleRotationResponse, error)
- type OpsGenieScheduleV2Client
- func (cli *OpsGenieScheduleV2Client) Create(req schedulev2.CreateScheduleRequest) (*schedulev2.CreateScheduleResponse, error)
- func (cli *OpsGenieScheduleV2Client) Delete(req schedulev2.DeleteScheduleRequest) (*schedulev2.DeleteScheduleResponse, error)
- func (cli *OpsGenieScheduleV2Client) Get(req schedulev2.GetScheduleRequest) (*schedulev2.GetScheduleResponse, error)
- func (cli *OpsGenieScheduleV2Client) List(req schedulev2.ListScheduleRequest) (*schedulev2.ListScheduleResponse, error)
- func (cli *OpsGenieScheduleV2Client) SetOpsGenieClient(ogCli OpsGenieClient)
- func (cli *OpsGenieScheduleV2Client) Update(req schedulev2.UpdateScheduleRequest) (*schedulev2.UpdateScheduleResponse, error)
- type OpsGenieTeamClient
- func (cli *OpsGenieTeamClient) Create(req team.CreateTeamRequest) (*team.CreateTeamResponse, error)
- func (cli *OpsGenieTeamClient) Delete(req team.DeleteTeamRequest) (*team.DeleteTeamResponse, error)
- func (cli *OpsGenieTeamClient) Get(req team.GetTeamRequest) (*team.GetTeamResponse, error)
- func (cli *OpsGenieTeamClient) List(req team.ListTeamsRequest) (*team.ListTeamsResponse, error)
- func (cli *OpsGenieTeamClient) ListLogs(req team.ListTeamLogsRequest) (*team.ListTeamLogsResponse, error)
- func (cli *OpsGenieTeamClient) SetOpsGenieClient(ogCli OpsGenieClient)
- func (cli *OpsGenieTeamClient) Update(req team.UpdateTeamRequest) (*team.UpdateTeamResponse, error)
- type OpsGenieUserClient
- func (cli *OpsGenieUserClient) Create(req user.CreateUserRequest) (*user.CreateUserResponse, error)deprecated
- func (cli *OpsGenieUserClient) Delete(req user.DeleteUserRequest) (*user.DeleteUserResponse, error)deprecated
- func (cli *OpsGenieUserClient) Get(req user.GetUserRequest) (*user.GetUserResponse, error)deprecated
- func (cli *OpsGenieUserClient) List(req user.ListUsersRequest) (*user.ListUsersResponse, error)deprecated
- func (cli *OpsGenieUserClient) SetOpsGenieClient(ogCli OpsGenieClient)deprecated
- func (cli *OpsGenieUserClient) Update(req user.UpdateUserRequest) (*user.UpdateUserResponse, error)deprecated
- type OpsGenieUserV2Client
- func (cli *OpsGenieUserV2Client) Create(req userv2.CreateUserRequest) (*userv2.CreateUserResponse, error)
- func (cli *OpsGenieUserV2Client) Delete(req userv2.DeleteUserRequest) (*userv2.DeleteUserResponse, error)
- func (cli *OpsGenieUserV2Client) Get(req userv2.GetUserRequest) (*userv2.GetUserResponse, error)
- func (cli *OpsGenieUserV2Client) List(req userv2.ListUsersRequest) (*userv2.ListUsersResponse, error)
- func (cli *OpsGenieUserV2Client) ListEscalations(req userv2.ListUserEscalationsRequest) (*userv2.ListUserEscalationsResponse, error)
- func (cli *OpsGenieUserV2Client) ListForwardingRules(req userv2.ListUserForwardingRulesRequest) (*userv2.ListUserForwardingRulesResponse, error)
- func (cli *OpsGenieUserV2Client) ListSchedules(req userv2.ListUserSchedulesRequest) (*userv2.ListUserSchedulesResponse, error)
- func (cli *OpsGenieUserV2Client) ListTeams(req userv2.ListUserTeamsRequest) (*userv2.ListUserTeamsResponse, error)
- func (cli *OpsGenieUserV2Client) SetOpsGenieClient(ogCli OpsGenieClient)
- func (cli *OpsGenieUserV2Client) Update(req userv2.UpdateUserRequest) (*userv2.UpdateUserResponse, error)
- type ProxyConfiguration
- type Request
- type Response
- type ResponseMeta
- type RestClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncRequestResponse ¶
type AsyncRequestResponse struct { ResponseMeta RequestID string `json:"requestId"` }
Response for async processing requests
type HTTPTransportSettings ¶
type HTTPTransportSettings struct { ConnectionTimeout time.Duration RequestTimeout time.Duration MaxRetryAttempts int }
HTTPTransportSettings is the type that contains the HTTP transport layer configurations of the OpsGenieClient.
type OpsGenieAlertClient
deprecated
type OpsGenieAlertClient struct {
OpsGenieClient
}
Deprecated: Please use OpsGenieAlertV2Client
func (*OpsGenieAlertClient) Acknowledge
deprecated
func (cli *OpsGenieAlertClient) Acknowledge(req alerts.AcknowledgeAlertRequest) (*alerts.AcknowledgeAlertResponse, error)
Deprecated: Acknowledge method acknowledges an alert at OpsGenie.
func (*OpsGenieAlertClient) AddDetails
deprecated
func (cli *OpsGenieAlertClient) AddDetails(req alerts.AddDetailsAlertRequest) (*alerts.AddDetailsAlertResponse, error)
Deprecated: AddDetails method adds details to an alert at OpsGenie.
func (*OpsGenieAlertClient) AddNote
deprecated
func (cli *OpsGenieAlertClient) AddNote(req alerts.AddNoteAlertRequest) (*alerts.AddNoteAlertResponse, error)
Deprecated: AddNote method adds a note to an alert at OpsGenie.
func (*OpsGenieAlertClient) AddRecipient
deprecated
func (cli *OpsGenieAlertClient) AddRecipient(req alerts.AddRecipientAlertRequest) (*alerts.AddRecipientAlertResponse, error)
Deprecated: AddRecipient method adds recipient to an alert at OpsGenie.
func (*OpsGenieAlertClient) AddTags
deprecated
func (cli *OpsGenieAlertClient) AddTags(req alerts.AddTagsAlertRequest) (*alerts.AddTagsAlertResponse, error)
Deprecated: AddTags method adds tags to an alert at OpsGenie.
func (*OpsGenieAlertClient) AddTeam
deprecated
func (cli *OpsGenieAlertClient) AddTeam(req alerts.AddTeamAlertRequest) (*alerts.AddTeamAlertResponse, error)
Deprecated: AddTeam method adds a team to an alert at OpsGenie.
func (*OpsGenieAlertClient) AssignOwner
deprecated
func (cli *OpsGenieAlertClient) AssignOwner(req alerts.AssignOwnerAlertRequest) (*alerts.AssignOwnerAlertResponse, error)
Deprecated: AssignOwner method assigns the specified user as the owner of the alert at OpsGenie.
func (*OpsGenieAlertClient) AttachFile
deprecated
func (cli *OpsGenieAlertClient) AttachFile(req alerts.AttachFileAlertRequest) (*alerts.AttachFileAlertResponse, error)
Deprecated: AttachFile method attaches a file to an alert at OpsGenie.
func (*OpsGenieAlertClient) Close
deprecated
func (cli *OpsGenieAlertClient) Close(req alerts.CloseAlertRequest) (*alerts.CloseAlertResponse, error)
Deprecated: Close method closes an alert at OpsGenie.
func (*OpsGenieAlertClient) Count
deprecated
func (cli *OpsGenieAlertClient) Count(req alerts.CountAlertRequest) (*alerts.CountAlertResponse, error)
Deprecated: Count method counts alerts at OpsGenie.
func (*OpsGenieAlertClient) Create
deprecated
func (cli *OpsGenieAlertClient) Create(req alerts.CreateAlertRequest) (*alerts.CreateAlertResponse, error)
Deprecated: Create method creates an alert at OpsGenie.
func (*OpsGenieAlertClient) Delete
deprecated
func (cli *OpsGenieAlertClient) Delete(req alerts.DeleteAlertRequest) (*alerts.DeleteAlertResponse, error)
Deprecated: Delete method deletes an alert at OpsGenie.
func (*OpsGenieAlertClient) EscalateToNext
deprecated
func (cli *OpsGenieAlertClient) EscalateToNext(req alerts.EscalateToNextAlertRequest) (*alerts.EscalateToNextAlertResponse, error)
Deprecated: UnAcknowledge method unacknowledges an alert at OpsGenie.
func (*OpsGenieAlertClient) ExecuteAction
deprecated
func (cli *OpsGenieAlertClient) ExecuteAction(req alerts.ExecuteActionAlertRequest) (*alerts.ExecuteActionAlertResponse, error)
Deprecated: ExecuteAction method executes a custom action on an alert at OpsGenie.
func (*OpsGenieAlertClient) Get
deprecated
func (cli *OpsGenieAlertClient) Get(req alerts.GetAlertRequest) (*alerts.GetAlertResponse, error)
Deprecated: Get method retrieves specified alert details from OpsGenie.
func (*OpsGenieAlertClient) List
deprecated
func (cli *OpsGenieAlertClient) List(req alerts.ListAlertsRequest) (*alerts.ListAlertsResponse, error)
Deprecated: List method retrieves alerts from OpsGenie.
func (*OpsGenieAlertClient) ListLogs
deprecated
func (cli *OpsGenieAlertClient) ListLogs(req alerts.ListAlertLogsRequest) (*alerts.ListAlertLogsResponse, error)
Deprecated: ListLogs method retrieves activity logs of an alert from OpsGenie.
func (*OpsGenieAlertClient) ListNotes
deprecated
func (cli *OpsGenieAlertClient) ListNotes(req alerts.ListAlertNotesRequest) (*alerts.ListAlertNotesResponse, error)
Deprecated: ListNotes method retrieves notes of an alert from OpsGenie.
func (*OpsGenieAlertClient) ListRecipients
deprecated
func (cli *OpsGenieAlertClient) ListRecipients(req alerts.ListAlertRecipientsRequest) (*alerts.ListAlertRecipientsResponse, error)
Deprecated: ListRecipients method retrieves recipients of an alert from OpsGenie.
func (*OpsGenieAlertClient) RemoveDetails
deprecated
func (cli *OpsGenieAlertClient) RemoveDetails(req alerts.RemoveDetailsAlertRequest) (*alerts.RemoveDetailsAlertResponse, error)
Deprecated: RemoveDetails method removes details from an alert at OpsGenie.
func (*OpsGenieAlertClient) RemoveTags
deprecated
func (cli *OpsGenieAlertClient) RemoveTags(req alerts.RemoveTagsAlertRequest) (*alerts.RemoveTagsAlertResponse, error)
Deprecated: RemoveTags method removes tags from an alert at OpsGenie.
func (*OpsGenieAlertClient) Renotify
deprecated
func (cli *OpsGenieAlertClient) Renotify(req alerts.RenotifyAlertRequest) (*alerts.RenotifyAlertResponse, error)
Deprecated: Renotify re-notifies recipients at OpsGenie.
func (*OpsGenieAlertClient) SetOpsGenieClient
deprecated
func (cli *OpsGenieAlertClient) SetOpsGenieClient(ogCli OpsGenieClient)
Deprecated: SetOpsGenieClient sets the embedded OpsGenieClient type of the OpsGenieAlertClient.
func (*OpsGenieAlertClient) Snooze
deprecated
func (cli *OpsGenieAlertClient) Snooze(req alerts.SnoozeAlertRequest) (*alerts.SnoozeAlertResponse, error)
Deprecated: Snooze method snoozes an alert at OpsGenie.
func (*OpsGenieAlertClient) TakeOwnership
deprecated
func (cli *OpsGenieAlertClient) TakeOwnership(req alerts.TakeOwnershipAlertRequest) (*alerts.TakeOwnershipAlertResponse, error)
Deprecated: TakeOwnership method takes the ownership of an alert at OpsGenie.
func (*OpsGenieAlertClient) UnAcknowledge
deprecated
func (cli *OpsGenieAlertClient) UnAcknowledge(req alerts.UnAcknowledgeAlertRequest) (*alerts.UnAcknowledgeAlertResponse, error)
Deprecated: UnAcknowledge method unacknowledges an alert at OpsGenie.
type OpsGenieAlertV2Client ¶
type OpsGenieAlertV2Client struct {
RestClient
}
func (*OpsGenieAlertV2Client) Acknowledge ¶
func (cli *OpsGenieAlertV2Client) Acknowledge(req alertsv2.AcknowledgeRequest) (*AsyncRequestResponse, error)
Sends acknowledge request an alert
func (*OpsGenieAlertV2Client) AddDetails ¶
func (cli *OpsGenieAlertV2Client) AddDetails(req alertsv2.AddDetailsRequest) (*AsyncRequestResponse, error)
Adds details to the alert
func (*OpsGenieAlertV2Client) AddNote ¶
func (cli *OpsGenieAlertV2Client) AddNote(req alertsv2.AddNoteRequest) (*AsyncRequestResponse, error)
Adds a note to the alert
func (*OpsGenieAlertV2Client) AddTags ¶
func (cli *OpsGenieAlertV2Client) AddTags(req alertsv2.AddTagsToAlertRequest) (*AsyncRequestResponse, error)
Adds a tag to the alert
func (*OpsGenieAlertV2Client) AddTeamToAlert ¶
func (cli *OpsGenieAlertV2Client) AddTeamToAlert(req alertsv2.AddTeamToAlertRequest) (*AsyncRequestResponse, error)
Adds a team to the alert
func (*OpsGenieAlertV2Client) Assign ¶
func (cli *OpsGenieAlertV2Client) Assign(req alertsv2.AssignAlertRequest) (*AsyncRequestResponse, error)
Assigns an alert to a user
func (*OpsGenieAlertV2Client) AttachFile ¶
func (cli *OpsGenieAlertV2Client) AttachFile(req alertsv2.AddAlertAttachmentRequest) (*alertsv2.AddAlertAttachmentResponse, error)
adds the attachment file to specified alert
func (*OpsGenieAlertV2Client) Close ¶
func (cli *OpsGenieAlertV2Client) Close(req alertsv2.CloseRequest) (*AsyncRequestResponse, error)
Sends close request for an alert
func (*OpsGenieAlertV2Client) Create ¶
func (cli *OpsGenieAlertV2Client) Create(req alertsv2.CreateAlertRequest) (*AsyncRequestResponse, error)
Creates an alert
func (*OpsGenieAlertV2Client) CreateSavedSearch ¶
func (cli *OpsGenieAlertV2Client) CreateSavedSearch(req savedsearches.CreateSavedSearchRequest) (*savedsearches.CreateSavedSearchResponse, error)
Creates a SavedSearch
func (*OpsGenieAlertV2Client) Delete ¶
func (cli *OpsGenieAlertV2Client) Delete(req alertsv2.DeleteAlertRequest) (*AsyncRequestResponse, error)
Deletes an alert
func (*OpsGenieAlertV2Client) DeleteAttachment ¶
func (cli *OpsGenieAlertV2Client) DeleteAttachment(req alertsv2.DeleteAlertAttachmentRequest) (*alertsv2.DeleteAlertAttachmentResponse, error)
deletes the specified alert attachment
func (*OpsGenieAlertV2Client) DeleteSavedSearch ¶
func (cli *OpsGenieAlertV2Client) DeleteSavedSearch(req savedsearches.DeleteSavedSearchRequest) (*savedsearches.DeleteSavedSearchResponse, error)
Deletes the SavedSearch
func (*OpsGenieAlertV2Client) EscalateToNext ¶
func (cli *OpsGenieAlertV2Client) EscalateToNext(req alertsv2.EscalateToNextRequest) (*AsyncRequestResponse, error)
Sends escalation to next request
func (*OpsGenieAlertV2Client) ExecuteCustomAction ¶
func (cli *OpsGenieAlertV2Client) ExecuteCustomAction(req alertsv2.ExecuteCustomActionRequest) (*AsyncRequestResponse, error)
Sends custom execution action for an alert
func (*OpsGenieAlertV2Client) Get ¶
func (cli *OpsGenieAlertV2Client) Get(req alertsv2.GetAlertRequest) (*alertsv2.DetailedAlertResponse, error)
Returns AlertDetails
func (*OpsGenieAlertV2Client) GetAsyncRequestStatus ¶
func (cli *OpsGenieAlertV2Client) GetAsyncRequestStatus(req alertsv2.GetAsyncRequestStatusRequest) (*alertsv2.GetAsyncRequestStatusResponse, error)
Retrieves the status of the async request
func (*OpsGenieAlertV2Client) GetAttachmentFile ¶
func (cli *OpsGenieAlertV2Client) GetAttachmentFile(req alertsv2.GetAlertAttachmentRequest) (*alertsv2.GetAlertAttachmentResponse, error)
retrieves the specified attachment with a download link
func (*OpsGenieAlertV2Client) GetSavedSearch ¶
func (cli *OpsGenieAlertV2Client) GetSavedSearch(req savedsearches.GetSavedSearchRequest) (*savedsearches.GetSavedSearchResponse, error)
Retrieves the SavedSearch
func (*OpsGenieAlertV2Client) List ¶
func (cli *OpsGenieAlertV2Client) List(req alertsv2.ListAlertRequest) (*alertsv2.ListAlertResponse, error)
Retrieves the alerts from OpsGenie
func (*OpsGenieAlertV2Client) ListAlertAttachments ¶
func (cli *OpsGenieAlertV2Client) ListAlertAttachments(req alertsv2.ListAlertAttachmentRequest) (*alertsv2.ListAlertAttachmentsResponse, error)
returns a list of attachment meta information for the specified alert
func (*OpsGenieAlertV2Client) ListAlertLogs ¶
func (cli *OpsGenieAlertV2Client) ListAlertLogs(req alertsv2.ListAlertLogsRequest) (*alertsv2.ListAlertLogsResponse, error)
Retrieves the alert logs from OpsGenie
func (*OpsGenieAlertV2Client) ListAlertNotes ¶
func (cli *OpsGenieAlertV2Client) ListAlertNotes(req alertsv2.ListAlertNotesRequest) (*alertsv2.ListAlertNotesResponse, error)
Retrieves the alert notes from OpsGenie
func (*OpsGenieAlertV2Client) ListAlertRecipients ¶
func (cli *OpsGenieAlertV2Client) ListAlertRecipients(req alertsv2.ListAlertRecipientsRequest) (*alertsv2.ListAlertRecipientsResponse, error)
Retrieves the alert recipients from OpsGenie
func (*OpsGenieAlertV2Client) ListSavedSearches ¶
func (cli *OpsGenieAlertV2Client) ListSavedSearches(req alertsv2.LisSavedSearchRequest) (*savedsearches.ListSavedSearchResponse, error)
Retrieves list of saved searches
func (*OpsGenieAlertV2Client) RemoveDetails ¶
func (cli *OpsGenieAlertV2Client) RemoveDetails(req alertsv2.RemoveDetailsRequest) (*AsyncRequestResponse, error)
Removes the details from the alert
func (*OpsGenieAlertV2Client) RemoveTags ¶
func (cli *OpsGenieAlertV2Client) RemoveTags(req alertsv2.RemoveTagsRequest) (*AsyncRequestResponse, error)
Removes a tag from the alert
func (*OpsGenieAlertV2Client) SetOpsGenieClient ¶
func (cli *OpsGenieAlertV2Client) SetOpsGenieClient(ogCli OpsGenieClient)
SetOpsGenieClient sets the embedded OpsGenieClient type of the OpsGenieAlertV2Client.
func (*OpsGenieAlertV2Client) Snooze ¶
func (cli *OpsGenieAlertV2Client) Snooze(req alertsv2.SnoozeRequest) (*AsyncRequestResponse, error)
Sends snooze request for an alert
func (*OpsGenieAlertV2Client) Unacknowledge ¶
func (cli *OpsGenieAlertV2Client) Unacknowledge(req alertsv2.UnacknowledgeRequest) (*AsyncRequestResponse, error)
Sends unacknowledge request for an alert
func (*OpsGenieAlertV2Client) UpdateSavedSearch ¶
func (cli *OpsGenieAlertV2Client) UpdateSavedSearch(req savedsearches.UpdateSavedSearchRequest) (*savedsearches.UpdateSavedSearchResponse, error)
Updates the SavedSearch
type OpsGenieClient ¶
type OpsGenieClient struct {
// contains filtered or unexported fields
}
OpsGenieClient is a general data type used for: - authenticating callers through their API keys and - instantiating "alert", "heartbeat", "integration" and "policy" clients - setting HTTP transport layer configurations - setting Proxy configurations
func (*OpsGenieClient) APIKey ¶
func (cli *OpsGenieClient) APIKey() string
APIKey returns the API Key value that OpsGenieClient uses to authenticate at OpsGenie.
func (*OpsGenieClient) Alert ¶
func (cli *OpsGenieClient) Alert() (*OpsGenieAlertClient, error)
Alert instantiates a new OpsGenieAlertClient. Deprecated: Please use AlertV2() method
func (*OpsGenieClient) AlertV2 ¶
func (cli *OpsGenieClient) AlertV2() (*OpsGenieAlertV2Client, error)
AlertV2 instantiates a new OpsGenieAlertV2Client.
func (*OpsGenieClient) Contact ¶
func (cli *OpsGenieClient) Contact() (*OpsGenieContactClient, error)
Alert instantiates a new OpsGenieContactClient.
func (*OpsGenieClient) Escalation ¶
func (cli *OpsGenieClient) Escalation() (*OpsGenieEscalationClient, error)
Escalation instantiates a new OpsGenieEscalationClient.
func (*OpsGenieClient) Heartbeat ¶
func (cli *OpsGenieClient) Heartbeat() (*OpsGenieHeartbeatClient, error)
Heartbeat instantiates a new OpsGenieHeartbeatClient.
func (*OpsGenieClient) Integration ¶
func (cli *OpsGenieClient) Integration() (*OpsGenieIntegrationClient, error)
Integration instantiates a new OpsGenieIntegrationClient.
func (*OpsGenieClient) Log ¶
func (cli *OpsGenieClient) Log() (*OpsGenieLogClient, error)
func (*OpsGenieClient) NotificationV2 ¶
func (cli *OpsGenieClient) NotificationV2() (*OpsGenieNotificationV2Client, error)
NotificationV2 instantiates a new OpsGenieNotificationV2Client
func (*OpsGenieClient) OpsGenieAPIUrl ¶
func (cli *OpsGenieClient) OpsGenieAPIUrl() string
OpsGenieAPIUrl returns the current endpoint(base URL) that requests will send.
func (*OpsGenieClient) Policy ¶
func (cli *OpsGenieClient) Policy() (*OpsGeniePolicyClient, error)
Policy instantiates a new OpsGeniePolicyClient.
func (*OpsGenieClient) Schedule ¶
func (cli *OpsGenieClient) Schedule() (*OpsGenieScheduleClient, error)
Schedule instantiates a new OpsGenieScheduleClient.
func (*OpsGenieClient) ScheduleOverride ¶
func (cli *OpsGenieClient) ScheduleOverride() (*OpsGenieScheduleOverrideClient, error)
ScheduleOverride instantiates a new OpsGenieScheduleOverrideClient.
func (*OpsGenieClient) ScheduleOverrideV2 ¶
func (cli *OpsGenieClient) ScheduleOverrideV2() (*OpsGenieScheduleOverrideV2Client, error)
ScheduleOverrideV2 instantiates a new OpsGenieScheduleOverrideV2Client
func (*OpsGenieClient) ScheduleRotationV2 ¶
func (cli *OpsGenieClient) ScheduleRotationV2() (*OpsGenieScheduleRotationV2Client, error)
ScheduleRotationV2 instantiates a new OpsGenieScheduleRotationV2Client
func (*OpsGenieClient) ScheduleV2 ¶
func (cli *OpsGenieClient) ScheduleV2() (*OpsGenieScheduleV2Client, error)
ScheduleV2 instantiates a new OpsGenieScheduleV2Client
func (*OpsGenieClient) SetAPIKey ¶
func (cli *OpsGenieClient) SetAPIKey(key string)
SetAPIKey sets API Key of the OpsGenieClient and authenticates callers through the API Key at OpsGenie.
func (*OpsGenieClient) SetHTTPTransportSettings ¶
func (cli *OpsGenieClient) SetHTTPTransportSettings(settings *HTTPTransportSettings)
SetHTTPTransportSettings sets HTTP transport layer configurations of the OpsGenieClient.
func (*OpsGenieClient) SetOpsGenieAPIUrl ¶
func (cli *OpsGenieClient) SetOpsGenieAPIUrl(url string)
SetOpsGenieAPIUrl sets the endpoint(base URL) that requests will send. It can be used for testing purpose.
func (*OpsGenieClient) SetProxyConfiguration ¶
func (cli *OpsGenieClient) SetProxyConfiguration(conf *ProxyConfiguration)
SetProxyConfiguration sets proxy configurations of the OpsGenieClient.
func (*OpsGenieClient) Team ¶
func (cli *OpsGenieClient) Team() (*OpsGenieTeamClient, error)
Team instantiates a new OpsGenieTeamClient.
func (*OpsGenieClient) User ¶
func (cli *OpsGenieClient) User() (*OpsGenieUserClient, error)
User instantiates a new OpsGenieUserClient. Deprecated: Please use UserV2() method
func (*OpsGenieClient) UserV2 ¶
func (cli *OpsGenieClient) UserV2() (*OpsGenieUserV2Client, error)
UserV2 instantiates a new OpsGenieUserV2Client.
type OpsGenieContactClient ¶
type OpsGenieContactClient struct {
OpsGenieClient
}
OpsGenieContactClient is the data type to make Contact API requests.
func (*OpsGenieContactClient) Create ¶
func (cli *OpsGenieContactClient) Create(req contact.CreateContactRequest) (*contact.CreateContactResponse, error)
Create method creates a contact at OpsGenie.
func (*OpsGenieContactClient) Delete ¶
func (cli *OpsGenieContactClient) Delete(req contact.DeleteContactRequest) (*contact.DeleteContactResponse, error)
Delete method deletes a contact at OpsGenie.
func (*OpsGenieContactClient) Disable ¶
func (cli *OpsGenieContactClient) Disable(req contact.DisableContactRequest) (*contact.DisableContactResponse, error)
Disable method disables a contact at OpsGenie.
func (*OpsGenieContactClient) Enable ¶
func (cli *OpsGenieContactClient) Enable(req contact.EnableContactRequest) (*contact.EnableContactResponse, error)
Enable method enables a contact at OpsGenie.
func (*OpsGenieContactClient) Get ¶
func (cli *OpsGenieContactClient) Get(req contact.GetContactRequest) (*contact.GetContactResponse, error)
Get method retrieves specified contact details from OpsGenie.
func (*OpsGenieContactClient) SetOpsGenieClient ¶
func (cli *OpsGenieContactClient) SetOpsGenieClient(ogCli OpsGenieClient)
SetOpsGenieClient sets the embedded OpsGenieClient type of the OpsGenieContactClient.
func (*OpsGenieContactClient) Update ¶
func (cli *OpsGenieContactClient) Update(req contact.UpdateContactRequest) (*contact.UpdateContactResponse, error)
Update method updates a contact at OpsGenie.
type OpsGenieEscalationClient ¶
type OpsGenieEscalationClient struct {
OpsGenieClient
}
OpsGenieEscalationClient is the data type to make Escalation API requests.
func (*OpsGenieEscalationClient) Create ¶
func (cli *OpsGenieEscalationClient) Create(req escalation.CreateEscalationRequest) (*escalation.CreateEscalationResponse, error)
Create method creates a escalation at OpsGenie.
func (*OpsGenieEscalationClient) Delete ¶
func (cli *OpsGenieEscalationClient) Delete(req escalation.DeleteEscalationRequest) (*escalation.DeleteEscalationResponse, error)
Delete method deletes a escalation at OpsGenie.
func (*OpsGenieEscalationClient) Get ¶
func (cli *OpsGenieEscalationClient) Get(req escalation.GetEscalationRequest) (*escalation.GetEscalationResponse, error)
Get method retrieves specified escalation details from OpsGenie.
func (*OpsGenieEscalationClient) List ¶
func (cli *OpsGenieEscalationClient) List(req escalation.ListEscalationsRequest) (*escalation.ListEscalationsResponse, error)
List method retrieves escalations from OpsGenie.
func (*OpsGenieEscalationClient) SetOpsGenieClient ¶
func (cli *OpsGenieEscalationClient) SetOpsGenieClient(ogCli OpsGenieClient)
SetOpsGenieClient sets the embedded OpsGenieClient type of the OpsGenieEscalationClient.
func (*OpsGenieEscalationClient) Update ¶
func (cli *OpsGenieEscalationClient) Update(req escalation.UpdateEscalationRequest) (*escalation.UpdateEscalationResponse, error)
Update method updates a escalation at OpsGenie.
type OpsGenieHeartbeatClient ¶
type OpsGenieHeartbeatClient struct {
RestClient
}
OpsGenieHeartbeatClient is the data type to make Heartbeat API requests.
func (*OpsGenieHeartbeatClient) Add ¶
func (cli *OpsGenieHeartbeatClient) Add(req heartbeat.AddHeartbeatRequest) (*heartbeat.AddHeartbeatResponse, error)
Add method creates a heartbeat at OpsGenie.
func (*OpsGenieHeartbeatClient) Delete ¶
func (cli *OpsGenieHeartbeatClient) Delete(req heartbeat.DeleteHeartbeatRequest) (*heartbeat.DeleteHeartbeatResponse, error)
Delete method deletes an heartbeat from OpsGenie.
func (*OpsGenieHeartbeatClient) Disable ¶
func (cli *OpsGenieHeartbeatClient) Disable(req heartbeat.DisableHeartbeatRequest) (*heartbeat.DisableHeartbeatResponse, error)
Disable method disables an heartbeat at OpsGenie.
func (*OpsGenieHeartbeatClient) Enable ¶
func (cli *OpsGenieHeartbeatClient) Enable(req heartbeat.EnableHeartbeatRequest) (*heartbeat.EnableHeartbeatResponse, error)
Enable method enables an heartbeat at OpsGenie.
func (*OpsGenieHeartbeatClient) Get ¶
func (cli *OpsGenieHeartbeatClient) Get(req heartbeat.GetHeartbeatRequest) (*heartbeat.GetHeartbeatResponse, error)
Get method retrieves an heartbeat with details from OpsGenie.
func (*OpsGenieHeartbeatClient) List
deprecated
func (cli *OpsGenieHeartbeatClient) List(req heartbeat.ListHeartbeatsRequest) (*heartbeat.ListHeartbeatsResponse, error)
Deprecated: List method retrieves heartbeats from OpsGenie.
func (*OpsGenieHeartbeatClient) Ping ¶
func (cli *OpsGenieHeartbeatClient) Ping(req heartbeat.PingHeartbeatRequest) (*AsyncRequestResponse, error)
Send method sends an Heartbeat Signal to OpsGenie.
func (*OpsGenieHeartbeatClient) Send
deprecated
func (cli *OpsGenieHeartbeatClient) Send(req heartbeat.SendHeartbeatRequest) (*heartbeat.SendHeartbeatResponse, error)
Deprecated: Send method sends an Heartbeat Signal to OpsGenie.
func (*OpsGenieHeartbeatClient) SetOpsGenieClient ¶
func (cli *OpsGenieHeartbeatClient) SetOpsGenieClient(ogCli OpsGenieClient)
SetOpsGenieClient sets the embedded OpsGenieClient type of the OpsGenieHeartbeatClient.
func (*OpsGenieHeartbeatClient) Update ¶
func (cli *OpsGenieHeartbeatClient) Update(req heartbeat.UpdateHeartbeatRequest) (*heartbeat.UpdateHeartbeatResponse, error)
Update method changes configuration of an existing heartbeat at OpsGenie.
type OpsGenieIntegrationClient ¶
type OpsGenieIntegrationClient struct {
OpsGenieClient
}
OpsGenieIntegrationClient is the data type to make Integration API requests.
func (*OpsGenieIntegrationClient) Disable ¶
func (cli *OpsGenieIntegrationClient) Disable(req integration.DisableIntegrationRequest) (*integration.DisableIntegrationResponse, error)
Disable method disables an Integration at OpsGenie.
func (*OpsGenieIntegrationClient) Enable ¶
func (cli *OpsGenieIntegrationClient) Enable(req integration.EnableIntegrationRequest) (*integration.EnableIntegrationResponse, error)
Enable method enables an Integration at OpsGenie.
func (*OpsGenieIntegrationClient) SetOpsGenieClient ¶
func (cli *OpsGenieIntegrationClient) SetOpsGenieClient(ogCli OpsGenieClient)
SetOpsGenieClient sets the embedded OpsGenieClient type of the OpsGenieIntegrationClient.
type OpsGenieLogClient ¶
type OpsGenieLogClient struct {
RestClient
}
OpsGenieLogClient is the data type to make Customer Log rule API requests.
func (*OpsGenieLogClient) ListLogFiles ¶
func (cli *OpsGenieLogClient) ListLogFiles(req logs.ListLogFilesRequest) (*logs.ListLogFilesResponse, error)
func (*OpsGenieLogClient) LogFileDownloadLink ¶
func (cli *OpsGenieLogClient) LogFileDownloadLink(req logs.GenerateLogFileDownloadRequest) (string, error)
func (*OpsGenieLogClient) SetOpsGenieClient ¶
func (cli *OpsGenieLogClient) SetOpsGenieClient(ogCli OpsGenieClient)
SetOpsGenieClient sets the embedded OpsGenieClient type of the OpsGenieScheduleRotationV2Client.
type OpsGenieNotificationV2Client ¶
type OpsGenieNotificationV2Client struct {
RestClient
}
OpsGenieNotificationV2Client is the data type to make Notification rule API requests.
func (*OpsGenieNotificationV2Client) Create ¶
func (cli *OpsGenieNotificationV2Client) Create(req notificationv2.CreateNotificationRequest) ( *notificationv2.CreateNotificationResponse, error, )
Creates method creates a notification rule at OpsGenie.
func (*OpsGenieNotificationV2Client) Delete ¶
func (cli *OpsGenieNotificationV2Client) Delete(req notificationv2.DeleteNotificationRequest) ( *notificationv2.DeleteNotificationResponse, error, )
Delete method deletes specified notification rule.
func (*OpsGenieNotificationV2Client) Disable ¶
func (cli *OpsGenieNotificationV2Client) Disable(req notificationv2.DisableNotificationRequest) ( *notificationv2.DisableNotificationResponse, error, )
Enable method disables specified notification rule.
func (*OpsGenieNotificationV2Client) Enable ¶
func (cli *OpsGenieNotificationV2Client) Enable(req notificationv2.EnableNotificationRequest) ( *notificationv2.EnableNotificationResponse, error, )
Enable method enables specified notification rule.
func (*OpsGenieNotificationV2Client) Get ¶
func (cli *OpsGenieNotificationV2Client) Get(req notificationv2.GetNotificationRequest) ( *notificationv2.GetNotificationResponse, error, )
Get method returns a notification from OpsGenie.
func (*OpsGenieNotificationV2Client) List ¶
func (cli *OpsGenieNotificationV2Client) List(req notificationv2.ListNotificationRequest) ( *notificationv2.ListNotificationResponse, error, )
List method returns list of existing notification rules depending on specified criteria.
func (*OpsGenieNotificationV2Client) SetOpsGenieClient ¶
func (cli *OpsGenieNotificationV2Client) SetOpsGenieClient(ogCli OpsGenieClient)
SetOpsGenieClient sets the embedded OpsGenieClient type of the OpsGenieNotificationV2Client.
func (*OpsGenieNotificationV2Client) Update ¶
func (cli *OpsGenieNotificationV2Client) Update(req notificationv2.UpdateNotificationRequest) ( *notificationv2.UpdateNotificationResponse, error, )
Update method updates specified notification rule.
type OpsGeniePolicyClient ¶
type OpsGeniePolicyClient struct {
OpsGenieClient
}
OpsGeniePolicyClient is the data type to make Policy API requests.
func (*OpsGeniePolicyClient) Disable ¶
func (cli *OpsGeniePolicyClient) Disable(req policy.DisablePolicyRequest) (*policy.DisablePolicyResponse, error)
Disable method disables an Policy at OpsGenie.
func (*OpsGeniePolicyClient) Enable ¶
func (cli *OpsGeniePolicyClient) Enable(req policy.EnablePolicyRequest) (*policy.EnablePolicyResponse, error)
Enable method enables an Policy at OpsGenie.
func (*OpsGeniePolicyClient) SetOpsGenieClient ¶
func (cli *OpsGeniePolicyClient) SetOpsGenieClient(ogCli OpsGenieClient)
SetOpsGenieClient sets the embedded OpsGenieClient type of the OpsGeniePolicyClient.
type OpsGenieScheduleClient ¶
type OpsGenieScheduleClient struct {
OpsGenieClient
}
OpsGenieScheduleClient is the data type to make Schedule API requests.
func (*OpsGenieScheduleClient) Create ¶
func (cli *OpsGenieScheduleClient) Create(req schedule.CreateScheduleRequest) (*schedule.CreateScheduleResponse, error)
Create method creates a schedule at OpsGenie.
func (*OpsGenieScheduleClient) Delete ¶
func (cli *OpsGenieScheduleClient) Delete(req schedule.DeleteScheduleRequest) (*schedule.DeleteScheduleResponse, error)
Delete method deletes a schedule at OpsGenie.
func (*OpsGenieScheduleClient) Get ¶
func (cli *OpsGenieScheduleClient) Get(req schedule.GetScheduleRequest) (*schedule.GetScheduleResponse, error)
Get method retrieves specified schedule details from OpsGenie.
func (*OpsGenieScheduleClient) GetTimeline ¶
func (cli *OpsGenieScheduleClient) GetTimeline(req schedule.GetTimelineScheduleRequest) (*schedule.GetTimelineScheduleResponse, error)
GetTimeline method retrieves Timeline schedules from OpsGenie.
func (*OpsGenieScheduleClient) List ¶
func (cli *OpsGenieScheduleClient) List(req schedule.ListSchedulesRequest) (*schedule.ListSchedulesResponse, error)
List method retrieves schedules from OpsGenie.
func (*OpsGenieScheduleClient) SetOpsGenieClient ¶
func (cli *OpsGenieScheduleClient) SetOpsGenieClient(ogCli OpsGenieClient)
SetOpsGenieClient sets the embedded OpsGenieClient type of the OpsGenieScheduleClient.
func (*OpsGenieScheduleClient) Update ¶
func (cli *OpsGenieScheduleClient) Update(req schedule.UpdateScheduleRequest) (*schedule.UpdateScheduleResponse, error)
Update method updates a schedule at OpsGenie.
func (*OpsGenieScheduleClient) WhoIsOnCall ¶
func (cli *OpsGenieScheduleClient) WhoIsOnCall(req schedule.WhoIsOnCallRequest) (*schedule.WhoIsOnCallResponse, error)
WhoIsOnCall method retrieves current oncall participants of a specific schedule from OpsGenie
type OpsGenieScheduleOverrideClient ¶
type OpsGenieScheduleOverrideClient struct {
OpsGenieClient
}
OpsGenieScheduleOverrideClient is the data type to make Schedule API requests.
func (*OpsGenieScheduleOverrideClient) Add ¶
func (cli *OpsGenieScheduleOverrideClient) Add(req override.AddScheduleOverrideRequest) (*override.AddScheduleOverrideResponse, error)
Add method adds a schedule override at OpsGenie.
func (*OpsGenieScheduleOverrideClient) Delete ¶
func (cli *OpsGenieScheduleOverrideClient) Delete(req override.DeleteScheduleOverrideRequest) (*override.DeleteScheduleOverrideResponse, error)
Delete method deletes a schedule override at OpsGenie.
func (*OpsGenieScheduleOverrideClient) Get ¶
func (cli *OpsGenieScheduleOverrideClient) Get(req override.GetScheduleOverrideRequest) (*override.GetScheduleOverrideResponse, error)
Get method retrieves specified schedule override details from OpsGenie.
func (*OpsGenieScheduleOverrideClient) List ¶
func (cli *OpsGenieScheduleOverrideClient) List(req override.ListScheduleOverridesRequest) (*override.ListScheduleOverridesResponse, error)
List method retrieves schedule overrides from OpsGenie.
func (*OpsGenieScheduleOverrideClient) SetOpsGenieClient ¶
func (cli *OpsGenieScheduleOverrideClient) SetOpsGenieClient(ogCli OpsGenieClient)
SetOpsGenieClient sets the embedded OpsGenieClient type of the OpsGenieScheduleOverrideClient.
func (*OpsGenieScheduleOverrideClient) Update ¶
func (cli *OpsGenieScheduleOverrideClient) Update(req override.UpdateScheduleOverrideRequest) (*override.UpdateScheduleOverrideResponse, error)
Update method updates a schedule override at OpsGenie.
type OpsGenieScheduleOverrideV2Client ¶
type OpsGenieScheduleOverrideV2Client struct {
RestClient
}
OpsGenieScheduleOverrideV2Client is the data type to make Schedule rule API requests.
func (*OpsGenieScheduleOverrideV2Client) Create ¶
func (cli *OpsGenieScheduleOverrideV2Client) Create(req schedulev2.CreateScheduleOverrideRequest) ( *schedulev2.CreateScheduleOverrideResponse, error, )
Creates method creates a notification rule at OpsGenie.
func (*OpsGenieScheduleOverrideV2Client) Delete ¶
func (cli *OpsGenieScheduleOverrideV2Client) Delete(req schedulev2.DeleteScheduleOverrideRequest) ( *schedulev2.DeleteScheduleOverrideResponse, error, )
Delete method deletes specified schedule rule.
func (*OpsGenieScheduleOverrideV2Client) Get ¶
func (cli *OpsGenieScheduleOverrideV2Client) Get(req schedulev2.GetScheduleOverrideRequest) ( *schedulev2.GetScheduleOverrideResponse, error, )
Get method returns a schedule from OpsGenie.
func (*OpsGenieScheduleOverrideV2Client) List ¶
func (cli *OpsGenieScheduleOverrideV2Client) List(req schedulev2.ListScheduleOverrideRequest) ( *schedulev2.ListScheduleOverrideResponse, error, )
List method returns list of existing schedules.
func (*OpsGenieScheduleOverrideV2Client) SetOpsGenieClient ¶
func (cli *OpsGenieScheduleOverrideV2Client) SetOpsGenieClient(ogCli OpsGenieClient)
SetOpsGenieClient sets the embedded OpsGenieClient type of the OpsGenieScheduleOverrideV2Client.
func (*OpsGenieScheduleOverrideV2Client) Update ¶
func (cli *OpsGenieScheduleOverrideV2Client) Update(req schedulev2.UpdateScheduleOverrideRequest) ( *schedulev2.UpdateScheduleOverrideResponse, error, )
Update method updates specified schedule rule.
type OpsGenieScheduleRotationV2Client ¶
type OpsGenieScheduleRotationV2Client struct {
RestClient
}
OpsGenieScheduleRotationV2Client is the data type to make Schedule rule API requests.
func (*OpsGenieScheduleRotationV2Client) Create ¶
func (cli *OpsGenieScheduleRotationV2Client) Create(req schedulev2.CreateScheduleRotationRequest) ( *schedulev2.CreateScheduleRotationResponse, error, )
Creates method creates a notification rule at OpsGenie.
func (*OpsGenieScheduleRotationV2Client) Delete ¶
func (cli *OpsGenieScheduleRotationV2Client) Delete(req schedulev2.DeleteScheduleRotationRequest) ( *schedulev2.DeleteScheduleRotationResponse, error, )
Delete method deletes specified schedule rule.
func (*OpsGenieScheduleRotationV2Client) Get ¶
func (cli *OpsGenieScheduleRotationV2Client) Get(req schedulev2.GetScheduleRotationRequest) ( *schedulev2.GetScheduleRotationResponse, error, )
Get method returns a schedule from OpsGenie.
func (*OpsGenieScheduleRotationV2Client) List ¶
func (cli *OpsGenieScheduleRotationV2Client) List(req schedulev2.ListScheduleRotationRequest) ( *schedulev2.ListScheduleRotationResponse, error, )
List method returns list of existing schedules.
func (*OpsGenieScheduleRotationV2Client) SetOpsGenieClient ¶
func (cli *OpsGenieScheduleRotationV2Client) SetOpsGenieClient(ogCli OpsGenieClient)
SetOpsGenieClient sets the embedded OpsGenieClient type of the OpsGenieScheduleRotationV2Client.
func (*OpsGenieScheduleRotationV2Client) Update ¶
func (cli *OpsGenieScheduleRotationV2Client) Update(req schedulev2.UpdateScheduleRotationRequest) ( *schedulev2.UpdateScheduleRotationResponse, error, )
Update method updates specified schedule rule.
type OpsGenieScheduleV2Client ¶
type OpsGenieScheduleV2Client struct {
RestClient
}
OpsGenieScheduleV2Client is the data type to make Schedule rule API requests.
func (*OpsGenieScheduleV2Client) Create ¶
func (cli *OpsGenieScheduleV2Client) Create(req schedulev2.CreateScheduleRequest) ( *schedulev2.CreateScheduleResponse, error, )
Creates method creates a notification rule at OpsGenie.
func (*OpsGenieScheduleV2Client) Delete ¶
func (cli *OpsGenieScheduleV2Client) Delete(req schedulev2.DeleteScheduleRequest) ( *schedulev2.DeleteScheduleResponse, error, )
Delete method deletes specified schedule rule.
func (*OpsGenieScheduleV2Client) Get ¶
func (cli *OpsGenieScheduleV2Client) Get(req schedulev2.GetScheduleRequest) ( *schedulev2.GetScheduleResponse, error, )
Get method returns a schedule from OpsGenie.
func (*OpsGenieScheduleV2Client) List ¶
func (cli *OpsGenieScheduleV2Client) List(req schedulev2.ListScheduleRequest) ( *schedulev2.ListScheduleResponse, error, )
List method returns list of existing schedules.
func (*OpsGenieScheduleV2Client) SetOpsGenieClient ¶
func (cli *OpsGenieScheduleV2Client) SetOpsGenieClient(ogCli OpsGenieClient)
SetOpsGenieClient sets the embedded OpsGenieClient type of the OpsGenieScheduleV2Client.
func (*OpsGenieScheduleV2Client) Update ¶
func (cli *OpsGenieScheduleV2Client) Update(req schedulev2.UpdateScheduleRequest) ( *schedulev2.UpdateScheduleResponse, error, )
Update method updates specified schedule rule.
type OpsGenieTeamClient ¶
type OpsGenieTeamClient struct {
OpsGenieClient
}
OpsGenieTeamClient is the data type to make Team API requests.
func (*OpsGenieTeamClient) Create ¶
func (cli *OpsGenieTeamClient) Create(req team.CreateTeamRequest) (*team.CreateTeamResponse, error)
Create method creates a team at OpsGenie.
func (*OpsGenieTeamClient) Delete ¶
func (cli *OpsGenieTeamClient) Delete(req team.DeleteTeamRequest) (*team.DeleteTeamResponse, error)
Delete method deletes a team at OpsGenie.
func (*OpsGenieTeamClient) Get ¶
func (cli *OpsGenieTeamClient) Get(req team.GetTeamRequest) (*team.GetTeamResponse, error)
Get method retrieves specified team details from OpsGenie.
func (*OpsGenieTeamClient) List ¶
func (cli *OpsGenieTeamClient) List(req team.ListTeamsRequest) (*team.ListTeamsResponse, error)
List method retrieves teams from OpsGenie.
func (*OpsGenieTeamClient) ListLogs ¶
func (cli *OpsGenieTeamClient) ListLogs(req team.ListTeamLogsRequest) (*team.ListTeamLogsResponse, error)
ListLogs method retrieves team logs from OpsGenie.
func (*OpsGenieTeamClient) SetOpsGenieClient ¶
func (cli *OpsGenieTeamClient) SetOpsGenieClient(ogCli OpsGenieClient)
SetOpsGenieClient sets the embedded OpsGenieClient type of the OpsGenieTeamClient.
func (*OpsGenieTeamClient) Update ¶
func (cli *OpsGenieTeamClient) Update(req team.UpdateTeamRequest) (*team.UpdateTeamResponse, error)
Update method updates a team at OpsGenie.
type OpsGenieUserClient ¶
type OpsGenieUserClient struct {
OpsGenieClient
}
OpsGenieUserClient is the data type to make User API requests. Deprecated: Please use OpsGenieUserV2Client
func (*OpsGenieUserClient) Create
deprecated
func (cli *OpsGenieUserClient) Create(req user.CreateUserRequest) (*user.CreateUserResponse, error)
Deprecated: Create method creates a user at OpsGenie.
func (*OpsGenieUserClient) Delete
deprecated
func (cli *OpsGenieUserClient) Delete(req user.DeleteUserRequest) (*user.DeleteUserResponse, error)
Deprecated: Delete method deletes a user at OpsGenie.
func (*OpsGenieUserClient) Get
deprecated
func (cli *OpsGenieUserClient) Get(req user.GetUserRequest) (*user.GetUserResponse, error)
Deprecated: Get method retrieves specified user details from OpsGenie.
func (*OpsGenieUserClient) List
deprecated
func (cli *OpsGenieUserClient) List(req user.ListUsersRequest) (*user.ListUsersResponse, error)
Deprecated: List method retrieves users from OpsGenie.
func (*OpsGenieUserClient) SetOpsGenieClient
deprecated
func (cli *OpsGenieUserClient) SetOpsGenieClient(ogCli OpsGenieClient)
Deprecated: SetOpsGenieClient sets the embedded OpsGenieClient type of the OpsGenieUserClient.
func (*OpsGenieUserClient) Update
deprecated
func (cli *OpsGenieUserClient) Update(req user.UpdateUserRequest) (*user.UpdateUserResponse, error)
Deprecated: Update method updates a user at OpsGenie.
type OpsGenieUserV2Client ¶
type OpsGenieUserV2Client struct {
RestClient
}
OpsGenieUserV2Client is the data type to make User API requests.
func (*OpsGenieUserV2Client) Create ¶
func (cli *OpsGenieUserV2Client) Create(req userv2.CreateUserRequest) (*userv2.CreateUserResponse, error)
Create method creates new user in OpsGenie.
func (*OpsGenieUserV2Client) Delete ¶
func (cli *OpsGenieUserV2Client) Delete(req userv2.DeleteUserRequest) (*userv2.DeleteUserResponse, error)
Delete method deletes user.
func (*OpsGenieUserV2Client) Get ¶
func (cli *OpsGenieUserV2Client) Get(req userv2.GetUserRequest) (*userv2.GetUserResponse, error)
Get method returns user.
func (*OpsGenieUserV2Client) List ¶
func (cli *OpsGenieUserV2Client) List(req userv2.ListUsersRequest) (*userv2.ListUsersResponse, error)
List method retrieves the list of users from OpsGenie.
func (*OpsGenieUserV2Client) ListEscalations ¶
func (cli *OpsGenieUserV2Client) ListEscalations(req userv2.ListUserEscalationsRequest) (*userv2.ListUserEscalationsResponse, error)
ListEscalations method returns list of user escalations.
func (*OpsGenieUserV2Client) ListForwardingRules ¶
func (cli *OpsGenieUserV2Client) ListForwardingRules(req userv2.ListUserForwardingRulesRequest) (*userv2.ListUserForwardingRulesResponse, error)
ListForwardingRules method returns list of user forwarding rules.
func (*OpsGenieUserV2Client) ListSchedules ¶
func (cli *OpsGenieUserV2Client) ListSchedules(req userv2.ListUserSchedulesRequest) (*userv2.ListUserSchedulesResponse, error)
ListSchedules method returns list of user schedules.
func (*OpsGenieUserV2Client) ListTeams ¶
func (cli *OpsGenieUserV2Client) ListTeams(req userv2.ListUserTeamsRequest) (*userv2.ListUserTeamsResponse, error)
ListTeams method returns list of user teams.
func (*OpsGenieUserV2Client) SetOpsGenieClient ¶
func (cli *OpsGenieUserV2Client) SetOpsGenieClient(ogCli OpsGenieClient)
SetOpsGenieClient sets the embedded OpsGenieClient type of the OpsGenieUserV2Client.
func (*OpsGenieUserV2Client) Update ¶
func (cli *OpsGenieUserV2Client) Update(req userv2.UpdateUserRequest) (*userv2.UpdateUserResponse, error)
Update method updates data of user
type ProxyConfiguration ¶
type ProxyConfiguration struct { Host string Port int Username string Password string ProxyURI string Protocol string }
ProxyConfiguration is the type that contains the proxy configurations of the OpsGenieClient.
type ResponseMeta ¶
func (*ResponseMeta) SetRateLimitState ¶
func (rm *ResponseMeta) SetRateLimitState(state string)
func (*ResponseMeta) SetRequestID ¶
func (rm *ResponseMeta) SetRequestID(requestID string)
func (*ResponseMeta) SetResponseTime ¶
func (rm *ResponseMeta) SetResponseTime(responseTime float32)
type RestClient ¶
type RestClient struct {
OpsGenieClient
}
OpsGenieRestClient is the data type to make requests.
func (*RestClient) SetOpsGenieClient ¶
func (cli *RestClient) SetOpsGenieClient(ogCli OpsGenieClient)
SetOpsGenieClient sets the embedded OpsGenieClient type of the OpsGenieAlertClient.
Source Files
¶
- client.go
- client_configuration.go
- opsgenie_alert_client.go
- opsgenie_alertv2_client.go
- opsgenie_contact_client.go
- opsgenie_escalation_client.go
- opsgenie_heartbeat_client.go
- opsgenie_integration_client.go
- opsgenie_log_client.go
- opsgenie_notificationv2_client.go
- opsgenie_policy_client.go
- opsgenie_scheduleV2_client.go
- opsgenie_schedule_client.go
- opsgenie_schedule_overrideV2_client.go
- opsgenie_schedule_override_client.go
- opsgenie_schedule_rotationV2_client.go
- opsgenie_team_client.go
- opsgenie_user_client.go
- opsgenie_userv2_client.go
- rest_client.go