Skip to main content

ci_app_pipeline_events

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

Overview

Nameci_app_pipeline_events
TypeResource
Iddatadog.software_delivery.ci_app_pipeline_events

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringUnique ID of the event. (example: AAAAAWgN8Xwgr1vKDQAAAABBV2dOOFh3ZzZobm1mWXJFYTR0OA)
attributesobjectJSON object containing all event attributes and their associated values.
typestringType of the event. (example: cipipeline)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_ciapp_pipeline_eventsselectregionfilter[query], filter[from], filter[to], sort, page[cursor], page[limit]List endpoint returns CI Visibility pipeline events that match a search query.
Results are paginated similarly to logs.

Use this endpoint to see your latest pipeline events.
create_ciapp_pipeline_eventinsertregionSend your pipeline event to your Datadog platform over HTTP. For details about how pipeline executions are modeled and what execution types we support, see Pipeline Data Model And Execution Types.

Multiple events can be sent in an array (up to 1000).

Pipeline events can be submitted with a timestamp that is up to 18 hours in the past.
aggregate_ciapp_pipeline_eventsexecregionUse this API endpoint to aggregate CI Visibility pipeline events into buckets of computed metrics and timeseries.
search_ciapp_pipeline_eventsexecregionList endpoint returns CI Visibility pipeline events that match a search query.
Results are paginated similarly to logs.

Use this endpoint to build complex events filtering and search.

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
regionstring(default: datadoghq.com)
filter[from]string (date-time)Minimum timestamp for requested events. (example: 2019-01-02T09:42:36.320Z)
filter[query]stringSearch query following log syntax. (example: @ci.provider.name:github @ci.pipeline.name:Pull Request Labeler)
filter[to]string (date-time)Maximum timestamp for requested events. (example: 2019-01-03T09:42:36.320Z)
page[cursor]stringList following results with a cursor provided in the previous query. (example: eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==)
page[limit]integer (int32)Maximum number of events in the response. (example: 25)
sortstringOrder of events in results.

SELECT examples

List endpoint returns CI Visibility pipeline events that match a search query.
Results are paginated similarly to logs.

Use this endpoint to see your latest pipeline events.

SELECT
id,
attributes,
type
FROM datadog.software_delivery.ci_app_pipeline_events
WHERE region = '{{ region }}' -- required
AND filter[query] = '{{ filter[query] }}'
AND filter[from] = '{{ filter[from] }}'
AND filter[to] = '{{ filter[to] }}'
AND sort = '{{ sort }}'
AND page[cursor] = '{{ page[cursor] }}'
AND page[limit] = '{{ page[limit] }}'
;

INSERT examples

Send your pipeline event to your Datadog platform over HTTP. For details about how pipeline executions are modeled and what execution types we support, see Pipeline Data Model And Execution Types.

Multiple events can be sent in an array (up to 1000).

Pipeline events can be submitted with a timestamp that is up to 18 hours in the past.

INSERT INTO datadog.software_delivery.ci_app_pipeline_events (
data__data,
region
)
SELECT
'{{ data }}',
'{{ region }}'
;

Lifecycle Methods

Use this API endpoint to aggregate CI Visibility pipeline events into buckets of computed metrics and timeseries.

EXEC datadog.software_delivery.ci_app_pipeline_events.aggregate_ciapp_pipeline_events 
@region='{{ region }}' --required
@@json=
'{
"compute": "{{ compute }}",
"filter": "{{ filter }}",
"group_by": "{{ group_by }}",
"options": "{{ options }}"
}'
;