@managed-api/opsgenie-sr-connect
v2.0.0
Published
Adaptavist Managed API for Opsgenie for ScriptRunner Connect environment
Downloads
8
Keywords
Readme
ScriptRunner Connect Managed API for Opsgenie
Managed API for Opsgenie is an API Client for Opsgenie by Adaptavist. You can read more about Managed APIs here.
This is ScriptRunner Connect runtime specific version of the Managed API (with sr-connect
suffix). If you want to use Managed API in any other runtime, have a look at the runtime agnostic version.
Supported API calls
- fetch
- Alert
- Incident
Constructing Managed API
In ScriptRunner Connect a Managed API is constructed for you, but if you need to construct it manually, here's how you can do it:
import { OpsgenieApi } from '@managed-api/opsgenie-sr-connect';
export default async function() {
const api = new OpsgenieApi('API_CONNECTION_ID');
}
Contact
Feel free to drop ideas, suggestions or improvements into our Slack community channel.
Changelog
2.0.0
Breaking change: URL and query string parameters are now URL encoded, meaning if you encoded them explicitly before you have to remove your own encoding, otherwise they will get double encoded.
0.2.0
Added support for the following Alert methods:
- Acknowledge Alert that can be used as
Alert.acknowledgeAlert
orAll.acknowledgeAlert
. - Add Responder to Alert that can be used as
Alert.addResponder
orAll.addResponderToAlert
. - Add Team to Alert that can be used as
Alert.addTeam
orAll.addTeamToAlert
. - Assign Alert that can be used as
Alert.assignAlert
orAll.assignAlert
. - Close Alert that can be used as
Alert.closeAlert
orAll.closeAlert
. - Count Alerts that can be used as
Alert.countAlerts
orAll.countAlerts
. - Create Alert that can be used as
Alert.createAlert
orAll.createAlert
. - Delete Alert that can be used as
Alert.deleteAlert
orAll.deleteAlert
. - Escalate Alert to Next that can be used as
Alert.escalateAlertToNext
orAll.escalateAlertToNext
. - Execute Custom Action that can be used as
Alert.executeCustomAction
orAll.executeCustomAlertAction
. - Get Alert that can be used as
Alert.getAlert
orAll.getAlert
. - List Alerts that can be used as
Alert.getAlerts
orAll.getAlerts
. - List Alert Logs that can be used as
Alert.getLogs
orAll.getAlertLogs
. - List Alert Recipients that can be used as
Alert.getRecipient
orAll.getAlertRecipients
. - List Alert Recipients that can be used as
Alert.getRequestStatus
orAll.getRequestStatusforAlert
. - Snooze Alert that can be used as
Alert.snoozeAlert
orAll.snoozeAlert
. - Unacknowledge Alert that can be used as
Alert.unacknowledgeAlert
orAll.unacknowledgeAlert
. - Update Alert Description that can be used as
Alert.updateDescription
orAll.updateAlertDescription
. - Update Alert Message that can be used as
Alert.updateMessage
orAll.updateAlertMessage
. - Update Alert Priority that can be used as
Alert.updatePriority
orAll.updateIncidentPriority
.
- Acknowledge Alert that can be used as
Added support for the following Alert.Attachment methods:
- Create Alert Attachment that can be used as
Alert.Attachment.createAttachment
orAll.createAlertAttachment
. - Delete Alert Attachment that can be used as
Alert.Attachment.deleteAttachment
orAll.deleteAlertAttachment
. - Get Alert Attachment that can be used as
Alert.Attachment.getAttachment
orAll.getAlertAttachment
. - List Alert Attachments that can be used as
Alert.Attachment.getAttachments
orAll.getAlertAttachments
.
- Create Alert Attachment that can be used as
Added support for the following Alert.Details methods:
- Add Details (Custom Properties) to Alert that can be used as
Alert.Details.addDetails
orAll.addDetailsToAlert
. - Remove Details (Custom Properties) from Alert that can be used as
Alert.Details.removeDetails
orAll.removeDetailsFromAlert
.
- Add Details (Custom Properties) to Alert that can be used as
Added support for the following Alert.Note methods:
- Add Note to Alert that can be used as
Alert.Note.addNote
orAll.addNoteToAlert
. - List Alert Notes that can be used as
Alert.Note.getNote
orAll.getAlertNotes
.
- Add Note to Alert that can be used as
Added support for the following Alert.Saved.Search methods:
- Create a Saved Search that can be used as
Alert.Saved.Search.createSavedSearch
orAll.createSavedSearchForAlert
. - Delete Saved Search that can be used as
Alert.Saved.Search.deleteSavedSearch
orAll.deleteSavedSearchForAlert
. - Get Saved Search that can be used as
Alert.Saved.Search.getSavedSearch
orAll.getSavedSearchForAlert
. - List Saved Searches that can be used as
Alert.Saved.Search.getSavedSearches
orAll.getSavedSearchesForAlert
. - Update Saved Search that can be used as
Alert.Saved.Search.updateSavedSearch
orAll.updateSavedSearchForAlert
.
- Create a Saved Search that can be used as
Added support for the following Alert.Tags methods:
- Add Tags to Alert that can be used as
Alert.Tags.addTags
orAll.addTagsToAlert
. - Remove Tags from Alert that can be used as
Alert.Tags.removeTags
orAll.removeTagsFromAlert
.
- Add Tags to Alert that can be used as
Added support for the following Incident methods:
- Add Responder to Incident that can be used as
Incident.addResponder
orAll.addResponderToIncident
. - Close Incident that can be used as
Incident.closeIncident
orAll.closeIncident
. - Create Incident that can be used as
Incident.createIncident
orAll.createIncident
. - Delete Incident that can be used as
Incident.deleteIncident
orAll.deleteIncident
. - Get Incident that can be used as
Incident.getIncident
orAll.getIncident
. - List Incidents that can be used as
Incident.getIncidenst
orAll.getIncidents
. - List Incident Logs that can be used as
Incident.getLogs
orAll.getIncidentLogs
. - Get Request Status that can be used as
Incident.getRequestStatus
orAll.getRequestStatusForIncident
. - Reopen Incident that can be used as
Incident.reopenIncident
orAll.reopenIncident
. - Resolve Incident that can be used as
Incident.resolveIncident
orAll.resolveIncident
. - Update Incident Description that can be used as
Incident.updateDescription
orAll.updateIncidentDescription
. - Update Incident Message that can be used as
Incident.updateMessage
orAll.updateIncidentMessage
. - Update Incident Priority that can be used as
Incident.updatePriority
orAll.updateIncidentPriority
.
- Add Responder to Incident that can be used as
Added support for the following Incident.Alert methods:
- Get Associated Alerts that can be used as
Incident.Alert.getAssociatedAlerts
orAll.getAssociatedAlertsForIncident
. - Get Responder Alerts that can be used as
Incident.Alert.getResponderAlerts
orAll.getResponderAlertsForIncident
.
- Get Associated Alerts that can be used as
Added support for the following Incident.Details methods:
- Add Details(Custom Properties) to Incident that can be used as
Incident.Details.addDetails
orAll.addDetailsToIncident
. - Remove Details(Custom Properties) from Incident that can be used as
Incident.Details.removeDetails
orAll.removeDetailsFromIncident
.
- Add Details(Custom Properties) to Incident that can be used as
Added support for the following Incident.Note methods:
- Add Note to Incident that can be used as
Incident.Note.addNote
orAll.addNoteToIncident
. - List Incident Notes that can be used as
Incident.Note.getNotes
orAll.getIncidentNotes
.
- Add Note to Incident that can be used as
Added support for the following Incident.Tags methods:
- Add Tags to Incident that can be used as
Incident.Tags.addTags
orAll.addTagsToIncident
. - Remove Tags from Incident that can be used as
Incident.Tags.removeTags
orAll.removeTagsFromIncident
.
- Add Tags to Incident that can be used as
Added support for the following Incident.Timeline methods:
- Add Incident Timeline Entry that can be used as
Incident.Timeline.addEntry
orAll.addIncidentTimelineEntry
. - Delete Incident Timeline Entry that can be used as
Incident.Timeline.deleteEntry
orAll.deleteIncidentTimelineEntry
. - List Incident Timeline Entries that can be used as
Incident.Timeline.getEntries
orAll.getIncidentTimelineEntries
. - Get Incident Timeline Entrys that can be used as
Incident.Timeline.getEntry
orAll.getIncidentTimelineEntry
. - Hide Incident Timeline Entry that can be used as
Incident.Timeline.hideEntry
orAll.hideIncidentTimelineEntry
. - Unhide Incident Timeline Entry that can be used as
Incident.Timeline.unhideEntry
orAll.unhideIncidentTimelineEntry
. - Update Incident Timeline Entry that can be used as
Incident.Timeline.updateEntry
orAll.updateIncidentTimelineEntry
.
- Add Incident Timeline Entry that can be used as
Copyright Adaptavist 2024 (c) All rights reserved