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
12 changes: 10 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9898,6 +9898,7 @@ components:
- data
type: object
CaseManagementProjectData:
description: Data object representing a case management project.
properties:
id:
description: Unique identifier of the case management project.
Expand Down Expand Up @@ -14698,6 +14699,7 @@ components:
description: List of requests to create cases for security findings.
properties:
data:
description: Array of case creation request data objects.
items:
$ref: '#/components/schemas/CreateCaseRequestData'
type: array
Expand Down Expand Up @@ -15251,6 +15253,7 @@ components:
description: List of requests to create Jira issues for security findings.
properties:
data:
description: Array of Jira issue creation request data objects.
items:
$ref: '#/components/schemas/CreateJiraIssueRequestData'
type: array
Expand Down Expand Up @@ -25031,6 +25034,7 @@ components:
description: List of case responses.
properties:
data:
description: Array of case response data objects.
items:
$ref: '#/components/schemas/FindingCaseResponseData'
type: array
Expand Down Expand Up @@ -25067,8 +25071,11 @@ components:
attributes:
additionalProperties:
items:
description: A custom attribute value string.
type: string
type: array
description: Custom attributes associated with the case as key-value pairs
where values are string arrays.
type: object
closed_at:
description: Timestamp of when the case was closed.
Expand Down Expand Up @@ -25148,6 +25155,7 @@ components:
description: Project in which the case was created.
type: object
FindingData:
description: Data object representing a security finding.
properties:
id:
description: Unique identifier of the security finding.
Expand Down Expand Up @@ -25374,6 +25382,7 @@ components:
description: A list of security findings.
properties:
data:
description: Array of security finding data objects.
items:
$ref: '#/components/schemas/FindingData'
type: array
Expand Down Expand Up @@ -44821,7 +44830,7 @@ components:
Protocol (OTLP) over gRPC and HTTP.


**Supported pipeline types:** logs, metrics'
**Supported pipeline types:** logs'
properties:
grpc_address_key:
description: Environment variable name containing the gRPC server address
Expand Down Expand Up @@ -44851,7 +44860,6 @@ components:
type: object
x-pipeline-types:
- logs
- metrics
ObservabilityPipelineOpentelemetrySourceType:
default: opentelemetry
description: The source type. The value should always be `opentelemetry`.
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self_, data: CaseManagementProjectData, **kwargs):
"""
Case management project.

:param data:
:param data: Data object representing a case management project.
:type data: CaseManagementProjectData
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def openapi_types(_):

def __init__(self_, id: str, type: CaseManagementProjectDataType, **kwargs):
"""

Data object representing a case management project.

:param id: Unique identifier of the case management project.
:type id: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self_, data: List[CreateCaseRequestData], **kwargs):
"""
List of requests to create cases for security findings.

:param data:
:param data: Array of case creation request data objects.
:type data: [CreateCaseRequestData]
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self_, data: List[CreateJiraIssueRequestData], **kwargs):
"""
List of requests to create Jira issues for security findings.

:param data:
:param data: Array of Jira issue creation request data objects.
:type data: [CreateJiraIssueRequestData]
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self_, data: List[FindingCaseResponseData], **kwargs):
"""
List of case responses.

:param data:
:param data: Array of case response data objects.
:type data: [FindingCaseResponseData]
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def __init__(
:param assigned_to: Relationship to user.
:type assigned_to: RelationshipToUser, optional

:param attributes:
:param attributes: Custom attributes associated with the case as key-value pairs where values are string arrays.
:type attributes: {str: ([str],)}, optional

:param closed_at: Timestamp of when the case was closed.
Expand Down
2 changes: 1 addition & 1 deletion src/datadog_api_client/v2/model/finding_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def openapi_types(_):

def __init__(self_, id: str, type: FindingDataType, **kwargs):
"""

Data object representing a security finding.

:param id: Unique identifier of the security finding.
:type id: str
Expand Down
2 changes: 1 addition & 1 deletion src/datadog_api_client/v2/model/findings.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self_, data: Union[List[FindingData], UnsetType] = unset, **kwargs)
"""
A list of security findings.

:param data:
:param data: Array of security finding data objects.
:type data: [FindingData], optional
"""
if data is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(
"""
The ``opentelemetry`` source receives telemetry data using the OpenTelemetry Protocol (OTLP) over gRPC and HTTP.

**Supported pipeline types:** logs, metrics
**Supported pipeline types:** logs

:param grpc_address_key: Environment variable name containing the gRPC server address for receiving OTLP data. Must be a valid environment variable name (alphanumeric characters and underscores only).
:type grpc_address_key: str, optional
Expand Down

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions tests/v2/features/observability_pipelines.feature
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,6 @@ Feature: Observability Pipelines
And the response "data.attributes.config.destinations" has length 1
And the response "data.attributes.config.destinations[0].id" is equal to "updated-datadog-logs-destination-id"

@team:DataDog/observability-pipelines
Scenario: Validate a metrics pipeline with opentelemetry source returns "OK" response
Given new "ValidatePipeline" request
And body with value {"data": {"attributes": {"config": {"pipeline_type": "metrics", "destinations": [{"id": "datadog-metrics-destination", "inputs": ["my-processor-group"], "type": "datadog_metrics"}], "processor_groups": [{"enabled": true, "id": "my-processor-group", "include": "*", "inputs": ["opentelemetry-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "env:production", "type": "filter"}]}], "sources": [{"id": "opentelemetry-source", "type": "opentelemetry"}]}, "name": "Metrics OTel Pipeline"}, "type": "pipelines"}}
When the request is sent
Then the response status is 200 OK
And the response "errors" has length 0

@team:DataDog/observability-pipelines
Scenario: Validate an observability pipeline returns "Bad Request" response
Given new "ValidatePipeline" request
Expand Down
Loading