Skip to main content

project_incident_management_timeline_event

Gets or lists a project_incident_management_timeline_event resource.

Overview​

Nameproject_incident_management_timeline_event
TypeResource
Idgitlab.projects.project_incident_management_timeline_event

Fields​

The following fields are returned by SELECT queries:

GraphQL response envelope

NameDatatypeDescription
idstringID of the timeline event.
actionstringIndicates the timeline event icon.
authorobjectUserCore identity (id, username, name)
created_atstringTimestamp when the event created.
editablebooleanIndicates the timeline event is editable.
notestringText note of the timeline event.
occurred_atstringTimestamp when the event occurred.
updated_atstringTimestamp when the event updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectfull_path, id, incident_id, hostIncident Management Timeline event associated with the incident. Generated from the GitLab GraphQL schema field Project.incidentManagementTimelineEvent (TimelineEventType).

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
full_pathstringFull path of the project, for example gitlab-org/gitlab
hoststringGitLab host, with an optional port (default gitlab.com). Resolved from the GITLAB_HOST environment variable when it is set (x-stackQL-envVar); a WHERE host value always takes precedence. Self-managed instances: the provider is generated from the gitlab.com schema, so older instances may reject fields they do not serve. (default: gitlab.com, x-stackQL-envVar: GITLAB_HOST)
idstringID of the timeline event.
incident_idstringID of the incident.

SELECT examples​

Incident Management Timeline event associated with the incident. Generated from the GitLab GraphQL schema field Project.incidentManagementTimelineEvent (TimelineEventType).

SELECT
id,
action,
author,
created_at,
editable,
note,
occurred_at,
updated_at
FROM gitlab.projects.project_incident_management_timeline_event
WHERE full_path = '{{ full_path }}' -- required
AND id = '{{ id }}' -- required
AND incident_id = '{{ incident_id }}' -- required
AND host = '{{ host }}' -- required (defaults to gitlab.com; or set GITLAB_HOST)
;