diff --git a/.apigentools-info b/.apigentools-info index 73dd863d9463..e02f71a24393 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-01-09 22:06:12.202192", - "spec_repo_commit": "8d40e082" + "regenerated": "2025-01-10 22:21:31.707539", + "spec_repo_commit": "2f8c42a8" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-01-09 22:06:12.217985", - "spec_repo_commit": "8d40e082" + "regenerated": "2025-01-10 22:21:31.723176", + "spec_repo_commit": "2f8c42a8" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 09a4d845e5ff..d5ac7b28aae4 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -5926,6 +5926,9 @@ components: Make sure to use an application key created by an admin.' properties: + description: + description: A description of the pipeline. + type: string filter: $ref: '#/components/schemas/LogsFilter' id: @@ -5948,6 +5951,12 @@ components: items: $ref: '#/components/schemas/LogsProcessor' type: array + tags: + description: A list of tags associated with the pipeline. + items: + description: A single tag using the format `key:value`. + type: string + type: array type: description: Type of pipeline. example: pipeline diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline.ts b/examples/v1/logs-pipelines/CreateLogsPipeline.ts index 3ea4bd56ed20..e5375c2c363f 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline.ts +++ b/examples/v1/logs-pipelines/CreateLogsPipeline.ts @@ -29,6 +29,7 @@ rule_name_2 bar type: "grok-parser", }, ], + tags: [], }, }; diff --git a/examples/v1/logs-pipelines/UpdateLogsPipeline.ts b/examples/v1/logs-pipelines/UpdateLogsPipeline.ts index 634254635956..51bea8ec3f60 100644 --- a/examples/v1/logs-pipelines/UpdateLogsPipeline.ts +++ b/examples/v1/logs-pipelines/UpdateLogsPipeline.ts @@ -29,6 +29,7 @@ rule_name_2 bar type: "grok-parser", }, ], + tags: [], }, pipelineId: "pipeline_id", }; diff --git a/features/v1/logs_pipelines.feature b/features/v1/logs_pipelines.feature index f7a68917032d..e811aea3af04 100644 --- a/features/v1/logs_pipelines.feature +++ b/features/v1/logs_pipelines.feature @@ -26,14 +26,14 @@ Feature: Logs Pipelines @generated @skip @team:DataDog/event-platform-experience Scenario: Create a pipeline returns "Bad Request" response Given new "CreateLogsPipeline" request - And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}]} + And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/event-platform-experience Scenario: Create a pipeline returns "OK" response Given new "CreateLogsPipeline" request - And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}]} + And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []} When the request is sent Then the response status is 200 OK @@ -81,7 +81,7 @@ Feature: Logs Pipelines Scenario: Update a pipeline returns "Bad Request" response Given new "UpdateLogsPipeline" request And request contains "pipeline_id" parameter from "REPLACE.ME" - And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}]} + And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []} When the request is sent Then the response status is 400 Bad Request @@ -89,7 +89,7 @@ Feature: Logs Pipelines Scenario: Update a pipeline returns "OK" response Given new "UpdateLogsPipeline" request And request contains "pipeline_id" parameter from "REPLACE.ME" - And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}]} + And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []} When the request is sent Then the response status is 200 OK diff --git a/packages/datadog-api-client-v1/models/LogsPipeline.ts b/packages/datadog-api-client-v1/models/LogsPipeline.ts index 501f57cb9f29..1dc70011cfa0 100644 --- a/packages/datadog-api-client-v1/models/LogsPipeline.ts +++ b/packages/datadog-api-client-v1/models/LogsPipeline.ts @@ -16,6 +16,10 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; * Make sure to use an application key created by an admin. */ export class LogsPipeline { + /** + * A description of the pipeline. + */ + "description"?: string; /** * Filter for logs. */ @@ -40,6 +44,10 @@ export class LogsPipeline { * Ordered list of processors in this pipeline. */ "processors"?: Array; + /** + * A list of tags associated with the pipeline. + */ + "tags"?: Array; /** * Type of pipeline. */ @@ -61,6 +69,10 @@ export class LogsPipeline { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { + description: { + baseName: "description", + type: "string", + }, filter: { baseName: "filter", type: "LogsFilter", @@ -86,6 +98,10 @@ export class LogsPipeline { baseName: "processors", type: "Array", }, + tags: { + baseName: "tags", + type: "Array", + }, type: { baseName: "type", type: "string",