events
Creates, updates, deletes, gets or lists an events resource.
Overview​
| Name | events |
| Type | Resource |
| Id | railway.observability.events |
Fields​
The following fields are returned by SELECT queries:
- list
One row per Event.
| Name | Datatype | Description |
|---|---|---|
id | string | |
environment_id | string | |
project_id | string | |
action | string | |
activity_payload | object | Minimal event payload for activity feed list rendering. Avoids returning large deployment payload fields like commit messages. |
created_at | string (date-time) | |
environment | object | Environment object |
object | string | |
payload | object | |
severity | string | (CRITICAL, INFO, NOTICE, WARNING) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | project_id | environment_id, action, object, service_id | Gets the events for a project. Backed by the Railway GraphQL query events. |
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 |
|---|---|---|
project_id | string | |
action | string | GraphQL input object literal of type EventStringListFilter, for example {field: "value"}. |
environment_id | string | |
object | string | GraphQL input object literal of type EventStringListFilter, for example {field: "value"}. |
service_id | string | GraphQL input object literal of type EventStringListFilter, for example {field: "value"}. |
SELECT examples​
- list
Gets the events for a project. Backed by the Railway GraphQL query events.
SELECT
id,
environment_id,
project_id,
action,
activity_payload,
created_at,
environment,
object,
payload,
severity
FROM railway.observability.events
WHERE project_id = '{{ project_id }}' -- required
AND environment_id = '{{ environment_id }}'
AND action = '{{ action }}'
AND object = '{{ object }}'
AND service_id = '{{ service_id }}'
;