Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,408 changes: 1,173 additions & 235 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2624,6 +2624,26 @@
"tags" => "String",
"limit" => "Integer",
},
"v2.ListPipelines" => {
"page_size" => "Integer",
"page_number" => "Integer",
},
"v2.CreatePipeline" => {
"body" => "ObservabilityPipelineSpec",
},
"v2.ValidatePipeline" => {
"body" => "ObservabilityPipelineSpec",
},
"v2.DeletePipeline" => {
"pipeline_id" => "String",
},
"v2.GetPipeline" => {
"pipeline_id" => "String",
},
"v2.UpdatePipeline" => {
"pipeline_id" => "String",
"body" => "ObservabilityPipeline",
},
"v2.CreateOnCallEscalationPolicy" => {
"include" => "String",
"body" => "EscalationPolicyCreateRequest",
Expand Down Expand Up @@ -2965,26 +2985,6 @@
"agent_rule_id" => "String",
"body" => "CloudWorkloadSecurityAgentRuleUpdateRequest",
},
"v2.ListPipelines" => {
"page_size" => "Integer",
"page_number" => "Integer",
},
"v2.CreatePipeline" => {
"body" => "ObservabilityPipelineSpec",
},
"v2.ValidatePipeline" => {
"body" => "ObservabilityPipelineSpec",
},
"v2.DeletePipeline" => {
"pipeline_id" => "String",
},
"v2.GetPipeline" => {
"pipeline_id" => "String",
},
"v2.UpdatePipeline" => {
"pipeline_id" => "String",
"body" => "ObservabilityPipeline",
},
"v2.DeleteRestrictionPolicy" => {
"resource_id" => "String",
},
Expand Down
24 changes: 12 additions & 12 deletions features/v2/given.json
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,18 @@
"tag": "Monitors",
"operationId": "CreateMonitorUserTemplate"
},
{
"parameters": [
{
"name": "body",
"value": "{\n \"data\":{\n \"attributes\":{\n \"config\":{\n \"destinations\":[\n {\n \"id\":\"datadog-logs-destination\",\n \"inputs\":[\n \"processor-group-0\"\n ],\n \"type\":\"datadog_logs\"\n }\n ],\n \"processors\":[\n {\n \"id\":\"processor-group-0\",\n \"include\":\"service:my-service\",\n \"display_name\": \"My Processor Group\",\n \"inputs\":[\n \"datadog-agent-source\"\n ],\n \"enabled\": true,\n \"processors\": [\n {\n \"id\": \"filter-processor\",\n \"type\": \"filter\",\n \"include\": \"status:error\",\n \"display_name\": \"My Filter Processor\",\n \"enabled\": true\n }\n ]\n }\n ],\n \"sources\":[\n {\n \"id\":\"datadog-agent-source\",\n \"type\":\"datadog_agent\"\n }\n ]\n },\n \"name\":\"Main Observability Pipeline\"\n },\n \"type\":\"pipelines\"\n }\n}"
}
],
"step": "there is a valid \"pipeline\" in the system",
"key": "pipeline",
"tag": "Observability Pipelines",
"operationId": "CreatePipeline"
},
{
"parameters": [
{
Expand Down Expand Up @@ -879,18 +891,6 @@
"tag": "CSM Threats",
"operationId": "CreateCSMThreatsAgentPolicy"
},
{
"parameters": [
{
"name": "body",
"value": "{\n \"data\":{\n \"attributes\":{\n \"config\":{\n \"destinations\":[\n {\n \"id\":\"datadog-logs-destination\",\n \"inputs\":[\n \"processor-group-0\"\n ],\n \"type\":\"datadog_logs\"\n }\n ],\n \"processors\":[\n {\n \"id\":\"processor-group-0\",\n \"include\":\"service:my-service\",\n \"display_name\": \"My Processor Group\",\n \"inputs\":[\n \"datadog-agent-source\"\n ],\n \"enabled\": true,\n \"processors\": [\n {\n \"id\": \"filter-processor\",\n \"type\": \"filter\",\n \"include\": \"status:error\",\n \"display_name\": \"My Filter Processor\",\n \"enabled\": true\n }\n ]\n }\n ],\n \"sources\":[\n {\n \"id\":\"datadog-agent-source\",\n \"type\":\"datadog_agent\"\n }\n ]\n },\n \"name\":\"Main Observability Pipeline\"\n },\n \"type\":\"pipelines\"\n }\n}"
}
],
"step": "there is a valid \"pipeline\" in the system",
"key": "pipeline",
"tag": "Observability Pipelines",
"operationId": "CreatePipeline"
},
{
"parameters": [
{
Expand Down
4 changes: 2 additions & 2 deletions features/v2/observability_pipelines.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Feature: Observability Pipelines
Scenario: Create a new pipeline returns "Conflict" response
Given operation "CreatePipeline" enabled
And new "CreatePipeline" request
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["filter-processor"], "type": "datadog_logs"}], "processors": [{"enabled": true, "id": "my-processor-group", "include": "service:my-service", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}, {"enabled": true, "field": "message", "id": "json-processor", "include": "*", "type": "parse_json"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "type": "pipelines"}}
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["filter-processor"], "type": "datadog_logs"}], "pipeline_type": "logs", "processors": [{"enabled": true, "id": "my-processor-group", "include": "service:my-service", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}, {"enabled": true, "field": "message", "id": "json-processor", "include": "*", "type": "parse_json"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "type": "pipelines"}}
When the request is sent
Then the response status is 409 Conflict

Expand Down Expand Up @@ -115,7 +115,7 @@ Feature: Observability Pipelines
Given operation "UpdatePipeline" enabled
And new "UpdatePipeline" request
And request contains "pipeline_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["filter-processor"], "type": "datadog_logs"}], "processors": [{"enabled": true, "id": "my-processor-group", "include": "service:my-service", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}, {"enabled": true, "field": "message", "id": "json-processor", "include": "*", "type": "parse_json"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "type": "pipelines"}}
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["filter-processor"], "type": "datadog_logs"}], "pipeline_type": "logs", "processors": [{"enabled": true, "id": "my-processor-group", "include": "service:my-service", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}, {"enabled": true, "field": "message", "id": "json-processor", "include": "*", "type": "parse_json"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "type": "pipelines"}}
When the request is sent
Then the response status is 409 Conflict

Expand Down
50 changes: 25 additions & 25 deletions features/v2/undo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2838,6 +2838,31 @@
"type": "safe"
}
},
"ListPipelines": {
"tag": "Observability Pipelines",
"undo": {
"type": "safe"
}
},
"CreatePipeline": {
"tag": "Observability Pipelines",
"undo": {
"operationId": "DeletePipeline",
"parameters": [
{
"name": "pipeline_id",
"source": "data.id"
}
],
"type": "unsafe"
}
},
"ValidatePipeline": {
"tag": "Observability Pipelines",
"undo": {
"type": "safe"
}
},
"CreateOnCallEscalationPolicy": {
"tag": "On-Call",
"undo": {
Expand Down Expand Up @@ -3443,31 +3468,6 @@
"type": "idempotent"
}
},
"ListPipelines": {
"tag": "Observability Pipelines",
"undo": {
"type": "safe"
}
},
"CreatePipeline": {
"tag": "Observability Pipelines",
"undo": {
"operationId": "DeletePipeline",
"parameters": [
{
"name": "pipeline_id",
"source": "data.id"
}
],
"type": "unsafe"
}
},
"ValidatePipeline": {
"tag": "Observability Pipelines",
"undo": {
"type": "safe"
}
},
"DeletePipeline": {
"tag": "Observability Pipelines",
"undo": {
Expand Down
12 changes: 6 additions & 6 deletions lib/datadog_api_client/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,12 @@ def initialize
"v2.update_monitor_user_template": false,
"v2.validate_existing_monitor_user_template": false,
"v2.validate_monitor_user_template": false,
"v2.create_pipeline": false,
"v2.delete_pipeline": false,
"v2.get_pipeline": false,
"v2.list_pipelines": false,
"v2.update_pipeline": false,
"v2.validate_pipeline": false,
"v2.list_role_templates": false,
"v2.create_connection": false,
"v2.delete_connection": false,
Expand All @@ -312,12 +318,6 @@ def initialize
"v2.query_event_filtered_users": false,
"v2.query_users": false,
"v2.update_connection": false,
"v2.create_pipeline": false,
"v2.delete_pipeline": false,
"v2.get_pipeline": false,
"v2.list_pipelines": false,
"v2.update_pipeline": false,
"v2.validate_pipeline": false,
"v2.create_scorecard_outcomes_batch": false,
"v2.create_scorecard_rule": false,
"v2.delete_scorecard_rule": false,
Expand Down
Loading
Loading