Opsgenie
App · 25 actions
Raise, acknowledge, assign and close Opsgenie alerts, open and resolve incidents, see who is on call, ping heartbeats, and follow new alerts, incidents and expired heartbeats.
Actions
| Action | What it does |
|---|---|
| Acknowledge alert | Acknowledge an alert, so Opsgenie stops escalating it. |
| Add note to alert | Add a note to an alert's activity log. |
| Add tags to alert | Add tags to an alert. |
| Assign alert | Make someone the owner of an alert. |
| Close alert | Close an alert that has been dealt with. |
| Close incident | Close an incident for good. |
| Create alert | Raise an alert and notify the teams and people it is routed to. |
| Create heartbeat | Create a heartbeat: Opsgenie raises an alert when it isn't pinged within its interval. |
| Create incident | Open an incident on a service and notify its responders. |
| Delete alert | Delete an alert for good. |
| Delete heartbeat | Delete a heartbeat. |
| Delete incident | Delete an incident. |
| Get alert | Get an alert's message, status, priority, owner, tags, extra properties and who was notified. |
| Get incident | Get an incident's message, status, priority, responders and tags. |
| Get who is on call | Get who is on call for a schedule now, or at a time you choose. |
| List alerts | List alerts, newest first, optionally only those matching an Opsgenie search such as status: open. |
| List heartbeats | List heartbeats, with when each was last pinged and whether it has expired. |
| List incidents | List incidents, newest first, by status and optionally an Opsgenie search. |
| List schedules | List the on-call schedules with their time zone and owner team. |
| List services | List the services incidents can be opened on. |
| List teams | List the account's teams. |
| List users | List the account's users with their role and time zone. |
| Ping heartbeat | Tell Opsgenie a job is still alive, so its heartbeat doesn't expire. |
| Resolve incident | Mark an incident resolved once the problem is fixed. |
| Snooze alert | Stop an alert's notifications until a time. |
Acknowledge alert
Acknowledge an alert, so Opsgenie stops escalating it.
Inputs
- Alert
alerttextRequired - The alert's ID, or its alias or tiny ID when Find alert by says so.
- Find alert by
find_bytext - What the alert is looked up by. Leave empty for its ID.One of:
id,alias,tiny(Tiny ID). Default:id. - Note
notetext - A note to add to the record's activity log.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"requestId": "example",
"result": "example",
"took": 1
}
}Add note to alert
Add a note to an alert's activity log.
Inputs
- Alert
alerttextRequired - The alert's ID, or its alias or tiny ID when Find alert by says so.
- Find alert by
find_bytext - What the alert is looked up by. Leave empty for its ID.One of:
id,alias,tiny(Tiny ID). Default:id. - Note
notetextRequired - The note, up to 25,000 characters.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"requestId": "example",
"result": "example",
"took": 1
}
}Add tags to alert
Add tags to an alert. Tags it already has are kept.
Inputs
- Alert
alerttextRequired - The alert's ID, or its alias or tiny ID when Find alert by says so.
- Find alert by
find_bytext - What the alert is looked up by. Leave empty for its ID.One of:
id,alias,tiny(Tiny ID). Default:id. - Tags
tagslistRequired - The tags to add.
- Note
notetext - A note to add to the record's activity log.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"requestId": "example",
"result": "example",
"took": 1
}
}Assign alert
Make someone the owner of an alert.
Inputs
- Alert
alerttextRequired - The alert's ID, or its alias or tiny ID when Find alert by says so.
- Find alert by
find_bytext - What the alert is looked up by. Leave empty for its ID.One of:
id,alias,tiny(Tiny ID). Default:id. - Owner
owner_idtextRequired - The person who owns the alert from now on.
- Note
notetext - A note to add to the alert's activity log.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"requestId": "example",
"result": "example",
"took": 1
}
}Close alert
Close an alert that has been dealt with.
Inputs
- Alert
alerttextRequired - The alert's ID, or its alias or tiny ID when Find alert by says so.
- Find alert by
find_bytext - What the alert is looked up by. Leave empty for its ID.One of:
id,alias,tiny(Tiny ID). Default:id. - Note
notetext - A note to add to the record's activity log.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"requestId": "example",
"result": "example",
"took": 1
}
}Close incident
Close an incident for good.
Inputs
- Incident
incidenttextRequired - The incident's ID, or its tiny ID when Find incident by says so.
- Find incident by
find_bytext - What the incident is looked up by. Leave empty for its ID.One of:
id,tiny(Tiny ID). Default:id. - Note
notetext - A note to add to the record's activity log.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"requestId": "example",
"result": "example",
"took": 1
}
}Create alert
Raise an alert and notify the teams and people it is routed to. Returns the new alert's ID once Opsgenie has made it.
Inputs
- Message
messagetextRequired - What went wrong, up to 130 characters. It is the alert's title.
- Alias
aliastext - Your own ID for the alert, up to 512 characters. A second alert with the same alias while the first is open is counted as a repeat, not a new alert.
- Description
descriptiontext - More detail about the alert, up to 15,000 characters.
- Priority
prioritytext - How urgent it is. Leave empty for P3.One of:
P1(P1 (critical)),P2(P2 (high)),P3(P3 (moderate)),P4(P4 (low)),P5(P5 (informational)). - Teams
team_idslist - Teams to route it to, who get notified.
- Users
user_idslist - People to route it to, who get notified.
- Tags
tagslist - Tags to add, such as `database`.
- Extra properties
detailsobject - Extra properties to keep with it, as name and value pairs.
- Entity
entitytext - The part of your system the alert is about, such as a server's name.
- Source
sourcetext - Where the alert came from. Leave empty to let Opsgenie fill it in.
- Note
notetext - A note to add when the alert is made.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"alertId": "example",
"alias": "example",
"isSuccess": true,
"requestId": "example",
"status": "example"
}
}Create heartbeat
Create a heartbeat: Opsgenie raises an alert when it isn't pinged within its interval.
Inputs
- Name
nametextRequired - The heartbeat's name, up to 200 characters. Ping heartbeat uses it.
- Interval
intervalnumberRequired - How long Opsgenie waits for a ping, in Interval unit.At least 1.
- Interval unit
interval_unittextRequired - The unit of Interval.One of:
minutes,hours,days. - Turned on
enabledtrue/false - Start watching for pings straight away. Leave empty to turn it on.
- Description
descriptiontext - What the heartbeat watches.
- Owner team
owner_team_idtext - The team that owns the heartbeat.
- Alert message
alert_messagetext - The title of the alert raised when it expires, up to 130 characters.
- Alert priority
alert_prioritytext - The priority of the alert raised when it expires.One of:
P1(P1 (critical)),P2(P2 (high)),P3(P3 (moderate)),P4(P4 (low)),P5(P5 (informational)). - Alert tags
alert_tagslist - Tags for the alert raised when it expires, up to 20.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"data": {
"description": "example",
"enabled": true,
"expired": true,
"interval": 1,
"intervalUnit": "example",
"lastPingTime": "example",
"name": "example"
}
}
}Create incident
Open an incident on a service and notify its responders. Returns the new incident's ID once Opsgenie has made it.
Inputs
- Message
messagetextRequired - What is happening, up to 130 characters. It is the incident's title.
- Service
service_idtextRequired - The service the incident is on.
- Description
descriptiontext - More detail about the incident, up to 15,000 characters.
- Priority
prioritytext - How urgent it is. Leave empty for P3.One of:
P1(P1 (critical)),P2(P2 (high)),P3(P3 (moderate)),P4(P4 (low)),P5(P5 (informational)). - Teams
team_idslist - Teams to route it to, who get notified.
- Users
user_idslist - People to route it to, who get notified.
- Tags
tagslist - Tags to add, such as `database`.
- Extra properties
detailsobject - Extra properties to keep with it, as name and value pairs.
- Note
notetext - A note to add when the incident is made.
- Notify stakeholders
notify_stakeholderstrue/false - Also tell the service's stakeholders. Leave empty to not tell them.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"incidentId": "example",
"isSuccess": true,
"requestId": "example",
"status": "example"
}
}Delete alert
Delete an alert for good.
Inputs
- Alert
alerttextRequired - The alert's ID, or its alias or tiny ID when Find alert by says so.
- Find alert by
find_bytext - What the alert is looked up by. Leave empty for its ID.One of:
id,alias,tiny(Tiny ID). Default:id.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"requestId": "example",
"result": "example",
"took": 1
}
}Delete heartbeat
Delete a heartbeat.
Inputs
- Heartbeat
nametextRequired - The heartbeat's name.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"requestId": "example",
"result": "example",
"took": 1
}
}Delete incident
Delete an incident.
Inputs
- Incident
incidenttextRequired - The incident's ID, or its tiny ID when Find incident by says so.
- Find incident by
find_bytext - What the incident is looked up by. Leave empty for its ID.One of:
id,tiny(Tiny ID). Default:id.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"requestId": "example",
"result": "example",
"took": 1
}
}Get alert
Get an alert's message, status, priority, owner, tags, extra properties and who was notified.
Inputs
- Alert
alerttextRequired - The alert's ID, or its alias or tiny ID when Find alert by says so.
- Find alert by
find_bytext - What the alert is looked up by. Leave empty for its ID.One of:
id,alias,tiny(Tiny ID). Default:id.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"data": {
"acknowledged": true,
"actions": [
"example"
],
"alias": "example",
"count": 1,
"createdAt": "example",
"description": "example",
"details": {},
"entity": "example",
"id": "example",
"integration": {
"id": "example",
"name": "example",
"type": "example"
},
"isSeen": true,
"lastOccurredAt": "example",
"message": "example",
"owner": "example",
"priority": "example",
"report": {
"ackTime": 1,
"acknowledgedBy": "example",
"closeTime": 1,
"closedBy": "example"
},
"responders": [
{
"id": "example",
"type": "example"
}
],
"snoozed": true,
"snoozedUntil": "example",
"source": "example",
"status": "example",
"tags": [
"example"
],
"tinyId": "example",
"updatedAt": "example"
}
}
}Get incident
Get an incident's message, status, priority, responders and tags.
Inputs
- Incident
incidenttextRequired - The incident's ID, or its tiny ID when Find incident by says so.
- Find incident by
find_bytext - What the incident is looked up by. Leave empty for its ID.One of:
id,tiny(Tiny ID). Default:id.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"data": {
"createdAt": "example",
"extraProperties": {},
"id": "example",
"isSeen": true,
"message": "example",
"owner": "example",
"ownerTeam": "example",
"priority": "example",
"responders": [
{
"id": "example",
"type": "example"
}
],
"source": "example",
"status": "example",
"tags": [
"example"
],
"tinyId": "example",
"updatedAt": "example"
}
}
}Get who is on call
Get who is on call for a schedule now, or at a time you choose.
Inputs
- Schedule
schedule_idtextRequired - The schedule.
- At
datedate and time - The time to check. Leave empty for now.
- Usernames only
flattrue/false - Return only the on-call people's usernames, without the rotations they come from.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"data": {
"_parent": {
"enabled": true,
"id": "example",
"name": "example"
},
"onCallParticipants": [
{
"id": "example",
"name": "example",
"type": "example"
}
],
"onCallRecipients": [
"example"
]
}
}
}List alerts
List alerts, newest first, optionally only those matching an Opsgenie search such as status: open.
Inputs
- Search
querytext - An Opsgenie alert search, such as `status: open AND priority: P1`. Leave empty for every alert.
- Sort by
sorttext - What to sort by. Leave empty for when they were created.One of:
createdAt(Created),updatedAt(Last updated),lastOccurredAt(Last occurred),tinyId(Tiny ID),count(Times it occurred),status,message. - Order
ordertext - Newest or oldest first. Leave empty for newest first.One of:
desc(Newest first),asc(Oldest first). - Results to return
limitnumber - How many to return, up to 100. Leave empty for 20.From 1 to 100.
- Results to skip
offsetnumber - How many to skip, to read the next page.At least 0.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"data": [
{
"acknowledged": true,
"alias": "example",
"count": 1,
"createdAt": "example",
"id": "example",
"integration": {
"id": "example",
"name": "example",
"type": "example"
},
"isSeen": true,
"lastOccurredAt": "example",
"message": "example",
"owner": "example",
"priority": "example",
"report": {
"ackTime": 1,
"acknowledgedBy": "example",
"closeTime": 1,
"closedBy": "example"
},
"responders": [
{
"id": "example",
"type": "example"
}
],
"snoozed": true,
"snoozedUntil": "example",
"source": "example",
"status": "example",
"tags": [
"example"
],
"tinyId": "example",
"updatedAt": "example"
}
],
"paging": {
"first": "example",
"last": "example",
"next": "example",
"prev": "example"
}
}
}List heartbeats
List heartbeats, with when each was last pinged and whether it has expired.
Inputs
None.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"data": {
"heartbeats": [
{
"description": "example",
"enabled": true,
"expired": true,
"interval": 1,
"intervalUnit": "example",
"lastPingTime": "example",
"name": "example"
}
]
}
}
}List incidents
List incidents, newest first, by status and optionally an Opsgenie search.
Inputs
- Statuses
statuseslist - Only incidents with these statuses. Leave empty for all of them.One or more of:
open,resolved,closed. - Search
querytext - An Opsgenie incident search to narrow the list, such as `priority: P1`.
- Sort by
sorttext - What to sort by. Leave empty for when they were created.One of:
createdAt(Created),tinyId(Tiny ID),message,status. - Order
ordertext - Newest or oldest first. Leave empty for newest first.One of:
desc(Newest first),asc(Oldest first). - Results to return
limitnumber - How many to return, up to 100. Leave empty for 20.From 1 to 100.
- Results to skip
offsetnumber - How many to skip, to read the next page.At least 0.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"data": [
{
"createdAt": "example",
"extraProperties": {},
"id": "example",
"isSeen": true,
"message": "example",
"owner": "example",
"ownerTeam": "example",
"priority": "example",
"responders": [
{
"id": "example",
"type": "example"
}
],
"source": "example",
"status": "example",
"tags": [
"example"
],
"tinyId": "example",
"updatedAt": "example"
}
],
"paging": {
"first": "example",
"last": "example",
"next": "example",
"prev": "example"
}
}
}List schedules
List the on-call schedules with their time zone and owner team.
Inputs
None.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"data": [
{
"description": "example",
"enabled": true,
"id": "example",
"name": "example",
"ownerTeam": {
"id": "example",
"name": "example"
},
"timezone": "example"
}
]
}
}List services
List the services incidents can be opened on.
Inputs
- Results to return
limitnumber - How many to return, up to 100. Leave empty for 20.From 1 to 100.
- Results to skip
offsetnumber - How many to skip, to read the next page.At least 0.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"data": [
{
"description": "example",
"id": "example",
"name": "example",
"tags": [
"example"
],
"teamId": "example",
"visibility": "example"
}
],
"paging": {
"first": "example",
"last": "example",
"next": "example",
"prev": "example"
}
}
}List teams
List the account's teams.
Inputs
None.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"data": [
{
"description": "example",
"id": "example",
"members": [
{
"role": "example",
"user": {
"id": "example",
"username": "example"
}
}
],
"name": "example"
}
]
}
}List users
List the account's users with their role and time zone.
Inputs
- Search
querytext - A user search, such as `role: admin`. Leave empty for everyone.
- Results to return
limitnumber - How many to return. Leave empty for 100.From 1 to 100.
- Results to skip
offsetnumber - How many to skip, to read the next page.At least 0.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"data": [
{
"blocked": true,
"createdAt": "example",
"fullName": "example",
"id": "example",
"locale": "example",
"role": {
"id": "example",
"name": "example"
},
"tags": [
"example"
],
"timeZone": "example",
"username": "example",
"verified": true
}
],
"paging": {
"first": "example",
"last": "example",
"next": "example",
"prev": "example"
},
"totalCount": 1
}
}Ping heartbeat
Tell Opsgenie a job is still alive, so its heartbeat doesn't expire.
Inputs
- Heartbeat
nametextRequired - The heartbeat's name.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"requestId": "example",
"result": "example",
"took": 1
}
}Resolve incident
Mark an incident resolved once the problem is fixed.
Inputs
- Incident
incidenttextRequired - The incident's ID, or its tiny ID when Find incident by says so.
- Find incident by
find_bytext - What the incident is looked up by. Leave empty for its ID.One of:
id,tiny(Tiny ID). Default:id. - Note
notetext - A note to add to the record's activity log.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"requestId": "example",
"result": "example",
"took": 1
}
}Snooze alert
Stop an alert's notifications until a time.
Inputs
- Alert
alerttextRequired - The alert's ID, or its alias or tiny ID when Find alert by says so.
- Find alert by
find_bytext - What the alert is looked up by. Leave empty for its ID.One of:
id,alias,tiny(Tiny ID). Default:id. - Snooze until
end_timedate and timeRequired - When the alert starts notifying again.
- Note
notetext - A note to add to the record's activity log.
Outputs
dataobject- The response from Opsgenie.
Example output
{
"data": {
"requestId": "example",
"result": "example",
"took": 1
}
}