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

ActionWhat it does
Acknowledge alertAcknowledge an alert, so Opsgenie stops escalating it.
Add note to alertAdd a note to an alert's activity log.
Add tags to alertAdd tags to an alert.
Assign alertMake someone the owner of an alert.
Close alertClose an alert that has been dealt with.
Close incidentClose an incident for good.
Create alertRaise an alert and notify the teams and people it is routed to.
Create heartbeatCreate a heartbeat: Opsgenie raises an alert when it isn't pinged within its interval.
Create incidentOpen an incident on a service and notify its responders.
Delete alertDelete an alert for good.
Delete heartbeatDelete a heartbeat.
Delete incidentDelete an incident.
Get alertGet an alert's message, status, priority, owner, tags, extra properties and who was notified.
Get incidentGet an incident's message, status, priority, responders and tags.
Get who is on callGet who is on call for a schedule now, or at a time you choose.
List alertsList alerts, newest first, optionally only those matching an Opsgenie search such as status: open.
List heartbeatsList heartbeats, with when each was last pinged and whether it has expired.
List incidentsList incidents, newest first, by status and optionally an Opsgenie search.
List schedulesList the on-call schedules with their time zone and owner team.
List servicesList the services incidents can be opened on.
List teamsList the account's teams.
List usersList the account's users with their role and time zone.
Ping heartbeatTell Opsgenie a job is still alive, so its heartbeat doesn't expire.
Resolve incidentMark an incident resolved once the problem is fixed.
Snooze alertStop an alert's notifications until a time.

Acknowledge alert

Acknowledge an alert, so Opsgenie stops escalating it.

Inputs

AlertalerttextRequired
The alert's ID, or its alias or tiny ID when Find alert by says so.
Find alert byfind_bytext
What the alert is looked up by. Leave empty for its ID.One of: id, alias, tiny (Tiny ID). Default: id.
Notenotetext
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

AlertalerttextRequired
The alert's ID, or its alias or tiny ID when Find alert by says so.
Find alert byfind_bytext
What the alert is looked up by. Leave empty for its ID.One of: id, alias, tiny (Tiny ID). Default: id.
NotenotetextRequired
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

AlertalerttextRequired
The alert's ID, or its alias or tiny ID when Find alert by says so.
Find alert byfind_bytext
What the alert is looked up by. Leave empty for its ID.One of: id, alias, tiny (Tiny ID). Default: id.
TagstagslistRequired
The tags to add.
Notenotetext
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

AlertalerttextRequired
The alert's ID, or its alias or tiny ID when Find alert by says so.
Find alert byfind_bytext
What the alert is looked up by. Leave empty for its ID.One of: id, alias, tiny (Tiny ID). Default: id.
Ownerowner_idtextRequired
The person who owns the alert from now on.
Notenotetext
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

AlertalerttextRequired
The alert's ID, or its alias or tiny ID when Find alert by says so.
Find alert byfind_bytext
What the alert is looked up by. Leave empty for its ID.One of: id, alias, tiny (Tiny ID). Default: id.
Notenotetext
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

IncidentincidenttextRequired
The incident's ID, or its tiny ID when Find incident by says so.
Find incident byfind_bytext
What the incident is looked up by. Leave empty for its ID.One of: id, tiny (Tiny ID). Default: id.
Notenotetext
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

MessagemessagetextRequired
What went wrong, up to 130 characters. It is the alert's title.
Aliasaliastext
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.
Descriptiondescriptiontext
More detail about the alert, up to 15,000 characters.
Priorityprioritytext
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)).
Teamsteam_idslist
Teams to route it to, who get notified.
Usersuser_idslist
People to route it to, who get notified.
Tagstagslist
Tags to add, such as `database`.
Extra propertiesdetailsobject
Extra properties to keep with it, as name and value pairs.
Entityentitytext
The part of your system the alert is about, such as a server's name.
Sourcesourcetext
Where the alert came from. Leave empty to let Opsgenie fill it in.
Notenotetext
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

NamenametextRequired
The heartbeat's name, up to 200 characters. Ping heartbeat uses it.
IntervalintervalnumberRequired
How long Opsgenie waits for a ping, in Interval unit.At least 1.
Interval unitinterval_unittextRequired
The unit of Interval.One of: minutes, hours, days.
Turned onenabledtrue/false
Start watching for pings straight away. Leave empty to turn it on.
Descriptiondescriptiontext
What the heartbeat watches.
Owner teamowner_team_idtext
The team that owns the heartbeat.
Alert messagealert_messagetext
The title of the alert raised when it expires, up to 130 characters.
Alert priorityalert_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 tagsalert_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

MessagemessagetextRequired
What is happening, up to 130 characters. It is the incident's title.
Serviceservice_idtextRequired
The service the incident is on.
Descriptiondescriptiontext
More detail about the incident, up to 15,000 characters.
Priorityprioritytext
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)).
Teamsteam_idslist
Teams to route it to, who get notified.
Usersuser_idslist
People to route it to, who get notified.
Tagstagslist
Tags to add, such as `database`.
Extra propertiesdetailsobject
Extra properties to keep with it, as name and value pairs.
Notenotetext
A note to add when the incident is made.
Notify stakeholdersnotify_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

AlertalerttextRequired
The alert's ID, or its alias or tiny ID when Find alert by says so.
Find alert byfind_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

HeartbeatnametextRequired
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

IncidentincidenttextRequired
The incident's ID, or its tiny ID when Find incident by says so.
Find incident byfind_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

AlertalerttextRequired
The alert's ID, or its alias or tiny ID when Find alert by says so.
Find alert byfind_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

IncidentincidenttextRequired
The incident's ID, or its tiny ID when Find incident by says so.
Find incident byfind_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

Scheduleschedule_idtextRequired
The schedule.
Atdatedate and time
The time to check. Leave empty for now.
Usernames onlyflattrue/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

Searchquerytext
An Opsgenie alert search, such as `status: open AND priority: P1`. Leave empty for every alert.
Sort bysorttext
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.
Orderordertext
Newest or oldest first. Leave empty for newest first.One of: desc (Newest first), asc (Oldest first).
Results to returnlimitnumber
How many to return, up to 100. Leave empty for 20.From 1 to 100.
Results to skipoffsetnumber
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

Statusesstatuseslist
Only incidents with these statuses. Leave empty for all of them.One or more of: open, resolved, closed.
Searchquerytext
An Opsgenie incident search to narrow the list, such as `priority: P1`.
Sort bysorttext
What to sort by. Leave empty for when they were created.One of: createdAt (Created), tinyId (Tiny ID), message, status.
Orderordertext
Newest or oldest first. Leave empty for newest first.One of: desc (Newest first), asc (Oldest first).
Results to returnlimitnumber
How many to return, up to 100. Leave empty for 20.From 1 to 100.
Results to skipoffsetnumber
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 returnlimitnumber
How many to return, up to 100. Leave empty for 20.From 1 to 100.
Results to skipoffsetnumber
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

Searchquerytext
A user search, such as `role: admin`. Leave empty for everyone.
Results to returnlimitnumber
How many to return. Leave empty for 100.From 1 to 100.
Results to skipoffsetnumber
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

HeartbeatnametextRequired
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

IncidentincidenttextRequired
The incident's ID, or its tiny ID when Find incident by says so.
Find incident byfind_bytext
What the incident is looked up by. Leave empty for its ID.One of: id, tiny (Tiny ID). Default: id.
Notenotetext
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

AlertalerttextRequired
The alert's ID, or its alias or tiny ID when Find alert by says so.
Find alert byfind_bytext
What the alert is looked up by. Leave empty for its ID.One of: id, alias, tiny (Tiny ID). Default: id.
Snooze untilend_timedate and timeRequired
When the alert starts notifying again.
Notenotetext
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
  }
}

On this page