pipeline_order
Creates, updates, deletes, gets or lists a pipeline_order resource.
Overview
| Name | pipeline_order |
| Type | Resource |
| Id | datadog.logs.pipeline_order |
Fields
The following fields are returned by SELECT queries:
- get_logs_pipeline_order
| Name | Datatype | Description |
|---|---|---|
pipeline_ids | array | Ordered Array of <PIPELINE_ID> strings, the order of pipeline IDs in the array define the overall Pipelines order for Datadog. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_logs_pipeline_order | select | Get the current order of your pipelines.<br />This endpoint takes no JSON arguments. | ||
update_logs_pipeline_order | replace | pipeline_ids | Update the order of your pipelines. Since logs are processed sequentially, reordering a pipeline may change<br />the structure and content of the data processed by other pipelines and their processors.<br /><br />Note: Using the PUT method updates your pipeline order by replacing your current order<br />with the new one sent to your Datadog organization. |
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 |
|---|---|---|
site | string | The Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both. |
SELECT examples
- get_logs_pipeline_order
Get the current order of your pipelines.<br />This endpoint takes no JSON arguments.
SELECT
pipeline_ids
FROM datadog.logs.pipeline_order
;
REPLACE examples
- update_logs_pipeline_order
Update the order of your pipelines. Since logs are processed sequentially, reordering a pipeline may change<br />the structure and content of the data processed by other pipelines and their processors.<br /><br />Note: Using the PUT method updates your pipeline order by replacing your current order<br />with the new one sent to your Datadog organization.
REPLACE datadog.logs.pipeline_order
SET
pipeline_ids = '{{ pipeline_ids }}'
WHERE
pipeline_ids = '{{ pipeline_ids }}' --required
RETURNING
pipeline_ids;