/*! * Copyright Adaptavist 2022 (c) All rights reserved */ import { AddNoteToAlertRequest, AddNoteToAlertResponseOK } from "./types/alert/note"; import { GetAlertNotesRequest, GetAlertNotesResponseOK } from "./types/alert/note"; import { AddTagsToAlertRequest, AddTagsToAlertResponseOK } from "./types/alert/tags"; import { RemoveTagsFromAlertRequest, RemoveTagsFromAlertResponseOK } from "./types/alert/tags"; import { AddDetailsToAlertRequest, AddDetailsToAlertResponseOK } from "./types/alert/details"; import { RemoveDetailsFromAlertRequest, RemoveDetailsFromAlertResponseOK } from "./types/alert/details"; import { CreateSavedSearchForAlertRequest, CreateSavedSearchForAlertResponseOK } from "./types/alert/saved/search"; import { GetSavedSearchesForAlertRequest, GetSavedSearchesForAlertResponseOK } from "./types/alert/saved/search"; import { UpdateSavedSearchForAlertRequest, UpdateSavedSearchForAlertResponseOK } from "./types/alert/saved/search"; import { GetSavedSearchForAlertRequest, GetSavedSearchForAlertResponseOK } from "./types/alert/saved/search"; import { DeleteSavedSearchForAlertRequest, DeleteSavedSearchForAlertResponseOK } from "./types/alert/saved/search"; import { GetAlertAttachmentsRequest, GetAlertAttachmentsResponseOK } from "./types/alert/attachment"; import { CreateAlertAttachmentRequest, CreateAlertAttachmentResponseOK } from "./types/alert/attachment"; import { GetAlertAttachmentRequest, GetAlertAttachmentResponseOK } from "./types/alert/attachment"; import { DeleteAlertAttachmentRequest, DeleteAlertAttachmentResponseOK } from "./types/alert/attachment"; import { GetRequestStatusforAlertRequest, GetRequestStatusforAlertResponseOK } from "./types/alert"; import { GetAlertRequest, GetAlertResponseOK } from "./types/alert"; import { DeleteAlertRequest, DeleteAlertResponseOK } from "./types/alert"; import { GetAlertsRequest, GetAlertsResponseOK } from "./types/alert"; import { CreateAlertRequest, CreateAlertResponseOK } from "./types/alert"; import { CountAlertsRequest, CountAlertsResponseOK } from "./types/alert"; import { AcknowledgeAlertRequest, AcknowledgeAlertResponseOK } from "./types/alert"; import { CloseAlertRequest, CloseAlertResponseOK } from "./types/alert"; import { ExecuteCustomAlertActionRequest, ExecuteCustomAlertActionResponseOK } from "./types/alert"; import { UnacknowledgeAlertRequest, UnacknowledgeAlertResponseOK } from "./types/alert"; import { SnoozeAlertRequest, SnoozeAlertResponseOK } from "./types/alert"; import { EscalateAlertToNextRequest, EscalateAlertToNextResponseOK } from "./types/alert"; import { AssignAlertRequest, AssignAlertResponseOK } from "./types/alert"; import { AddTeamToAlertRequest, AddTeamToAlertResponseOK } from "./types/alert"; import { AddResponderToAlertRequest, AddResponderToAlertResponseOK } from "./types/alert"; import { UpdateAlertPriorityRequest, UpdateAlertPriorityResponseOK } from "./types/alert"; import { UpdateAlertMessageRequest, UpdateAlertMessageResponseOK } from "./types/alert"; import { UpdateAlertDescriptionRequest, UpdateAlertDescriptionResponseOK } from "./types/alert"; import { GetAlertRecipientsRequest, GetAlertRecipientsResponseOK } from "./types/alert"; import { GetAlertLogsRequest, GetAlertLogsResponseOK } from "./types/alert"; import { GetAssociatedAlertsForIncidentRequest, GetAssociatedAlertsForIncidentResponseOK } from "./types/incident/alert"; import { GetResponderAlertsForIncidentRequest, GetResponderAlertsForIncidentResponseOK } from "./types/incident/alert"; import { AddNoteToIncidentRequest, AddNoteToIncidentResponseOK } from "./types/incident/note"; import { GetIncidentNotesRequest, GetIncidentNotesResponseOK } from "./types/incident/note"; import { AddTagsToIncidentRequest, AddTagsToIncidentResponseOK } from "./types/incident/tags"; import { RemoveTagsFromIncidentRequest, RemoveTagsFromIncidentResponseOK } from "./types/incident/tags"; import { AddDetailsToIncidentRequest, AddDetailsToIncidentResponseOK } from "./types/incident/details"; import { RemoveDetailsFromIncidentRequest, RemoveDetailsFromIncidentResponseOK } from "./types/incident/details"; import { AddIncidentTimelineEntryRequest, AddIncidentTimelineEntryResponseOK } from "./types/incident/timeline"; import { GetIncidentTimelineEntriesRequest, GetIncidentTimelineEntriesResponseOK } from "./types/incident/timeline"; import { GetIncidentTimelineEntryRequest, GetIncidentTimelineEntryResponseOK } from "./types/incident/timeline"; import { UpdateIncidentTimelineEntryRequest, UpdateIncidentTimelineEntryResponseOK } from "./types/incident/timeline"; import { DeleteIncidentTimelineEntryRequest, DeleteIncidentTimelineEntryResponseOK } from "./types/incident/timeline"; import { HideIncidentTimelineEntryRequest, HideIncidentTimelineEntryResponseOK } from "./types/incident/timeline"; import { UnhideIncidentTimelineEntryRequest, UnhideIncidentTimelineEntryResponseOK } from "./types/incident/timeline"; import { GetRequestStatusForIncidentRequest, GetRequestStatusForIncidentResponseOK } from "./types/incident"; import { CreateIncidentRequest, CreateIncidentResponseOK } from "./types/incident"; import { DeleteIncidentRequest, DeleteIncidentResponseOK } from "./types/incident"; import { GetIncidentRequest, GetIncidentResponseOK } from "./types/incident"; import { GetIncidentsRequest, GetIncidentsResponseOK } from "./types/incident"; import { CloseIncidentRequest, CloseIncidentResponseOK } from "./types/incident"; import { ResolveIncidentRequest, ResolveIncidentResponseOK } from "./types/incident"; import { ReopenIncidentRequest, ReopenIncidentResponseOK } from "./types/incident"; import { AddResponderToIncidentRequest, AddResponderToIncidentResponseOK } from "./types/incident"; import { UpdateIncidentPriorityRequest, UpdateIncidentPriorityResponseOK } from "./types/incident"; import { UpdateIncidentMessageRequest, UpdateIncidentMessageResponseOK } from "./types/incident"; import { UpdateIncidentDescriptionRequest, UpdateIncidentDescriptionResponseOK } from "./types/incident"; import { GetIncidentLogsRequest, GetIncidentLogsResponseOK } from "./types/incident"; import { BaseApiCore, Headers, Response, ErrorStrategyOptionType, PlatformImplementation } from "@managed-api/commons-core"; import { CommonError, AdditionalErrorTypes, ErrorStrategyHandlers, ErrorStrategyOption } from "./errorStrategy"; import { ErrorStrategyBuilder } from "./builders/errorStrategy"; export interface OpsgenieApiCoreOptions extends ErrorStrategyOption { } declare type GetGlobalErrorStrategy = () => ErrorStrategyOptionType | undefined; export declare abstract class OpsgenieApiCore extends BaseApiCore { private options?; Alert: AlertGroup; Incident: IncidentGroup; All: AllGroup; constructor(options?: OpsgenieApiCoreOptions | undefined); setGlobalErrorStrategy(errorStrategy: ErrorStrategyOptionType): void; protected buildResponse(url: string, status: number, statusText: string, headers: Headers, body?: string | ArrayBuffer): Response; private getGlobalErrorStrategy; } declare class AllGroup { private Alert; private Incident; constructor(Alert: AlertGroup, Incident: IncidentGroup); /** * Used to track the status and alert details (if any) of the request whose identifier is given * Alternative usage: Alert.getRequestStatus * Documentation: https://docs.opsgenie.com/docs/alert-api#get-request-status * @param options Request options. */ getRequestStatusforAlert(options: GetRequestStatusforAlertRequest): Promise; /** * Returns alert with given id, tiny id or alias * Alternative usage: Alert.getAlert * Documentation: https://docs.opsgenie.com/docs/alert-api#get-alert * @param options Request options. */ getAlert(options: GetAlertRequest): Promise; /** * Deletes an alert using alert id, tiny id or alias * Alternative usage: Alert.deleteAlert * Documentation: https://docs.opsgenie.com/docs/alert-api#delete-alert * @param options Request options. */ deleteAlert(options: DeleteAlertRequest): Promise; /** * Returns list of alerts * Alternative usage: Alert.getAlerts * Documentation: https://docs.opsgenie.com/docs/alert-api#list-alerts * @param options Request options. */ getAlerts(options?: GetAlertsRequest): Promise; /** * Creates a new alert * Alternative usage: Alert.createAlert * Documentation: https://docs.opsgenie.com/docs/alert-api#create-alert * @param options Request options. */ createAlert(options: CreateAlertRequest): Promise; /** * Count alerts in Opsgenie * Alternative usage: Alert.countAlerts * Documentation: https://docs.opsgenie.com/docs/alert-api#count-alerts * @param options Request options. */ countAlerts(options?: CountAlertsRequest): Promise; /** * Acknowledges alert with given identifier * Alternative usage: Alert.acknowledgeAlert * Documentation: https://docs.opsgenie.com/docs/alert-api#acknowledge-alert * @param options Request options. */ acknowledgeAlert(options: AcknowledgeAlertRequest): Promise; /** * Closes alert with given identifier * Alternative usage: Alert.closeAlert * Documentation: https://docs.opsgenie.com/docs/alert-api#close-alert * @param options Request options. */ closeAlert(options: CloseAlertRequest): Promise; /** * Custom actions for the alert * Alternative usage: Alert.executeCustomAction * Documentation: https://docs.opsgenie.com/docs/alert-api#execute-custom-action * @param options Request options. */ executeCustomAlertAction(options: ExecuteCustomAlertActionRequest): Promise; /** * UnAcknowledge alert with given identifier * Alternative usage: Alert.unacknowledgeAlert * Documentation: https://docs.opsgenie.com/docs/alert-api#unacknowledge-alert * @param options Request options. */ unacknowledgeAlert(options: UnacknowledgeAlertRequest): Promise; /** * Snooze alert with given identifier * Alternative usage: Alert.snoozeAlert * Documentation: https://docs.opsgenie.com/docs/alert-api#snooze-alert * @param options Request options. */ snoozeAlert(options: SnoozeAlertRequest): Promise; /** * Escalate alert with given identifier * Alternative usage: Alert.escalateAlertToNext * Documentation: https://docs.opsgenie.com/docs/alert-api#escalate-alert-to-next * @param options Request options. */ escalateAlertToNext(options: EscalateAlertToNextRequest): Promise; /** * Assign alert with given identifier * Alternative usage: Alert.assignAlert * Documentation: https://docs.opsgenie.com/docs/alert-api#assign-alert * @param options Request options. */ assignAlert(options: AssignAlertRequest): Promise; /** * Add team to alert with given identifier * Alternative usage: Alert.addTeam * Documentation: https://docs.opsgenie.com/docs/alert-api#add-team-to-alert * @param options Request options. */ addTeamToAlert(options: AddTeamToAlertRequest): Promise; /** * Add responder to alert with given identifier * Alternative usage: Alert.addResponder * Documentation: https://docs.opsgenie.com/docs/alert-api#add-responder-to-alert * @param options Request options. */ addResponderToAlert(options: AddResponderToAlertRequest): Promise; /** * Update the priority of the alert with given identifier * Alternative usage: Alert.updatePriority * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#update-alert-priority * @param options Request options. */ updateAlertPriority(options: UpdateAlertPriorityRequest): Promise; /** * Update the message of the alert with given identifier * Alternative usage: Alert.updateMessage * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#update-alert-message * @param options Request options. */ updateAlertMessage(options: UpdateAlertMessageRequest): Promise; /** * Update the description of the alert with given identifier * Alternative usage: Alert.updateDescription * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#update-alert-description * @param options Request options. */ updateAlertDescription(options: UpdateAlertDescriptionRequest): Promise; /** * List alert recipients for the given alert identifier * Alternative usage: Alert.getRecipients * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#list-alert-recipients * @param options Request options. */ getAlertRecipients(options: GetAlertRecipientsRequest): Promise; /** * List alert logs for the given alert identifier * Alternative usage: Alert.getLogs * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#list-alert-logs * @param options Request options. */ getAlertLogs(options: GetAlertLogsRequest): Promise; /** * Adds note to alert with given identifier * Alternative usage: Alert.Note.addNote * Documentation: https://docs.opsgenie.com/docs/alert-api#add-note-to-alert * @param options Request options. */ addNoteToAlert(options: AddNoteToAlertRequest): Promise; /** * List alert notes for the given alert identifier * Alternative usage: Alert.Note.getNotes * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#list-alert-notes * @param options Request options. */ getAlertNotes(options: GetAlertNotesRequest): Promise; /** * Add tags to the alert with given identifier * Alternative usage: Alert.Tags.addTags * Documentation: https://docs.opsgenie.com/docs/alert-api#add-tags-to-alert * @param options Request options. */ addTagsToAlert(options: AddTagsToAlertRequest): Promise; /** * Remove tags of the alert with given identifier * Alternative usage: Alert.Tags.removeTags * Documentation: https://docs.opsgenie.com/docs/alert-api#remove-tags-from-alert * @param options Request options. */ removeTagsFromAlert(options: RemoveTagsFromAlertRequest): Promise; /** * Add details to the alert with given identifier * Alternative usage: Alert.Details.addDetails * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#add-details-custom-properties-to-alert * @param options Request options. */ addDetailsToAlert(options: AddDetailsToAlertRequest): Promise; /** * Remove details of the alert with given identifier * Alternative usage: Alert.Details.removeDetails * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#remove-details-custom-properties-from-alert * @param options Request options. */ removeDetailsFromAlert(options: RemoveDetailsFromAlertRequest): Promise; /** * Create saved search with given fields * Alternative usage: Alert.Saved.Search.createSavedSearch * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#create-a-saved-search * @param options Request options. */ createSavedSearchForAlert(options: CreateSavedSearchForAlertRequest): Promise; /** * List all saved searches * Alternative usage: Alert.Saved.Search.getSavedSearches * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#list-saved-searches * @param options Request options. */ getSavedSearchesForAlert(options?: GetSavedSearchesForAlertRequest): Promise; /** * Update saved search for the given search identifier * Alternative usage: Alert.Saved.Search.updateSavedSearch * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#update-saved-search * @param options Request options. */ updateSavedSearchForAlert(options: UpdateSavedSearchForAlertRequest): Promise; /** * Get saved search for the given search identifier * Alternative usage: Alert.Saved.Search.getSavedSearch * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#get-saved-search * @param options Request options. */ getSavedSearchForAlert(options: GetSavedSearchForAlertRequest): Promise; /** * Deletes saved search using given search identifier * Alternative usage: Alert.Saved.Search.deleteSavedSearch * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#delete-saved-search * @param options Request options. */ deleteSavedSearchForAlert(options: DeleteSavedSearchForAlertRequest): Promise; /** * List alert attachment names and urls for related alert * Alternative usage: Alert.Attachment.getAttachments * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#list-alert-attachments * @param options Request options. */ getAlertAttachments(options: GetAlertAttachmentsRequest): Promise; /** * Add Alert Attachment to related alert * Alternative usage: Alert.Attachment.createAttachment * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#create-alert-attachment * @param options Request options. */ createAlertAttachment(options: CreateAlertAttachmentRequest): Promise; /** * Get alert attachment name and url for the given identifier * Alternative usage: Alert.Attachment.getAttachment * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#get-alert-attachment * @param options Request options. */ getAlertAttachment(options: GetAlertAttachmentRequest): Promise; /** * Remove alert attachment for the given identifier * Alternative usage: Alert.Attachment.deleteAttachment * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#delete-alert-attachment * @param options Request options. */ deleteAlertAttachment(options: DeleteAlertAttachmentRequest): Promise; /** * Used to track the status and incident details (if any) of the request whose identifier is given * Alternative usage: Incident.getRequestStatus * Documentation: https://docs.opsgenie.com/docs/incident-api#get-request-status * @param options Request options. */ getRequestStatusForIncident(options: GetRequestStatusForIncidentRequest): Promise; /** * Creates a new incident * Alternative usage: Incident.createIncident * Documentation: https://docs.opsgenie.com/docs/incident-api#create-incident * @param options Request options. */ createIncident(options: CreateIncidentRequest): Promise; /** * Deletes an incident using incident id or the tiny id * Alternative usage: Incident.deleteIncident * Documentation: https://docs.opsgenie.com/docs/incident-api#delete-incident * @param options Request options. */ deleteIncident(options: DeleteIncidentRequest): Promise; /** * Returns incident with given id, tiny id or alias * Alternative usage: Incident.getIncident * Documentation: https://docs.opsgenie.com/docs/incident-api#get-incident * @param options Request options. */ getIncident(options: GetIncidentRequest): Promise; /** * Return list of incidents * Alternative usage: Incident.getIncidents * Documentation: https://docs.opsgenie.com/docs/incident-api#list-incidents * @param options Request options. */ getIncidents(options?: GetIncidentsRequest): Promise; /** * Closes incident with given identifier * Alternative usage: Incident.closeIncident * Documentation: https://docs.opsgenie.com/docs/incident-api#close-incident * @param options Request options. */ closeIncident(options: CloseIncidentRequest): Promise; /** * Resolves incident * Alternative usage: Incident.resolveIncident * Documentation: https://docs.opsgenie.com/docs/incident-api#resolve-incident * @param options Request options. */ resolveIncident(options: ResolveIncidentRequest): Promise; /** * Reopenss incident * Alternative usage: Incident.reopenIncident * Documentation: https://docs.opsgenie.com/docs/incident-api#reopen-incident * @param options Request options. */ reopenIncident(options: ReopenIncidentRequest): Promise; /** * Add responder to incident with given identifier * Alternative usage: Incident.addResponder * Documentation: https://docs.opsgenie.com/docs/incident-api#add-responder-to-incident * @param options Request options. */ addResponderToIncident(options: AddResponderToIncidentRequest): Promise; /** * Update the priority of the incident with given identifier * Alternative usage: Incident.updatePriority * Documentation: https://docs.opsgenie.com/docs/incident-api#update-incident-priority * @param options Request options. */ updateIncidentPriority(options: UpdateIncidentPriorityRequest): Promise; /** * Update the Message of the incident with given identifier * Alternative usage: Incident.updateMessage * Documentation: https://docs.opsgenie.com/docs/incident-api#update-incident-message * @param options Request options. */ updateIncidentMessage(options: UpdateIncidentMessageRequest): Promise; /** * Update the Description of the incident with given identifier * Alternative usage: Incident.updateDescription * Documentation: https://docs.opsgenie.com/docs/incident-api#update-incident-description * @param options Request options. */ updateIncidentDescription(options: UpdateIncidentDescriptionRequest): Promise; /** * List incident logs for the given incident identifier * Alternative usage: Incident.getLogs * Documentation: https://docs.opsgenie.com/docs/incident-api#list-incident-logs * @param options Request options. */ getIncidentLogs(options: GetIncidentLogsRequest): Promise; /** * Returns associated alerts for incident * Alternative usage: Incident.Alert.getAssociatedAlerts * Documentation: https://docs.opsgenie.com/docs/incident-api#get-associated-alerts * @param options Request options. */ getAssociatedAlertsForIncident(options: GetAssociatedAlertsForIncidentRequest): Promise; /** * Returns responder alerts for incident * Alternative usage: Incident.Alert.getResponderAlerts * Documentation: https://docs.opsgenie.com/docs/incident-api#get-responder-alerts * @param options Request options. */ getResponderAlertsForIncident(options: GetResponderAlertsForIncidentRequest): Promise; /** * Adds note to incident with given identifier * Alternative usage: Incident.Note.addNote * Documentation: https://docs.opsgenie.com/docs/incident-api#add-note-to-incident * @param options Request options. */ addNoteToIncident(options: AddNoteToIncidentRequest): Promise; /** * List incident notes for the given alert identifier * Alternative usage: Incident.Note.getNotes * Documentation: https://docs.opsgenie.com/docs/incident-api#list-incident-notes * @param options Request options. */ getIncidentNotes(options: GetIncidentNotesRequest): Promise; /** * Add tags to incident with given identifier * Alternative usage: Incident.Tags.addTags * Documentation: https://docs.opsgenie.com/docs/incident-api#add-tags-to-incident * @param options Request options. */ addTagsToIncident(options: AddTagsToIncidentRequest): Promise; /** * Remove tags from incident with given identifier * Alternative usage: Incident.Tags.removeTags * Documentation: https://docs.opsgenie.com/docs/incident-api#remove-tags-from-incident * @param options Request options. */ removeTagsFromIncident(options: RemoveTagsFromIncidentRequest): Promise; /** * Add Details(Custom Properties) to Incident * Alternative usage: Incident.Details.addDetails * Documentation: https://docs.opsgenie.com/docs/incident-api#add-detailscustom-properties-to-incident * @param options Request options. */ addDetailsToIncident(options: AddDetailsToIncidentRequest): Promise; /** * Remove details from Incident * Alternative usage: Incident.Details.removeDetails * Documentation: https://docs.opsgenie.com/docs/incident-api#remove-detailscustom-properties-from-incident * @param options Request options. */ removeDetailsFromIncident(options: RemoveDetailsFromIncidentRequest): Promise; /** * Add Incident Timeline Entry to incident with the incident Id * Alternative usage: Incident.Timeline.addEntry * Documentation: https://docs.opsgenie.com/docs/incident-timeline-api#add-incident-timeline-entry * @param options Request options. */ addIncidentTimelineEntry(options: AddIncidentTimelineEntryRequest): Promise; /** * List incident timeline entries for the given incident Id * Alternative usage: Incident.Timeline.getEntries * Documentation: https://docs.opsgenie.com/docs/incident-timeline-api#list-incident-timeline-entries * @param options Request options. */ getIncidentTimelineEntries(options: GetIncidentTimelineEntriesRequest): Promise; /** * Get incident timeline entry for the given identifier * Alternative usage: Incident.Timeline.getEntry * Documentation: https://docs.opsgenie.com/docs/incident-timeline-api#get-incident-timeline-entry * @param options Request options. */ getIncidentTimelineEntry(options: GetIncidentTimelineEntryRequest): Promise; /** * Updates incident timeline entry for the given identifier * Alternative usage: Incident.Timeline.updateEntry * Documentation: https://docs.opsgenie.com/docs/incident-timeline-api#update-incident-timeline-entry * @param options Request options. */ updateIncidentTimelineEntry(options: UpdateIncidentTimelineEntryRequest): Promise; /** * Deletes incident timeline entry for the given identifier * Alternative usage: Incident.Timeline.deleteEntry * Documentation: https://docs.opsgenie.com/docs/incident-timeline-api#delete-incident-timeline-entry * @param options Request options. */ deleteIncidentTimelineEntry(options: DeleteIncidentTimelineEntryRequest): Promise; /** * Hides incident timeline entry for the given identifier * Alternative usage: Incident.Timeline.hideEntry * Documentation: https://docs.opsgenie.com/docs/incident-timeline-api#hide-incident-timeline-entry * @param options Request options. */ hideIncidentTimelineEntry(options: HideIncidentTimelineEntryRequest): Promise; /** * Unhides incident timeline entry for the given identifier * Alternative usage: Incident.Timeline.unhideEntry * Documentation: https://docs.opsgenie.com/docs/incident-timeline-api#unhide-incident-timeline-entry * @param options Request options. */ unhideIncidentTimelineEntry(options: UnhideIncidentTimelineEntryRequest): Promise; } declare class AlertGroup { private implementation; private getGlobalErrorStrategy; Note: AlertNoteGroup; Tags: AlertTagsGroup; Details: AlertDetailsGroup; Saved: AlertSavedGroup; Attachment: AlertAttachmentGroup; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Used to track the status and alert details (if any) of the request whose identifier is given * Documentation: https://docs.opsgenie.com/docs/alert-api#get-request-status * @param options Request options. */ getRequestStatus(options: GetRequestStatusforAlertRequest): Promise; /** * Returns alert with given id, tiny id or alias * Documentation: https://docs.opsgenie.com/docs/alert-api#get-alert * @param options Request options. */ getAlert(options: GetAlertRequest): Promise; /** * Deletes an alert using alert id, tiny id or alias * Documentation: https://docs.opsgenie.com/docs/alert-api#delete-alert * @param options Request options. */ deleteAlert(options: DeleteAlertRequest): Promise; /** * Returns list of alerts * Documentation: https://docs.opsgenie.com/docs/alert-api#list-alerts * @param options Request options. */ getAlerts(options?: GetAlertsRequest): Promise; /** * Creates a new alert * Documentation: https://docs.opsgenie.com/docs/alert-api#create-alert * @param options Request options. */ createAlert(options: CreateAlertRequest): Promise; /** * Count alerts in Opsgenie * Documentation: https://docs.opsgenie.com/docs/alert-api#count-alerts * @param options Request options. */ countAlerts(options?: CountAlertsRequest): Promise; /** * Acknowledges alert with given identifier * Documentation: https://docs.opsgenie.com/docs/alert-api#acknowledge-alert * @param options Request options. */ acknowledgeAlert(options: AcknowledgeAlertRequest): Promise; /** * Closes alert with given identifier * Documentation: https://docs.opsgenie.com/docs/alert-api#close-alert * @param options Request options. */ closeAlert(options: CloseAlertRequest): Promise; /** * Custom actions for the alert * Documentation: https://docs.opsgenie.com/docs/alert-api#execute-custom-action * @param options Request options. */ executeCustomAction(options: ExecuteCustomAlertActionRequest): Promise; /** * UnAcknowledge alert with given identifier * Documentation: https://docs.opsgenie.com/docs/alert-api#unacknowledge-alert * @param options Request options. */ unacknowledgeAlert(options: UnacknowledgeAlertRequest): Promise; /** * Snooze alert with given identifier * Documentation: https://docs.opsgenie.com/docs/alert-api#snooze-alert * @param options Request options. */ snoozeAlert(options: SnoozeAlertRequest): Promise; /** * Escalate alert with given identifier * Documentation: https://docs.opsgenie.com/docs/alert-api#escalate-alert-to-next * @param options Request options. */ escalateAlertToNext(options: EscalateAlertToNextRequest): Promise; /** * Assign alert with given identifier * Documentation: https://docs.opsgenie.com/docs/alert-api#assign-alert * @param options Request options. */ assignAlert(options: AssignAlertRequest): Promise; /** * Add team to alert with given identifier * Documentation: https://docs.opsgenie.com/docs/alert-api#add-team-to-alert * @param options Request options. */ addTeam(options: AddTeamToAlertRequest): Promise; /** * Add responder to alert with given identifier * Documentation: https://docs.opsgenie.com/docs/alert-api#add-responder-to-alert * @param options Request options. */ addResponder(options: AddResponderToAlertRequest): Promise; /** * Update the priority of the alert with given identifier * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#update-alert-priority * @param options Request options. */ updatePriority(options: UpdateAlertPriorityRequest): Promise; /** * Update the message of the alert with given identifier * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#update-alert-message * @param options Request options. */ updateMessage(options: UpdateAlertMessageRequest): Promise; /** * Update the description of the alert with given identifier * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#update-alert-description * @param options Request options. */ updateDescription(options: UpdateAlertDescriptionRequest): Promise; /** * List alert recipients for the given alert identifier * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#list-alert-recipients * @param options Request options. */ getRecipients(options: GetAlertRecipientsRequest): Promise; /** * List alert logs for the given alert identifier * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#list-alert-logs * @param options Request options. */ getLogs(options: GetAlertLogsRequest): Promise; } declare class AlertNoteGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Adds note to alert with given identifier * Documentation: https://docs.opsgenie.com/docs/alert-api#add-note-to-alert * @param options Request options. */ addNote(options: AddNoteToAlertRequest): Promise; /** * List alert notes for the given alert identifier * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#list-alert-notes * @param options Request options. */ getNotes(options: GetAlertNotesRequest): Promise; } declare class AlertTagsGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Add tags to the alert with given identifier * Documentation: https://docs.opsgenie.com/docs/alert-api#add-tags-to-alert * @param options Request options. */ addTags(options: AddTagsToAlertRequest): Promise; /** * Remove tags of the alert with given identifier * Documentation: https://docs.opsgenie.com/docs/alert-api#remove-tags-from-alert * @param options Request options. */ removeTags(options: RemoveTagsFromAlertRequest): Promise; } declare class AlertDetailsGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Add details to the alert with given identifier * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#add-details-custom-properties-to-alert * @param options Request options. */ addDetails(options: AddDetailsToAlertRequest): Promise; /** * Remove details of the alert with given identifier * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#remove-details-custom-properties-from-alert * @param options Request options. */ removeDetails(options: RemoveDetailsFromAlertRequest): Promise; } declare class AlertSavedGroup { private implementation; private getGlobalErrorStrategy; Search: AlertSavedSearchGroup; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); } declare class AlertSavedSearchGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Create saved search with given fields * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#create-a-saved-search * @param options Request options. */ createSavedSearch(options: CreateSavedSearchForAlertRequest): Promise; /** * List all saved searches * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#list-saved-searches * @param options Request options. */ getSavedSearches(options?: GetSavedSearchesForAlertRequest): Promise; /** * Update saved search for the given search identifier * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#update-saved-search * @param options Request options. */ updateSavedSearch(options: UpdateSavedSearchForAlertRequest): Promise; /** * Get saved search for the given search identifier * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#get-saved-search * @param options Request options. */ getSavedSearch(options: GetSavedSearchForAlertRequest): Promise; /** * Deletes saved search using given search identifier * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#delete-saved-search * @param options Request options. */ deleteSavedSearch(options: DeleteSavedSearchForAlertRequest): Promise; } declare class AlertAttachmentGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * List alert attachment names and urls for related alert * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#list-alert-attachments * @param options Request options. */ getAttachments(options: GetAlertAttachmentsRequest): Promise; /** * Add Alert Attachment to related alert * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#create-alert-attachment * @param options Request options. */ createAttachment(options: CreateAlertAttachmentRequest): Promise; /** * Get alert attachment name and url for the given identifier * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#get-alert-attachment * @param options Request options. */ getAttachment(options: GetAlertAttachmentRequest): Promise; /** * Remove alert attachment for the given identifier * Documentation: https://docs.opsgenie.com/docs/alert-api-continued#delete-alert-attachment * @param options Request options. */ deleteAttachment(options: DeleteAlertAttachmentRequest): Promise; } declare class IncidentGroup { private implementation; private getGlobalErrorStrategy; Alert: IncidentAlertGroup; Note: IncidentNoteGroup; Tags: IncidentTagsGroup; Details: IncidentDetailsGroup; Timeline: IncidentTimelineGroup; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Used to track the status and incident details (if any) of the request whose identifier is given * Documentation: https://docs.opsgenie.com/docs/incident-api#get-request-status * @param options Request options. */ getRequestStatus(options: GetRequestStatusForIncidentRequest): Promise; /** * Creates a new incident * Documentation: https://docs.opsgenie.com/docs/incident-api#create-incident * @param options Request options. */ createIncident(options: CreateIncidentRequest): Promise; /** * Deletes an incident using incident id or the tiny id * Documentation: https://docs.opsgenie.com/docs/incident-api#delete-incident * @param options Request options. */ deleteIncident(options: DeleteIncidentRequest): Promise; /** * Returns incident with given id, tiny id or alias * Documentation: https://docs.opsgenie.com/docs/incident-api#get-incident * @param options Request options. */ getIncident(options: GetIncidentRequest): Promise; /** * Return list of incidents * Documentation: https://docs.opsgenie.com/docs/incident-api#list-incidents * @param options Request options. */ getIncidents(options?: GetIncidentsRequest): Promise; /** * Closes incident with given identifier * Documentation: https://docs.opsgenie.com/docs/incident-api#close-incident * @param options Request options. */ closeIncident(options: CloseIncidentRequest): Promise; /** * Resolves incident * Documentation: https://docs.opsgenie.com/docs/incident-api#resolve-incident * @param options Request options. */ resolveIncident(options: ResolveIncidentRequest): Promise; /** * Reopenss incident * Documentation: https://docs.opsgenie.com/docs/incident-api#reopen-incident * @param options Request options. */ reopenIncident(options: ReopenIncidentRequest): Promise; /** * Add responder to incident with given identifier * Documentation: https://docs.opsgenie.com/docs/incident-api#add-responder-to-incident * @param options Request options. */ addResponder(options: AddResponderToIncidentRequest): Promise; /** * Update the priority of the incident with given identifier * Documentation: https://docs.opsgenie.com/docs/incident-api#update-incident-priority * @param options Request options. */ updatePriority(options: UpdateIncidentPriorityRequest): Promise; /** * Update the Message of the incident with given identifier * Documentation: https://docs.opsgenie.com/docs/incident-api#update-incident-message * @param options Request options. */ updateMessage(options: UpdateIncidentMessageRequest): Promise; /** * Update the Description of the incident with given identifier * Documentation: https://docs.opsgenie.com/docs/incident-api#update-incident-description * @param options Request options. */ updateDescription(options: UpdateIncidentDescriptionRequest): Promise; /** * List incident logs for the given incident identifier * Documentation: https://docs.opsgenie.com/docs/incident-api#list-incident-logs * @param options Request options. */ getLogs(options: GetIncidentLogsRequest): Promise; } declare class IncidentAlertGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Returns associated alerts for incident * Documentation: https://docs.opsgenie.com/docs/incident-api#get-associated-alerts * @param options Request options. */ getAssociatedAlerts(options: GetAssociatedAlertsForIncidentRequest): Promise; /** * Returns responder alerts for incident * Documentation: https://docs.opsgenie.com/docs/incident-api#get-responder-alerts * @param options Request options. */ getResponderAlerts(options: GetResponderAlertsForIncidentRequest): Promise; } declare class IncidentNoteGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Adds note to incident with given identifier * Documentation: https://docs.opsgenie.com/docs/incident-api#add-note-to-incident * @param options Request options. */ addNote(options: AddNoteToIncidentRequest): Promise; /** * List incident notes for the given alert identifier * Documentation: https://docs.opsgenie.com/docs/incident-api#list-incident-notes * @param options Request options. */ getNotes(options: GetIncidentNotesRequest): Promise; } declare class IncidentTagsGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Add tags to incident with given identifier * Documentation: https://docs.opsgenie.com/docs/incident-api#add-tags-to-incident * @param options Request options. */ addTags(options: AddTagsToIncidentRequest): Promise; /** * Remove tags from incident with given identifier * Documentation: https://docs.opsgenie.com/docs/incident-api#remove-tags-from-incident * @param options Request options. */ removeTags(options: RemoveTagsFromIncidentRequest): Promise; } declare class IncidentDetailsGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Add Details(Custom Properties) to Incident * Documentation: https://docs.opsgenie.com/docs/incident-api#add-detailscustom-properties-to-incident * @param options Request options. */ addDetails(options: AddDetailsToIncidentRequest): Promise; /** * Remove details from Incident * Documentation: https://docs.opsgenie.com/docs/incident-api#remove-detailscustom-properties-from-incident * @param options Request options. */ removeDetails(options: RemoveDetailsFromIncidentRequest): Promise; } declare class IncidentTimelineGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Add Incident Timeline Entry to incident with the incident Id * Documentation: https://docs.opsgenie.com/docs/incident-timeline-api#add-incident-timeline-entry * @param options Request options. */ addEntry(options: AddIncidentTimelineEntryRequest): Promise; /** * List incident timeline entries for the given incident Id * Documentation: https://docs.opsgenie.com/docs/incident-timeline-api#list-incident-timeline-entries * @param options Request options. */ getEntries(options: GetIncidentTimelineEntriesRequest): Promise; /** * Get incident timeline entry for the given identifier * Documentation: https://docs.opsgenie.com/docs/incident-timeline-api#get-incident-timeline-entry * @param options Request options. */ getEntry(options: GetIncidentTimelineEntryRequest): Promise; /** * Updates incident timeline entry for the given identifier * Documentation: https://docs.opsgenie.com/docs/incident-timeline-api#update-incident-timeline-entry * @param options Request options. */ updateEntry(options: UpdateIncidentTimelineEntryRequest): Promise; /** * Deletes incident timeline entry for the given identifier * Documentation: https://docs.opsgenie.com/docs/incident-timeline-api#delete-incident-timeline-entry * @param options Request options. */ deleteEntry(options: DeleteIncidentTimelineEntryRequest): Promise; /** * Hides incident timeline entry for the given identifier * Documentation: https://docs.opsgenie.com/docs/incident-timeline-api#hide-incident-timeline-entry * @param options Request options. */ hideEntry(options: HideIncidentTimelineEntryRequest): Promise; /** * Unhides incident timeline entry for the given identifier * Documentation: https://docs.opsgenie.com/docs/incident-timeline-api#unhide-incident-timeline-entry * @param options Request options. */ unhideEntry(options: UnhideIncidentTimelineEntryRequest): Promise; } export {}; //# sourceMappingURL=index.d.ts.map