Skip to main content

log_entries

Creates, updates, deletes, gets or lists a log_entries resource.

Overview

Namelog_entries
TypeResource
Idpagerduty.incidents.log_entries

Fields

The following fields are returned by SELECT queries:

A paginated array of the incident's log entries.

NameDatatypeDescription

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_incident_log_entriesselectidAccept, Content-Type, limit, offset, total, time_zone, since, until, is_overview, include[]List log entries for the specified incident.

An incident represents a problem or an issue that needs to be addressed and resolved.

A Log Entry are a record of all events on your account.

For more information see the API Concepts Document

Scoped OAuth requires: incidents.read
_list_incident_log_entriesexecidAccept, Content-Type, limit, offset, total, time_zone, since, until, is_overview, include[]List log entries for the specified incident.

An incident represents a problem or an issue that needs to be addressed and resolved.

A Log Entry are a record of all events on your account.

For more information see the API Concepts Document

Scoped OAuth requires: incidents.read

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.
AcceptstringThe Accept header is used as a versioning header.
Content-Typestring
include[]stringArray of additional Models to include in response.
is_overviewbooleanIf true, will return a subset of log entries that show only the most important changes to the incident.
limitintegerThe number of results per page.
offsetintegerOffset to start pagination search results.
sincestring (date-time)The start of the date range over which you want to search.
time_zonestring (tzinfo)Time zone in which dates in the result will be rendered.
totalbooleanBy default the total field in pagination responses is set to null to provide the fastest possible response times. Set total to true for this field to be populated. See our Pagination Docs for more information.
untilstring (date-time)The end of the date range over which you want to search.

SELECT examples

List log entries for the specified incident.

An incident represents a problem or an issue that needs to be addressed and resolved.

A Log Entry are a record of all events on your account.

For more information see the API Concepts Document

Scoped OAuth requires: incidents.read

SELECT
*
FROM pagerduty.incidents.log_entries
WHERE id = '{{ id }}' -- required
AND Accept = '{{ Accept }}'
AND Content-Type = '{{ Content-Type }}'
AND limit = '{{ limit }}'
AND offset = '{{ offset }}'
AND total = '{{ total }}'
AND time_zone = '{{ time_zone }}'
AND since = '{{ since }}'
AND until = '{{ until }}'
AND is_overview = '{{ is_overview }}'
AND include[] = '{{ include[] }}'
;

Lifecycle Methods

List log entries for the specified incident.

An incident represents a problem or an issue that needs to be addressed and resolved.

A Log Entry are a record of all events on your account.

For more information see the API Concepts Document

Scoped OAuth requires: incidents.read

EXEC pagerduty.incidents.log_entries._list_incident_log_entries 
@id='{{ id }}' --required,
@Accept='{{ Accept }}',
@Content-Type='{{ Content-Type }}',
@limit='{{ limit }}',
@offset='{{ offset }}',
@total={{ total }},
@time_zone='{{ time_zone }}',
@since='{{ since }}',
@until='{{ until }}',
@is_overview={{ is_overview }},
@include[]='{{ include[] }}'
;