log_entries
Creates, updates, deletes, gets or lists a log_entries
resource.
Overview
Name | log_entries |
Type | Resource |
Id | pagerduty.incidents.log_entries |
Fields
The following fields are returned by SELECT
queries:
- list_incident_log_entries
A paginated array of the incident's log entries.
Name | Datatype | Description |
---|
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list_incident_log_entries | select | id | Accept , 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_entries | exec | id | Accept , 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.
Name | Datatype | Description |
---|---|---|
id | string | The ID of the resource. |
Accept | string | The Accept header is used as a versioning header. |
Content-Type | string | |
include[] | string | Array of additional Models to include in response. |
is_overview | boolean | If true , will return a subset of log entries that show only the most important changes to the incident. |
limit | integer | The number of results per page. |
offset | integer | Offset to start pagination search results. |
since | string (date-time) | The start of the date range over which you want to search. |
time_zone | string (tzinfo) | Time zone in which dates in the result will be rendered. |
total | boolean | By 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. |
until | string (date-time) | The end of the date range over which you want to search. |
SELECT
examples
- list_incident_log_entries
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_incident_log_entries
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[] }}'
;