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
created -- the invocation exists and is waiting for a Runner
sent -- invocation sent to a Runner
queued -- invocation queued by a Runner
running -- invocation is being ran by a Runner
aborted -- invocation was aborted on a Runner
completed -- invocation completed on a Runner
error -- invocation encountered an error on a Runner (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. 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
get_automation_actions_invocationselectidAccept, Content-TypeGet an Automation Action Invocation
list_automation_action_invocationsselectincident_idAccept, Content-Type, invocation_stateList Invocations
_list_automation_action_invocationsexecincident_idAccept, Content-Type, invocation_stateList Invocations
_get_automation_actions_invocationexecidAccept, Content-TypeGet an Automation Action Invocation

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.
incident_idstringIncident ID
AcceptstringThe Accept header is used as a versioning header.
Content-Typestring
invocation_statestringInvocation state

SELECT examples

Get an Automation Action Invocation

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
AND Accept = '{{ Accept }}'
AND Content-Type = '{{ Content-Type }}'
;

Lifecycle Methods

List Invocations

EXEC pagerduty.automation_actions.invocations._list_automation_action_invocations 
@incident_id='{{ incident_id }}' --required,
@Accept='{{ Accept }}',
@Content-Type='{{ Content-Type }}',
@invocation_state='{{ invocation_state }}'
;