Skip to main content

invocations

Creates, updates, deletes, gets or lists an invocations resource.

Overview

Nameinvocations
TypeResource
Idpagerduty.automation_actions.invocations

Fields

The following fields are returned by SELECT queries:

Invocation information

NameDatatypeDescription
idstring
action_idstring
runner_idstring
action_snapshotobject
durationintegerThe duration of the invocation's execution time.
html_urlstring (url)a URL at which the entity is uniquely displayed in the Web app
metadataobject
selfstring (url)the API show URL at which the object is accessible
statestringprepared -- the invocation exists and can be referenced, but is NOT available to a Runner <br /> created -- the invocation exists and is waiting for a Runner <br /> sent -- invocation sent to a Runner <br /> queued -- invocation queued by a Runner <br /> running -- invocation is being ran by a Runner <br /> aborted -- invocation was aborted on a Runner <br /> completed -- invocation completed on a Runner <br /> error -- invocation encountered an error on a Runner unknown -- transient error encountered when fetching invocation state (prepared, created, sent, queued, running, aborted, completed, error, unknown) (example: sent)
summarystringA short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to name, though it is not intended to be an identifier.
timingarrayA list of state transitions with timestamps, sorted in ascending order by timestamp. Only the 'created' transition is guaranteed to exist at any time.
typestringA string that determines the schema of the object. This must be the standard name for the entity, suffixed by _reference if the object is a reference.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidGet an Automation Action Invocation<br />
listselectinvocation_state, not_invocation_state, incident_id, action_idList Invocations<br />
createinsertid, invocationInvokes an Action<br />

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe ID of the resource.
action_idstringAction ID
incident_idstringIncident ID
invocation_statestringInvocation state
not_invocation_statestringInvocation state inverse filter (matches invocations NOT in the specified state)

SELECT examples

Get an Automation Action Invocation<br />

SELECT
id,
action_id,
runner_id,
action_snapshot,
duration,
html_url,
metadata,
self,
state,
summary,
timing,
type
FROM pagerduty.automation_actions.invocations
WHERE id = '{{ id }}' -- required
;

INSERT examples

Invokes an Action<br />

INSERT INTO pagerduty.automation_actions.invocations (
invocation,
id
)
SELECT
'{{ invocation }}' /* required */,
'{{ id }}'
RETURNING
invocation
;