diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index d2192b74841..00712ceccf5 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -6684,6 +6684,8 @@ components: description: Optional prefix for blobs written to the container. example: logs/ type: string + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' container_name: description: The name of the Azure Blob Storage container to store logs in. @@ -15878,6 +15880,78 @@ components: type: string nullable: true type: array + DORADeploymentFetchResponse: + description: Response for fetching a single deployment event. + properties: + data: + $ref: '#/components/schemas/DORADeploymentObject' + type: object + DORADeploymentObject: + description: A DORA deployment event. + example: + attributes: + custom_tags: + - language:java + - department:engineering + - region:us-east-1 + env: production + finished_at: 1693491984000000000 + git: + commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588 + repository_url: https://github.com/organization/example-repository + service: shopist + started_at: 1693491974000000000 + team: backend + version: v1.12.07 + id: 4242fcdd31586083 + type: dora_deployment + properties: + attributes: + $ref: '#/components/schemas/DORADeploymentObjectAttributes' + id: + description: The ID of the deployment event. + type: string + type: + $ref: '#/components/schemas/DORADeploymentType' + type: object + DORADeploymentObjectAttributes: + description: The attributes of the deployment event. + properties: + custom_tags: + $ref: '#/components/schemas/DORACustomTags' + env: + description: Environment name to where the service was deployed. + example: production + type: string + finished_at: + description: Unix timestamp when the deployment finished. + example: 1693491984000000000 + format: int64 + type: integer + git: + $ref: '#/components/schemas/DORAGitInfo' + service: + description: Service name. + example: shopist + type: string + started_at: + description: Unix timestamp when the deployment started. + example: 1693491974000000000 + format: int64 + type: integer + team: + description: Name of the team owning the deployed service. + example: backend + type: string + version: + description: Version to correlate with APM Deployment Tracking. + example: v1.12.07 + type: string + required: + - service + - started_at + - finished_at + type: object DORADeploymentRequest: description: Request to create a DORA deployment event. properties: @@ -15968,18 +16042,53 @@ components: type: string x-enum-varnames: - DORA_DEPLOYMENT - DORAEvent: - description: A DORA event. + DORADeploymentsListResponse: + description: Response for the list deployments endpoint. + example: + data: + - attributes: + custom_tags: + - language:java + - department:engineering + - region:us-east-1 + env: production + finished_at: 1693491984000000000 + git: + commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588 + repository_url: https://github.com/organization/example-repository + service: shopist + started_at: 1693491974000000000 + team: backend + version: v1.12.07 + id: 4242fcdd31586083 + type: dora_deployment + - attributes: + custom_tags: + - language:go + - department:platform + env: production + finished_at: 1693492084000000000 + git: + commit_sha: 77bdc9350f2cc9b250b69abddab733dd55e1a599 + repository_url: https://github.com/organization/api-service + service: api-service + started_at: 1693492074000000000 + team: backend + version: v2.1.0 + id: 4242fcdd31586084 + type: dora_deployment properties: - attributes: - description: The attributes of the event. - type: object - id: - description: The ID of the event. - type: string - type: - description: The type of the event. - type: string + data: + description: The list of DORA deployment events. + items: + $ref: '#/components/schemas/DORADeploymentObject' + type: array + type: object + DORAFailureFetchResponse: + description: Response for fetching a single failure event. + properties: + data: + $ref: '#/components/schemas/DORAIncidentObject' type: object DORAFailureRequest: description: Request to create a DORA failure event. @@ -16083,11 +16192,45 @@ components: type: string x-enum-varnames: - DORA_FAILURE - DORAFetchResponse: - description: Response for the DORA fetch endpoints. + DORAFailuresListResponse: + description: Response for the list failures endpoint. + example: + data: + - attributes: + custom_tags: + - incident_type:database + - department:engineering + env: production + finished_at: 1693492274000000000 + name: Database outage + services: + - shopist + severity: SEV-1 + started_at: 1693492174000000000 + team: backend + id: 4242fcdd31586085 + type: dora_incident + - attributes: + custom_tags: + - incident_type:service_down + - department:platform + env: production + finished_at: 1693492474000000000 + name: API service outage + services: + - api-service + - payment-service + severity: SEV-2 + started_at: 1693492374000000000 + team: backend + id: 4242fcdd31586086 + type: dora_incident properties: data: - $ref: '#/components/schemas/DORAEvent' + description: The list of DORA incident events. + items: + $ref: '#/components/schemas/DORAIncidentObject' + type: array type: object DORAGitInfo: description: Git info for DORA Metrics events. @@ -16100,6 +16243,82 @@ components: - repository_url - commit_sha type: object + DORAIncidentObject: + description: A DORA incident event. + example: + attributes: + custom_tags: + - incident_type:database + - department:engineering + env: production + finished_at: 1693492274000000000 + git: + commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588 + repository_url: https://github.com/organization/example-repository + name: Database outage + services: + - shopist + severity: SEV-1 + started_at: 1693492174000000000 + team: backend + id: 4242fcdd31586085 + type: dora_incident + properties: + attributes: + $ref: '#/components/schemas/DORAIncidentObjectAttributes' + id: + description: The ID of the incident event. + type: string + type: + $ref: '#/components/schemas/DORAFailureType' + type: object + DORAIncidentObjectAttributes: + description: The attributes of the incident event. + properties: + custom_tags: + $ref: '#/components/schemas/DORACustomTags' + env: + description: Environment name that was impacted by the incident. + example: production + type: string + finished_at: + description: Unix timestamp when the incident finished. + example: 1693491984000000000 + format: int64 + type: integer + git: + $ref: '#/components/schemas/DORAGitInfo' + name: + description: Incident name. + example: Database outage + type: string + services: + description: Service names impacted by the incident. + example: + - shopist + items: + type: string + type: array + severity: + description: Incident severity. + example: SEV-1 + type: string + started_at: + description: Unix timestamp when the incident started. + example: 1693491974000000000 + format: int64 + type: integer + team: + description: Name of the team owning the services impacted. + example: backend + type: string + version: + description: Version to correlate with APM Deployment Tracking. + example: v1.12.07 + type: string + required: + - started_at + type: object DORAListDeploymentsRequest: description: Request to get a list of deployments. example: @@ -16119,32 +16338,31 @@ components: type: object DORAListDeploymentsRequestAttributes: description: Attributes to get a list of deployments. - example: - from: '2025-01-01T00:00:00Z' - limit: 500 - query: service:(shopist OR api-service OR payment-service) env:(production - OR staging) team:(backend OR platform) - sort: -started_at - to: '2025-01-31T23:59:59Z' properties: from: description: Minimum timestamp for requested events. + example: '2025-01-01T00:00:00Z' format: date-time type: string limit: default: 10 description: Maximum number of events in the response. + example: 500 format: int32 maximum: 1000 type: integer query: description: Search query with event platform syntax. + example: service:(shopist OR api-service OR payment-service) env:(production + OR staging) team:(backend OR platform) type: string sort: description: Sort order (prefixed with `-` for descending). + example: -started_at type: string to: description: Maximum timestamp for requested events. + example: '2025-01-31T23:59:59Z' format: date-time type: string type: object @@ -16167,9 +16385,11 @@ components: - attributes type: object DORAListDeploymentsRequestDataType: + default: dora_deployments_list_request description: The definition of `DORAListDeploymentsRequestDataType` object. enum: - dora_deployments_list_request + example: dora_deployments_list_request type: string x-enum-varnames: - DORA_DEPLOYMENTS_LIST_REQUEST @@ -16192,32 +16412,31 @@ components: type: object DORAListFailuresRequestAttributes: description: Attributes to get a list of failures. - example: - from: '2025-01-01T00:00:00Z' - limit: 500 - query: severity:(SEV-1 OR SEV-2) env:(production OR staging) service:(shopist - OR api-service OR payment-service) team:(backend OR platform OR payments) - sort: -started_at - to: '2025-01-31T23:59:59Z' properties: from: description: Minimum timestamp for requested events. + example: '2025-01-01T00:00:00Z' format: date-time type: string limit: default: 10 description: Maximum number of events in the response. + example: 500 format: int32 maximum: 1000 type: integer query: description: Search query with event platform syntax. + example: severity:(SEV-1 OR SEV-2) env:(production OR staging) service:(shopist + OR api-service OR payment-service) team:(backend OR platform OR payments) type: string sort: description: Sort order (prefixed with `-` for descending). + example: -started_at type: string to: description: Maximum timestamp for requested events. + example: '2025-01-31T23:59:59Z' format: date-time type: string type: object @@ -16240,54 +16459,14 @@ components: - attributes type: object DORAListFailuresRequestDataType: + default: dora_failures_list_request description: The definition of `DORAListFailuresRequestDataType` object. enum: - dora_failures_list_request + example: dora_failures_list_request type: string x-enum-varnames: - DORA_FAILURES_LIST_REQUEST - DORAListResponse: - description: Response for the DORA list endpoints. - example: - data: - - attributes: - custom_tags: - - language:java - - department:engineering - - region:us-east-1 - env: production - finished_at: 1693491984000000000 - git: - commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588 - repository_url: https://github.com/organization/example-repository - service: shopist - started_at: 1693491974000000000 - team: backend - version: v1.12.07 - id: 4242fcdd31586083 - type: dora_deployment - - attributes: - custom_tags: - - language:go - - department:platform - env: production - finished_at: 1693492084000000000 - git: - commit_sha: 77bdc9350f2cc9b250b69abddab733dd55e1a599 - repository_url: https://github.com/organization/api-service - service: api-service - started_at: 1693492074000000000 - team: backend - version: v2.1.0 - id: 4242fcdd31586084 - type: dora_deployment - properties: - data: - description: The list of DORA events. - items: - $ref: '#/components/schemas/DORAEvent' - type: array - type: object DashboardListAddItemsRequest: description: Request containing a list of dashboards to add. properties: @@ -33334,6 +33513,8 @@ components: description: The `microsoft_sentinel` destination forwards logs to Microsoft Sentinel. properties: + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' client_id: description: Azure AD client ID used for authentication. example: a1b2c3d4-5678-90ab-cdef-1234567890ab @@ -35211,6 +35392,8 @@ components: properties: auth: $ref: '#/components/schemas/ObservabilityPipelineAmazonOpenSearchDestinationAuth' + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' bulk_index: description: The index to write logs to. example: logs-index @@ -35287,6 +35470,8 @@ components: description: S3 bucket name. example: error-logs type: string + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' id: description: Unique identifier for the destination component. example: amazon-s3-destination @@ -35398,6 +35583,8 @@ components: description: Name of the Amazon S3 bucket in Security Lake (3-63 characters). example: security-lake-bucket type: string + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' custom_source_name: description: Custom source name for the logs in Security Lake. example: my-custom-source @@ -35455,6 +35642,39 @@ components: role session. type: string type: object + ObservabilityPipelineBufferOptions: + description: Configuration for buffer settings on destination components. + oneOf: + - $ref: '#/components/schemas/ObservabilityPipelineDiskBufferOptions' + - $ref: '#/components/schemas/ObservabilityPipelineMemoryBufferOptions' + - $ref: '#/components/schemas/ObservabilityPipelineMemoryBufferSizeOptions' + ObservabilityPipelineBufferOptionsDiskType: + default: disk + description: The type of the buffer that will be configured, a disk buffer. + enum: + - disk + type: string + x-enum-varnames: + - DISK + ObservabilityPipelineBufferOptionsMemoryType: + default: memory + description: The type of the buffer that will be configured, a memory buffer. + enum: + - memory + type: string + x-enum-varnames: + - MEMORY + ObservabilityPipelineBufferOptionsWhenFull: + default: block + description: Behavior when the buffer is full (block and stop accepting new + events, or drop new events) + enum: + - block + - drop_newest + type: string + x-enum-varnames: + - BLOCK + - DROP_NEWEST ObservabilityPipelineComponentDisplayName: description: The display name for a component. example: my component @@ -35641,6 +35861,8 @@ components: description: The `crowdstrike_next_gen_siem` destination forwards logs to CrowdStrike Next Gen SIEM. properties: + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' compression: $ref: '#/components/schemas/ObservabilityPipelineCrowdStrikeNextGenSiemDestinationCompression' encoding: @@ -35849,6 +36071,8 @@ components: ObservabilityPipelineDatadogLogsDestination: description: The `datadog_logs` destination forwards logs to Datadog Log Management. properties: + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' id: description: The unique identifier for this component. example: datadog-logs-destination @@ -36020,12 +36244,27 @@ components: type: string x-enum-varnames: - DEDUPE + ObservabilityPipelineDiskBufferOptions: + description: Options for configuring a disk buffer. + properties: + max_size: + description: Maximum size of the disk buffer. + example: 4096 + format: int64 + type: integer + type: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsDiskType' + when_full: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull' + type: object ObservabilityPipelineElasticsearchDestination: description: The `elasticsearch` destination writes logs to an Elasticsearch cluster. properties: api_version: $ref: '#/components/schemas/ObservabilityPipelineElasticsearchDestinationApiVersion' + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' bulk_index: description: The index to write logs to in Elasticsearch. example: logs-index @@ -36496,6 +36735,8 @@ components: properties: auth: $ref: '#/components/schemas/ObservabilityPipelineGcpAuth' + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' customer_id: description: The Google Chronicle customer ID. example: abcdefg123456789 @@ -36559,6 +36800,8 @@ components: description: Name of the GCS bucket. example: error-logs type: string + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' id: description: Unique identifier for the destination component. example: gcs-destination @@ -36638,6 +36881,8 @@ components: properties: auth: $ref: '#/components/schemas/ObservabilityPipelineGcpAuth' + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' encoding: $ref: '#/components/schemas/ObservabilityPipelineGooglePubSubDestinationEncoding' id: @@ -36925,6 +37170,28 @@ components: type: string x-enum-varnames: - LOGSTASH + ObservabilityPipelineMemoryBufferOptions: + description: Options for configuring a memory buffer by byte size. + properties: + max_size: + description: Maximum size of the disk buffer. + example: 4096 + format: int64 + type: integer + type: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType' + type: object + ObservabilityPipelineMemoryBufferSizeOptions: + description: Options for configuring a memory buffer by queue length. + properties: + max_events: + description: Maximum events for the memory buffer. + example: 500 + format: int64 + type: integer + type: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType' + type: object ObservabilityPipelineMetadataEntry: description: A custom metadata entry. properties: @@ -36948,6 +37215,8 @@ components: ObservabilityPipelineNewRelicDestination: description: The `new_relic` destination sends logs to the New Relic platform. properties: + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' id: description: The unique identifier for this component. example: new-relic-destination @@ -37084,6 +37353,8 @@ components: ObservabilityPipelineOpenSearchDestination: description: The `opensearch` destination writes logs to an OpenSearch cluster. properties: + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' bulk_index: description: The index to write logs to. example: logs-index @@ -37635,6 +37906,8 @@ components: description: The `rsyslog` destination forwards logs to an external `rsyslog` server over TCP or UDP using the syslog protocol. properties: + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' id: description: The unique identifier for this component. example: rsyslog-destination @@ -38105,6 +38378,8 @@ components: ObservabilityPipelineSentinelOneDestination: description: The `sentinel_one` destination sends logs to SentinelOne. properties: + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' id: description: The unique identifier for this component. example: sentinelone-destination @@ -38154,6 +38429,8 @@ components: description: The `socket` destination sends logs over TCP or UDP to a remote server. properties: + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' encoding: $ref: '#/components/schemas/ObservabilityPipelineSocketDestinationEncoding' framing: @@ -38453,6 +38730,8 @@ components: If `false`, Splunk assigns the time the event was received.' example: true type: boolean + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' encoding: $ref: '#/components/schemas/ObservabilityPipelineSplunkHecDestinationEncoding' id: @@ -38562,6 +38841,8 @@ components: ObservabilityPipelineSumoLogicDestination: description: The `sumo_logic` destination forwards logs to Sumo Logic. properties: + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' encoding: $ref: '#/components/schemas/ObservabilityPipelineSumoLogicDestinationEncoding' header_custom_fields: @@ -38665,6 +38946,8 @@ components: description: The `syslog_ng` destination forwards logs to an external `syslog-ng` server over TCP or UDP using the syslog protocol. properties: + buffer: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' id: description: The unique identifier for this component. example: syslog-ng-destination @@ -67820,7 +68103,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DORAListResponse' + $ref: '#/components/schemas/DORADeploymentsListResponse' description: OK '400': content: @@ -67858,26 +68141,8 @@ paths: '200': content: application/json: - example: - data: - attributes: - custom_tags: - - language:java - - department:engineering - - region:us-east-1 - env: staging - finished_at: 1693491984000000000 - git: - commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588 - repository_url: https://github.com/organization/example-repository - service: shopist - started_at: 1693491974000000000 - team: backend - version: v1.12.07 - id: 4242fcdd31586083 - type: dora_deployment - schema: - $ref: '#/components/schemas/DORAFetchResponse' + schema: + $ref: '#/components/schemas/DORADeploymentFetchResponse' description: OK '400': content: @@ -67994,66 +68259,8 @@ paths: '200': content: application/json: - example: - data: - - attributes: - custom_tags: - - language:java - - department:engineering - - region:us-east-1 - env: production - finished_at: 1693491984000000000 - git: - commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588 - repository_url: https://github.com/organization/example-repository - name: Web server is down; all requests are failing. - services: - - shopist - severity: SEV-1 - started_at: 1693491974000000000 - team: backend - id: 4242fcdd31586085 - type: dora_failure - - attributes: - custom_tags: - - language:go - - department:platform - env: production - finished_at: 1693492084000000000 - git: - commit_sha: 77bdc9350f2cc9b250b69abddab733dd55e1a599 - repository_url: https://github.com/organization/api-service - name: Database connection timeout - services: - - api-service - - payment-service - severity: SEV-1 - started_at: 1693492074000000000 - team: platform - version: v2.1.0 - id: 4242fcdd31586086 - type: dora_failure - - attributes: - custom_tags: - - language:python - - department:payments - - region:eu-west-1 - env: staging - finished_at: 1693492204000000000 - git: - commit_sha: 99edc9350f2cc9b250b69abddab733dd55e1a601 - repository_url: https://github.com/organization/payment-service - name: Payment gateway API rate limit exceeded - services: - - payment-service - severity: SEV-2 - started_at: 1693492174000000000 - team: payments - version: v1.8.3 - id: 4242fcdd31586087 - type: dora_failure - schema: - $ref: '#/components/schemas/DORAListResponse' + schema: + $ref: '#/components/schemas/DORAFailuresListResponse' description: OK '400': content: @@ -68091,28 +68298,8 @@ paths: '200': content: application/json: - example: - data: - attributes: - custom_tags: - - language:java - - department:engineering - - region:us-east-1 - env: staging - finished_at: 1693491984000000000 - git: - commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588 - repository_url: https://github.com/organization/example-repository - name: Web server is down; all requests are failing. - services: - - shopist - severity: High - started_at: 1693491974000000000 - team: backend - id: 4242fcdd31586085 - type: dora_failure - schema: - $ref: '#/components/schemas/DORAFetchResponse' + schema: + $ref: '#/components/schemas/DORAFailureFetchResponse' description: OK '400': content: diff --git a/examples/v2/dora-metrics/GetDORADeployment.java b/examples/v2/dora-metrics/GetDORADeployment.java index 1d0a1813cb4..f2c7e10c840 100644 --- a/examples/v2/dora-metrics/GetDORADeployment.java +++ b/examples/v2/dora-metrics/GetDORADeployment.java @@ -3,7 +3,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.DoraMetricsApi; -import com.datadog.api.client.v2.model.DORAFetchResponse; +import com.datadog.api.client.v2.model.DORADeploymentFetchResponse; public class Example { public static void main(String[] args) { @@ -11,7 +11,7 @@ public static void main(String[] args) { DoraMetricsApi apiInstance = new DoraMetricsApi(defaultClient); try { - DORAFetchResponse result = apiInstance.getDORADeployment("deployment_id"); + DORADeploymentFetchResponse result = apiInstance.getDORADeployment("deployment_id"); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DoraMetricsApi#getDORADeployment"); diff --git a/examples/v2/dora-metrics/GetDORAFailure.java b/examples/v2/dora-metrics/GetDORAFailure.java index 9a856540095..8f6c063febf 100644 --- a/examples/v2/dora-metrics/GetDORAFailure.java +++ b/examples/v2/dora-metrics/GetDORAFailure.java @@ -3,7 +3,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.DoraMetricsApi; -import com.datadog.api.client.v2.model.DORAFetchResponse; +import com.datadog.api.client.v2.model.DORAFailureFetchResponse; public class Example { public static void main(String[] args) { @@ -11,7 +11,7 @@ public static void main(String[] args) { DoraMetricsApi apiInstance = new DoraMetricsApi(defaultClient); try { - DORAFetchResponse result = apiInstance.getDORAFailure("failure_id"); + DORAFailureFetchResponse result = apiInstance.getDORAFailure("failure_id"); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DoraMetricsApi#getDORAFailure"); diff --git a/examples/v2/dora-metrics/ListDORADeployments.java b/examples/v2/dora-metrics/ListDORADeployments.java index cfe6c4eb52c..84d9b6766f4 100644 --- a/examples/v2/dora-metrics/ListDORADeployments.java +++ b/examples/v2/dora-metrics/ListDORADeployments.java @@ -3,11 +3,11 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.DoraMetricsApi; +import com.datadog.api.client.v2.model.DORADeploymentsListResponse; import com.datadog.api.client.v2.model.DORAListDeploymentsRequest; import com.datadog.api.client.v2.model.DORAListDeploymentsRequestAttributes; import com.datadog.api.client.v2.model.DORAListDeploymentsRequestData; import com.datadog.api.client.v2.model.DORAListDeploymentsRequestDataType; -import com.datadog.api.client.v2.model.DORAListResponse; import java.time.OffsetDateTime; public class Example { @@ -27,7 +27,7 @@ public static void main(String[] args) { .type(DORAListDeploymentsRequestDataType.DORA_DEPLOYMENTS_LIST_REQUEST)); try { - DORAListResponse result = apiInstance.listDORADeployments(body); + DORADeploymentsListResponse result = apiInstance.listDORADeployments(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DoraMetricsApi#listDORADeployments"); diff --git a/examples/v2/dora-metrics/ListDORAFailures.java b/examples/v2/dora-metrics/ListDORAFailures.java index dc0f181b69c..555266cd1eb 100644 --- a/examples/v2/dora-metrics/ListDORAFailures.java +++ b/examples/v2/dora-metrics/ListDORAFailures.java @@ -3,11 +3,11 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.DoraMetricsApi; +import com.datadog.api.client.v2.model.DORAFailuresListResponse; import com.datadog.api.client.v2.model.DORAListFailuresRequest; import com.datadog.api.client.v2.model.DORAListFailuresRequestAttributes; import com.datadog.api.client.v2.model.DORAListFailuresRequestData; import com.datadog.api.client.v2.model.DORAListFailuresRequestDataType; -import com.datadog.api.client.v2.model.DORAListResponse; import java.time.OffsetDateTime; public class Example { @@ -27,7 +27,7 @@ public static void main(String[] args) { .type(DORAListFailuresRequestDataType.DORA_FAILURES_LIST_REQUEST)); try { - DORAListResponse result = apiInstance.listDORAFailures(body); + DORAFailuresListResponse result = apiInstance.listDORAFailures(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DoraMetricsApi#listDORAFailures"); diff --git a/src/main/java/com/datadog/api/client/v2/api/DoraMetricsApi.java b/src/main/java/com/datadog/api/client/v2/api/DoraMetricsApi.java index 74172e6088e..4bcd3e5359e 100644 --- a/src/main/java/com/datadog/api/client/v2/api/DoraMetricsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/DoraMetricsApi.java @@ -4,14 +4,16 @@ import com.datadog.api.client.ApiException; import com.datadog.api.client.ApiResponse; import com.datadog.api.client.Pair; +import com.datadog.api.client.v2.model.DORADeploymentFetchResponse; import com.datadog.api.client.v2.model.DORADeploymentRequest; import com.datadog.api.client.v2.model.DORADeploymentResponse; +import com.datadog.api.client.v2.model.DORADeploymentsListResponse; +import com.datadog.api.client.v2.model.DORAFailureFetchResponse; import com.datadog.api.client.v2.model.DORAFailureRequest; import com.datadog.api.client.v2.model.DORAFailureResponse; -import com.datadog.api.client.v2.model.DORAFetchResponse; +import com.datadog.api.client.v2.model.DORAFailuresListResponse; import com.datadog.api.client.v2.model.DORAListDeploymentsRequest; import com.datadog.api.client.v2.model.DORAListFailuresRequest; -import com.datadog.api.client.v2.model.DORAListResponse; import jakarta.ws.rs.client.Invocation; import jakarta.ws.rs.core.GenericType; import java.util.ArrayList; @@ -741,10 +743,10 @@ public CompletableFuture> deleteDORAFailureWithHttpInfoAsync(S *

See {@link #getDORADeploymentWithHttpInfo}. * * @param deploymentId The ID of the deployment event. (required) - * @return DORAFetchResponse + * @return DORADeploymentFetchResponse * @throws ApiException if fails to make API call */ - public DORAFetchResponse getDORADeployment(String deploymentId) throws ApiException { + public DORADeploymentFetchResponse getDORADeployment(String deploymentId) throws ApiException { return getDORADeploymentWithHttpInfo(deploymentId).getData(); } @@ -754,9 +756,10 @@ public DORAFetchResponse getDORADeployment(String deploymentId) throws ApiExcept *

See {@link #getDORADeploymentWithHttpInfoAsync}. * * @param deploymentId The ID of the deployment event. (required) - * @return CompletableFuture<DORAFetchResponse> + * @return CompletableFuture<DORADeploymentFetchResponse> */ - public CompletableFuture getDORADeploymentAsync(String deploymentId) { + public CompletableFuture getDORADeploymentAsync( + String deploymentId) { return getDORADeploymentWithHttpInfoAsync(deploymentId) .thenApply( response -> { @@ -768,7 +771,7 @@ public CompletableFuture getDORADeploymentAsync(String deploy * Use this API endpoint to get a deployment event. * * @param deploymentId The ID of the deployment event. (required) - * @return ApiResponse<DORAFetchResponse> + * @return ApiResponse<DORADeploymentFetchResponse> * @throws ApiException if fails to make API call * @http.response.details * @@ -780,7 +783,7 @@ public CompletableFuture getDORADeploymentAsync(String deploy * *
429 Too many requests -
*/ - public ApiResponse getDORADeploymentWithHttpInfo(String deploymentId) + public ApiResponse getDORADeploymentWithHttpInfo(String deploymentId) throws ApiException { Object localVarPostBody = null; @@ -814,7 +817,7 @@ public ApiResponse getDORADeploymentWithHttpInfo(String deplo localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** @@ -823,15 +826,16 @@ public ApiResponse getDORADeploymentWithHttpInfo(String deplo *

See {@link #getDORADeploymentWithHttpInfo}. * * @param deploymentId The ID of the deployment event. (required) - * @return CompletableFuture<ApiResponse<DORAFetchResponse>> + * @return CompletableFuture<ApiResponse<DORADeploymentFetchResponse>> */ - public CompletableFuture> getDORADeploymentWithHttpInfoAsync( - String deploymentId) { + public CompletableFuture> + getDORADeploymentWithHttpInfoAsync(String deploymentId) { Object localVarPostBody = null; // verify the required parameter 'deploymentId' is set if (deploymentId == null) { - CompletableFuture> result = new CompletableFuture<>(); + CompletableFuture> result = + new CompletableFuture<>(); result.completeExceptionally( new ApiException( 400, "Missing the required parameter 'deploymentId' when calling getDORADeployment")); @@ -857,7 +861,8 @@ public CompletableFuture> getDORADeploymentWithHt new String[] {"application/json"}, new String[] {"apiKeyAuth", "appKeyAuth"}); } catch (ApiException ex) { - CompletableFuture> result = new CompletableFuture<>(); + CompletableFuture> result = + new CompletableFuture<>(); result.completeExceptionally(ex); return result; } @@ -869,7 +874,7 @@ public CompletableFuture> getDORADeploymentWithHt localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** @@ -878,10 +883,10 @@ public CompletableFuture> getDORADeploymentWithHt *

See {@link #getDORAFailureWithHttpInfo}. * * @param failureId The ID of the failure event. (required) - * @return DORAFetchResponse + * @return DORAFailureFetchResponse * @throws ApiException if fails to make API call */ - public DORAFetchResponse getDORAFailure(String failureId) throws ApiException { + public DORAFailureFetchResponse getDORAFailure(String failureId) throws ApiException { return getDORAFailureWithHttpInfo(failureId).getData(); } @@ -891,9 +896,9 @@ public DORAFetchResponse getDORAFailure(String failureId) throws ApiException { *

See {@link #getDORAFailureWithHttpInfoAsync}. * * @param failureId The ID of the failure event. (required) - * @return CompletableFuture<DORAFetchResponse> + * @return CompletableFuture<DORAFailureFetchResponse> */ - public CompletableFuture getDORAFailureAsync(String failureId) { + public CompletableFuture getDORAFailureAsync(String failureId) { return getDORAFailureWithHttpInfoAsync(failureId) .thenApply( response -> { @@ -905,7 +910,7 @@ public CompletableFuture getDORAFailureAsync(String failureId * Use this API endpoint to get a failure event. * * @param failureId The ID of the failure event. (required) - * @return ApiResponse<DORAFetchResponse> + * @return ApiResponse<DORAFailureFetchResponse> * @throws ApiException if fails to make API call * @http.response.details * @@ -917,7 +922,7 @@ public CompletableFuture getDORAFailureAsync(String failureId * *
429 Too many requests -
*/ - public ApiResponse getDORAFailureWithHttpInfo(String failureId) + public ApiResponse getDORAFailureWithHttpInfo(String failureId) throws ApiException { Object localVarPostBody = null; @@ -950,7 +955,7 @@ public ApiResponse getDORAFailureWithHttpInfo(String failureI localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** @@ -959,15 +964,15 @@ public ApiResponse getDORAFailureWithHttpInfo(String failureI *

See {@link #getDORAFailureWithHttpInfo}. * * @param failureId The ID of the failure event. (required) - * @return CompletableFuture<ApiResponse<DORAFetchResponse>> + * @return CompletableFuture<ApiResponse<DORAFailureFetchResponse>> */ - public CompletableFuture> getDORAFailureWithHttpInfoAsync( + public CompletableFuture> getDORAFailureWithHttpInfoAsync( String failureId) { Object localVarPostBody = null; // verify the required parameter 'failureId' is set if (failureId == null) { - CompletableFuture> result = new CompletableFuture<>(); + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally( new ApiException( 400, "Missing the required parameter 'failureId' when calling getDORAFailure")); @@ -992,7 +997,7 @@ public CompletableFuture> getDORAFailureWithHttpI new String[] {"application/json"}, new String[] {"apiKeyAuth", "appKeyAuth"}); } catch (ApiException ex) { - CompletableFuture> result = new CompletableFuture<>(); + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally(ex); return result; } @@ -1004,7 +1009,7 @@ public CompletableFuture> getDORAFailureWithHttpI localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** @@ -1013,10 +1018,11 @@ public CompletableFuture> getDORAFailureWithHttpI *

See {@link #listDORADeploymentsWithHttpInfo}. * * @param body (required) - * @return DORAListResponse + * @return DORADeploymentsListResponse * @throws ApiException if fails to make API call */ - public DORAListResponse listDORADeployments(DORAListDeploymentsRequest body) throws ApiException { + public DORADeploymentsListResponse listDORADeployments(DORAListDeploymentsRequest body) + throws ApiException { return listDORADeploymentsWithHttpInfo(body).getData(); } @@ -1026,9 +1032,9 @@ public DORAListResponse listDORADeployments(DORAListDeploymentsRequest body) thr *

See {@link #listDORADeploymentsWithHttpInfoAsync}. * * @param body (required) - * @return CompletableFuture<DORAListResponse> + * @return CompletableFuture<DORADeploymentsListResponse> */ - public CompletableFuture listDORADeploymentsAsync( + public CompletableFuture listDORADeploymentsAsync( DORAListDeploymentsRequest body) { return listDORADeploymentsWithHttpInfoAsync(body) .thenApply( @@ -1041,7 +1047,7 @@ public CompletableFuture listDORADeploymentsAsync( * Use this API endpoint to get a list of deployment events. * * @param body (required) - * @return ApiResponse<DORAListResponse> + * @return ApiResponse<DORADeploymentsListResponse> * @throws ApiException if fails to make API call * @http.response.details * @@ -1053,7 +1059,7 @@ public CompletableFuture listDORADeploymentsAsync( * *
429 Too many requests -
*/ - public ApiResponse listDORADeploymentsWithHttpInfo( + public ApiResponse listDORADeploymentsWithHttpInfo( DORAListDeploymentsRequest body) throws ApiException { Object localVarPostBody = body; @@ -1084,7 +1090,7 @@ public ApiResponse listDORADeploymentsWithHttpInfo( localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** @@ -1093,15 +1099,16 @@ public ApiResponse listDORADeploymentsWithHttpInfo( *

See {@link #listDORADeploymentsWithHttpInfo}. * * @param body (required) - * @return CompletableFuture<ApiResponse<DORAListResponse>> + * @return CompletableFuture<ApiResponse<DORADeploymentsListResponse>> */ - public CompletableFuture> listDORADeploymentsWithHttpInfoAsync( - DORAListDeploymentsRequest body) { + public CompletableFuture> + listDORADeploymentsWithHttpInfoAsync(DORAListDeploymentsRequest body) { Object localVarPostBody = body; // verify the required parameter 'body' is set if (body == null) { - CompletableFuture> result = new CompletableFuture<>(); + CompletableFuture> result = + new CompletableFuture<>(); result.completeExceptionally( new ApiException( 400, "Missing the required parameter 'body' when calling listDORADeployments")); @@ -1124,7 +1131,8 @@ public CompletableFuture> listDORADeploymentsWithH new String[] {"application/json"}, new String[] {"apiKeyAuth", "appKeyAuth"}); } catch (ApiException ex) { - CompletableFuture> result = new CompletableFuture<>(); + CompletableFuture> result = + new CompletableFuture<>(); result.completeExceptionally(ex); return result; } @@ -1136,7 +1144,7 @@ public CompletableFuture> listDORADeploymentsWithH localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** @@ -1145,10 +1153,11 @@ public CompletableFuture> listDORADeploymentsWithH *

See {@link #listDORAFailuresWithHttpInfo}. * * @param body (required) - * @return DORAListResponse + * @return DORAFailuresListResponse * @throws ApiException if fails to make API call */ - public DORAListResponse listDORAFailures(DORAListFailuresRequest body) throws ApiException { + public DORAFailuresListResponse listDORAFailures(DORAListFailuresRequest body) + throws ApiException { return listDORAFailuresWithHttpInfo(body).getData(); } @@ -1158,9 +1167,10 @@ public DORAListResponse listDORAFailures(DORAListFailuresRequest body) throws Ap *

See {@link #listDORAFailuresWithHttpInfoAsync}. * * @param body (required) - * @return CompletableFuture<DORAListResponse> + * @return CompletableFuture<DORAFailuresListResponse> */ - public CompletableFuture listDORAFailuresAsync(DORAListFailuresRequest body) { + public CompletableFuture listDORAFailuresAsync( + DORAListFailuresRequest body) { return listDORAFailuresWithHttpInfoAsync(body) .thenApply( response -> { @@ -1172,7 +1182,7 @@ public CompletableFuture listDORAFailuresAsync(DORAListFailure * Use this API endpoint to get a list of failure events. * * @param body (required) - * @return ApiResponse<DORAListResponse> + * @return ApiResponse<DORAFailuresListResponse> * @throws ApiException if fails to make API call * @http.response.details * @@ -1184,8 +1194,8 @@ public CompletableFuture listDORAFailuresAsync(DORAListFailure * *
429 Too many requests -
*/ - public ApiResponse listDORAFailuresWithHttpInfo(DORAListFailuresRequest body) - throws ApiException { + public ApiResponse listDORAFailuresWithHttpInfo( + DORAListFailuresRequest body) throws ApiException { Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -1215,7 +1225,7 @@ public ApiResponse listDORAFailuresWithHttpInfo(DORAListFailur localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** @@ -1224,15 +1234,15 @@ public ApiResponse listDORAFailuresWithHttpInfo(DORAListFailur *

See {@link #listDORAFailuresWithHttpInfo}. * * @param body (required) - * @return CompletableFuture<ApiResponse<DORAListResponse>> + * @return CompletableFuture<ApiResponse<DORAFailuresListResponse>> */ - public CompletableFuture> listDORAFailuresWithHttpInfoAsync( + public CompletableFuture> listDORAFailuresWithHttpInfoAsync( DORAListFailuresRequest body) { Object localVarPostBody = body; // verify the required parameter 'body' is set if (body == null) { - CompletableFuture> result = new CompletableFuture<>(); + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally( new ApiException( 400, "Missing the required parameter 'body' when calling listDORAFailures")); @@ -1255,7 +1265,7 @@ public CompletableFuture> listDORAFailuresWithHttp new String[] {"application/json"}, new String[] {"apiKeyAuth", "appKeyAuth"}); } catch (ApiException ex) { - CompletableFuture> result = new CompletableFuture<>(); + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally(ex); return result; } @@ -1267,6 +1277,6 @@ public CompletableFuture> listDORAFailuresWithHttp localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } } diff --git a/src/main/java/com/datadog/api/client/v2/model/AzureStorageDestination.java b/src/main/java/com/datadog/api/client/v2/model/AzureStorageDestination.java index 2404a627a2b..3499a5894a3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AzureStorageDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/AzureStorageDestination.java @@ -22,6 +22,7 @@ /** The azure_storage destination forwards logs to an Azure Blob Storage container. */ @JsonPropertyOrder({ AzureStorageDestination.JSON_PROPERTY_BLOB_PREFIX, + AzureStorageDestination.JSON_PROPERTY_BUFFER, AzureStorageDestination.JSON_PROPERTY_CONTAINER_NAME, AzureStorageDestination.JSON_PROPERTY_ID, AzureStorageDestination.JSON_PROPERTY_INPUTS, @@ -34,6 +35,9 @@ public class AzureStorageDestination { public static final String JSON_PROPERTY_BLOB_PREFIX = "blob_prefix"; private String blobPrefix; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_CONTAINER_NAME = "container_name"; private String containerName; @@ -82,6 +86,28 @@ public void setBlobPrefix(String blobPrefix) { this.blobPrefix = blobPrefix; } + public AzureStorageDestination buffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public AzureStorageDestination containerName(String containerName) { this.containerName = containerName; return this; @@ -228,6 +254,7 @@ public boolean equals(Object o) { } AzureStorageDestination azureStorageDestination = (AzureStorageDestination) o; return Objects.equals(this.blobPrefix, azureStorageDestination.blobPrefix) + && Objects.equals(this.buffer, azureStorageDestination.buffer) && Objects.equals(this.containerName, azureStorageDestination.containerName) && Objects.equals(this.id, azureStorageDestination.id) && Objects.equals(this.inputs, azureStorageDestination.inputs) @@ -237,7 +264,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(blobPrefix, containerName, id, inputs, type, additionalProperties); + return Objects.hash(blobPrefix, buffer, containerName, id, inputs, type, additionalProperties); } @Override @@ -245,6 +272,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AzureStorageDestination {\n"); sb.append(" blobPrefix: ").append(toIndentedString(blobPrefix)).append("\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" containerName: ").append(toIndentedString(containerName)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/DORADeploymentFetchResponse.java b/src/main/java/com/datadog/api/client/v2/model/DORADeploymentFetchResponse.java new file mode 100644 index 00000000000..df8b7be5594 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/DORADeploymentFetchResponse.java @@ -0,0 +1,137 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** Response for fetching a single deployment event. */ +@JsonPropertyOrder({DORADeploymentFetchResponse.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class DORADeploymentFetchResponse { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA = "data"; + private DORADeploymentObject data; + + public DORADeploymentFetchResponse data(DORADeploymentObject data) { + this.data = data; + this.unparsed |= data.unparsed; + return this; + } + + /** + * A DORA deployment event. + * + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DORADeploymentObject getData() { + return data; + } + + public void setData(DORADeploymentObject data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DORADeploymentFetchResponse + */ + @JsonAnySetter + public DORADeploymentFetchResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this DORADeploymentFetchResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DORADeploymentFetchResponse doraDeploymentFetchResponse = (DORADeploymentFetchResponse) o; + return Objects.equals(this.data, doraDeploymentFetchResponse.data) + && Objects.equals( + this.additionalProperties, doraDeploymentFetchResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DORADeploymentFetchResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/DORADeploymentObject.java b/src/main/java/com/datadog/api/client/v2/model/DORADeploymentObject.java new file mode 100644 index 00000000000..eae9d3ebacf --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/DORADeploymentObject.java @@ -0,0 +1,196 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** A DORA deployment event. */ +@JsonPropertyOrder({ + DORADeploymentObject.JSON_PROPERTY_ATTRIBUTES, + DORADeploymentObject.JSON_PROPERTY_ID, + DORADeploymentObject.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class DORADeploymentObject { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private DORADeploymentObjectAttributes attributes; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_TYPE = "type"; + private DORADeploymentType type = DORADeploymentType.DORA_DEPLOYMENT; + + public DORADeploymentObject attributes(DORADeploymentObjectAttributes attributes) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + return this; + } + + /** + * The attributes of the deployment event. + * + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DORADeploymentObjectAttributes getAttributes() { + return attributes; + } + + public void setAttributes(DORADeploymentObjectAttributes attributes) { + this.attributes = attributes; + } + + public DORADeploymentObject id(String id) { + this.id = id; + return this; + } + + /** + * The ID of the deployment event. + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public DORADeploymentObject type(DORADeploymentType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * JSON:API type for DORA deployment events. + * + * @return type + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DORADeploymentType getType() { + return type; + } + + public void setType(DORADeploymentType type) { + if (!type.isValid()) { + this.unparsed = true; + } + this.type = type; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DORADeploymentObject + */ + @JsonAnySetter + public DORADeploymentObject putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this DORADeploymentObject object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DORADeploymentObject doraDeploymentObject = (DORADeploymentObject) o; + return Objects.equals(this.attributes, doraDeploymentObject.attributes) + && Objects.equals(this.id, doraDeploymentObject.id) + && Objects.equals(this.type, doraDeploymentObject.type) + && Objects.equals(this.additionalProperties, doraDeploymentObject.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DORADeploymentObject {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/DORADeploymentObjectAttributes.java b/src/main/java/com/datadog/api/client/v2/model/DORADeploymentObjectAttributes.java new file mode 100644 index 00000000000..7ca9d60809e --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/DORADeploymentObjectAttributes.java @@ -0,0 +1,366 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; + +/** The attributes of the deployment event. */ +@JsonPropertyOrder({ + DORADeploymentObjectAttributes.JSON_PROPERTY_CUSTOM_TAGS, + DORADeploymentObjectAttributes.JSON_PROPERTY_ENV, + DORADeploymentObjectAttributes.JSON_PROPERTY_FINISHED_AT, + DORADeploymentObjectAttributes.JSON_PROPERTY_GIT, + DORADeploymentObjectAttributes.JSON_PROPERTY_SERVICE, + DORADeploymentObjectAttributes.JSON_PROPERTY_STARTED_AT, + DORADeploymentObjectAttributes.JSON_PROPERTY_TEAM, + DORADeploymentObjectAttributes.JSON_PROPERTY_VERSION +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class DORADeploymentObjectAttributes { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_CUSTOM_TAGS = "custom_tags"; + private JsonNullable> customTags = JsonNullable.>undefined(); + + public static final String JSON_PROPERTY_ENV = "env"; + private String env; + + public static final String JSON_PROPERTY_FINISHED_AT = "finished_at"; + private Long finishedAt; + + public static final String JSON_PROPERTY_GIT = "git"; + private DORAGitInfo git; + + public static final String JSON_PROPERTY_SERVICE = "service"; + private String service; + + public static final String JSON_PROPERTY_STARTED_AT = "started_at"; + private Long startedAt; + + public static final String JSON_PROPERTY_TEAM = "team"; + private String team; + + public static final String JSON_PROPERTY_VERSION = "version"; + private String version; + + public DORADeploymentObjectAttributes() {} + + @JsonCreator + public DORADeploymentObjectAttributes( + @JsonProperty(required = true, value = JSON_PROPERTY_FINISHED_AT) Long finishedAt, + @JsonProperty(required = true, value = JSON_PROPERTY_SERVICE) String service, + @JsonProperty(required = true, value = JSON_PROPERTY_STARTED_AT) Long startedAt) { + this.finishedAt = finishedAt; + this.service = service; + this.startedAt = startedAt; + } + + public DORADeploymentObjectAttributes customTags(List customTags) { + this.customTags = JsonNullable.>of(customTags); + return this; + } + + public DORADeploymentObjectAttributes addCustomTagsItem(String customTagsItem) { + if (this.customTags == null || !this.customTags.isPresent()) { + this.customTags = JsonNullable.>of(new ArrayList<>()); + } + try { + this.customTags.get().add(customTagsItem); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present + } + return this; + } + + /** + * A list of user-defined tags. The tags must follow the key:value pattern. Up to 100 + * may be added per event. + * + * @return customTags + */ + @jakarta.annotation.Nullable + @JsonIgnore + public List getCustomTags() { + return customTags.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_CUSTOM_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable> getCustomTags_JsonNullable() { + return customTags; + } + + @JsonProperty(JSON_PROPERTY_CUSTOM_TAGS) + public void setCustomTags_JsonNullable(JsonNullable> customTags) { + this.customTags = customTags; + } + + public void setCustomTags(List customTags) { + this.customTags = JsonNullable.>of(customTags); + } + + public DORADeploymentObjectAttributes env(String env) { + this.env = env; + return this; + } + + /** + * Environment name to where the service was deployed. + * + * @return env + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENV) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEnv() { + return env; + } + + public void setEnv(String env) { + this.env = env; + } + + public DORADeploymentObjectAttributes finishedAt(Long finishedAt) { + this.finishedAt = finishedAt; + return this; + } + + /** + * Unix timestamp when the deployment finished. + * + * @return finishedAt + */ + @JsonProperty(JSON_PROPERTY_FINISHED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Long getFinishedAt() { + return finishedAt; + } + + public void setFinishedAt(Long finishedAt) { + this.finishedAt = finishedAt; + } + + public DORADeploymentObjectAttributes git(DORAGitInfo git) { + this.git = git; + this.unparsed |= git.unparsed; + return this; + } + + /** + * Git info for DORA Metrics events. + * + * @return git + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_GIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DORAGitInfo getGit() { + return git; + } + + public void setGit(DORAGitInfo git) { + this.git = git; + } + + public DORADeploymentObjectAttributes service(String service) { + this.service = service; + return this; + } + + /** + * Service name. + * + * @return service + */ + @JsonProperty(JSON_PROPERTY_SERVICE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getService() { + return service; + } + + public void setService(String service) { + this.service = service; + } + + public DORADeploymentObjectAttributes startedAt(Long startedAt) { + this.startedAt = startedAt; + return this; + } + + /** + * Unix timestamp when the deployment started. + * + * @return startedAt + */ + @JsonProperty(JSON_PROPERTY_STARTED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Long getStartedAt() { + return startedAt; + } + + public void setStartedAt(Long startedAt) { + this.startedAt = startedAt; + } + + public DORADeploymentObjectAttributes team(String team) { + this.team = team; + return this; + } + + /** + * Name of the team owning the deployed service. + * + * @return team + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TEAM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTeam() { + return team; + } + + public void setTeam(String team) { + this.team = team; + } + + public DORADeploymentObjectAttributes version(String version) { + this.version = version; + return this; + } + + /** + * Version to correlate with APM Deployment Tracking. + * + * @return version + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VERSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DORADeploymentObjectAttributes + */ + @JsonAnySetter + public DORADeploymentObjectAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this DORADeploymentObjectAttributes object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DORADeploymentObjectAttributes doraDeploymentObjectAttributes = + (DORADeploymentObjectAttributes) o; + return Objects.equals(this.customTags, doraDeploymentObjectAttributes.customTags) + && Objects.equals(this.env, doraDeploymentObjectAttributes.env) + && Objects.equals(this.finishedAt, doraDeploymentObjectAttributes.finishedAt) + && Objects.equals(this.git, doraDeploymentObjectAttributes.git) + && Objects.equals(this.service, doraDeploymentObjectAttributes.service) + && Objects.equals(this.startedAt, doraDeploymentObjectAttributes.startedAt) + && Objects.equals(this.team, doraDeploymentObjectAttributes.team) + && Objects.equals(this.version, doraDeploymentObjectAttributes.version) + && Objects.equals( + this.additionalProperties, doraDeploymentObjectAttributes.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash( + customTags, env, finishedAt, git, service, startedAt, team, version, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DORADeploymentObjectAttributes {\n"); + sb.append(" customTags: ").append(toIndentedString(customTags)).append("\n"); + sb.append(" env: ").append(toIndentedString(env)).append("\n"); + sb.append(" finishedAt: ").append(toIndentedString(finishedAt)).append("\n"); + sb.append(" git: ").append(toIndentedString(git)).append("\n"); + sb.append(" service: ").append(toIndentedString(service)).append("\n"); + sb.append(" startedAt: ").append(toIndentedString(startedAt)).append("\n"); + sb.append(" team: ").append(toIndentedString(team)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/DORADeploymentsListResponse.java b/src/main/java/com/datadog/api/client/v2/model/DORADeploymentsListResponse.java new file mode 100644 index 00000000000..eeb731b59ad --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/DORADeploymentsListResponse.java @@ -0,0 +1,150 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** Response for the list deployments endpoint. */ +@JsonPropertyOrder({DORADeploymentsListResponse.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class DORADeploymentsListResponse { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public DORADeploymentsListResponse data(List data) { + this.data = data; + for (DORADeploymentObject item : data) { + this.unparsed |= item.unparsed; + } + return this; + } + + public DORADeploymentsListResponse addDataItem(DORADeploymentObject dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + this.unparsed |= dataItem.unparsed; + return this; + } + + /** + * The list of DORA deployment events. + * + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DORADeploymentsListResponse + */ + @JsonAnySetter + public DORADeploymentsListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this DORADeploymentsListResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DORADeploymentsListResponse doraDeploymentsListResponse = (DORADeploymentsListResponse) o; + return Objects.equals(this.data, doraDeploymentsListResponse.data) + && Objects.equals( + this.additionalProperties, doraDeploymentsListResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DORADeploymentsListResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/DORAFetchResponse.java b/src/main/java/com/datadog/api/client/v2/model/DORAFailureFetchResponse.java similarity index 79% rename from src/main/java/com/datadog/api/client/v2/model/DORAFetchResponse.java rename to src/main/java/com/datadog/api/client/v2/model/DORAFailureFetchResponse.java index b06321fae34..278530d0160 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DORAFetchResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/DORAFailureFetchResponse.java @@ -16,34 +16,34 @@ import java.util.Map; import java.util.Objects; -/** Response for the DORA fetch endpoints. */ -@JsonPropertyOrder({DORAFetchResponse.JSON_PROPERTY_DATA}) +/** Response for fetching a single failure event. */ +@JsonPropertyOrder({DORAFailureFetchResponse.JSON_PROPERTY_DATA}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class DORAFetchResponse { +public class DORAFailureFetchResponse { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_DATA = "data"; - private DORAEvent data; + private DORAIncidentObject data; - public DORAFetchResponse data(DORAEvent data) { + public DORAFailureFetchResponse data(DORAIncidentObject data) { this.data = data; this.unparsed |= data.unparsed; return this; } /** - * A DORA event. + * A DORA incident event. * * @return data */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DORAEvent getData() { + public DORAIncidentObject getData() { return data; } - public void setData(DORAEvent data) { + public void setData(DORAIncidentObject data) { this.data = data; } @@ -59,10 +59,10 @@ public void setData(DORAEvent data) { * * @param key The arbitrary key to set * @param value The associated value - * @return DORAFetchResponse + * @return DORAFailureFetchResponse */ @JsonAnySetter - public DORAFetchResponse putAdditionalProperty(String key, Object value) { + public DORAFailureFetchResponse putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -93,7 +93,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** Return true if this DORAFetchResponse object is equal to o. */ + /** Return true if this DORAFailureFetchResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -102,9 +102,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DORAFetchResponse doraFetchResponse = (DORAFetchResponse) o; - return Objects.equals(this.data, doraFetchResponse.data) - && Objects.equals(this.additionalProperties, doraFetchResponse.additionalProperties); + DORAFailureFetchResponse doraFailureFetchResponse = (DORAFailureFetchResponse) o; + return Objects.equals(this.data, doraFailureFetchResponse.data) + && Objects.equals(this.additionalProperties, doraFailureFetchResponse.additionalProperties); } @Override @@ -115,7 +115,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DORAFetchResponse {\n"); + sb.append("class DORAFailureFetchResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) diff --git a/src/main/java/com/datadog/api/client/v2/model/DORAListResponse.java b/src/main/java/com/datadog/api/client/v2/model/DORAFailuresListResponse.java similarity index 77% rename from src/main/java/com/datadog/api/client/v2/model/DORAListResponse.java rename to src/main/java/com/datadog/api/client/v2/model/DORAFailuresListResponse.java index 3199fd3b3a9..1860de0abf4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DORAListResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/DORAFailuresListResponse.java @@ -18,24 +18,24 @@ import java.util.Map; import java.util.Objects; -/** Response for the DORA list endpoints. */ -@JsonPropertyOrder({DORAListResponse.JSON_PROPERTY_DATA}) +/** Response for the list failures endpoint. */ +@JsonPropertyOrder({DORAFailuresListResponse.JSON_PROPERTY_DATA}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class DORAListResponse { +public class DORAFailuresListResponse { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_DATA = "data"; - private List data = null; + private List data = null; - public DORAListResponse data(List data) { + public DORAFailuresListResponse data(List data) { this.data = data; - for (DORAEvent item : data) { + for (DORAIncidentObject item : data) { this.unparsed |= item.unparsed; } return this; } - public DORAListResponse addDataItem(DORAEvent dataItem) { + public DORAFailuresListResponse addDataItem(DORAIncidentObject dataItem) { if (this.data == null) { this.data = new ArrayList<>(); } @@ -45,18 +45,18 @@ public DORAListResponse addDataItem(DORAEvent dataItem) { } /** - * The list of DORA events. + * The list of DORA incident events. * * @return data */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -72,10 +72,10 @@ public void setData(List data) { * * @param key The arbitrary key to set * @param value The associated value - * @return DORAListResponse + * @return DORAFailuresListResponse */ @JsonAnySetter - public DORAListResponse putAdditionalProperty(String key, Object value) { + public DORAFailuresListResponse putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -106,7 +106,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** Return true if this DORAListResponse object is equal to o. */ + /** Return true if this DORAFailuresListResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -115,9 +115,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DORAListResponse doraListResponse = (DORAListResponse) o; - return Objects.equals(this.data, doraListResponse.data) - && Objects.equals(this.additionalProperties, doraListResponse.additionalProperties); + DORAFailuresListResponse doraFailuresListResponse = (DORAFailuresListResponse) o; + return Objects.equals(this.data, doraFailuresListResponse.data) + && Objects.equals(this.additionalProperties, doraFailuresListResponse.additionalProperties); } @Override @@ -128,7 +128,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DORAListResponse {\n"); + sb.append("class DORAFailuresListResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) diff --git a/src/main/java/com/datadog/api/client/v2/model/DORAEvent.java b/src/main/java/com/datadog/api/client/v2/model/DORAIncidentObject.java similarity index 73% rename from src/main/java/com/datadog/api/client/v2/model/DORAEvent.java rename to src/main/java/com/datadog/api/client/v2/model/DORAIncidentObject.java index 16d0764e0f1..31995912458 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DORAEvent.java +++ b/src/main/java/com/datadog/api/client/v2/model/DORAIncidentObject.java @@ -16,53 +16,54 @@ import java.util.Map; import java.util.Objects; -/** A DORA event. */ +/** A DORA incident event. */ @JsonPropertyOrder({ - DORAEvent.JSON_PROPERTY_ATTRIBUTES, - DORAEvent.JSON_PROPERTY_ID, - DORAEvent.JSON_PROPERTY_TYPE + DORAIncidentObject.JSON_PROPERTY_ATTRIBUTES, + DORAIncidentObject.JSON_PROPERTY_ID, + DORAIncidentObject.JSON_PROPERTY_TYPE }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class DORAEvent { +public class DORAIncidentObject { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private Object attributes; + private DORAIncidentObjectAttributes attributes; public static final String JSON_PROPERTY_ID = "id"; private String id; public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + private DORAFailureType type = DORAFailureType.DORA_FAILURE; - public DORAEvent attributes(Object attributes) { + public DORAIncidentObject attributes(DORAIncidentObjectAttributes attributes) { this.attributes = attributes; + this.unparsed |= attributes.unparsed; return this; } /** - * The attributes of the event. + * The attributes of the incident event. * * @return attributes */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getAttributes() { + public DORAIncidentObjectAttributes getAttributes() { return attributes; } - public void setAttributes(Object attributes) { + public void setAttributes(DORAIncidentObjectAttributes attributes) { this.attributes = attributes; } - public DORAEvent id(String id) { + public DORAIncidentObject id(String id) { this.id = id; return this; } /** - * The ID of the event. + * The ID of the incident event. * * @return id */ @@ -77,24 +78,28 @@ public void setId(String id) { this.id = id; } - public DORAEvent type(String type) { + public DORAIncidentObject type(DORAFailureType type) { this.type = type; + this.unparsed |= !type.isValid(); return this; } /** - * The type of the event. + * JSON:API type for DORA failure events. * * @return type */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { + public DORAFailureType getType() { return type; } - public void setType(String type) { + public void setType(DORAFailureType type) { + if (!type.isValid()) { + this.unparsed = true; + } this.type = type; } @@ -110,10 +115,10 @@ public void setType(String type) { * * @param key The arbitrary key to set * @param value The associated value - * @return DORAEvent + * @return DORAIncidentObject */ @JsonAnySetter - public DORAEvent putAdditionalProperty(String key, Object value) { + public DORAIncidentObject putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -144,7 +149,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** Return true if this DORAEvent object is equal to o. */ + /** Return true if this DORAIncidentObject object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -153,11 +158,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DORAEvent doraEvent = (DORAEvent) o; - return Objects.equals(this.attributes, doraEvent.attributes) - && Objects.equals(this.id, doraEvent.id) - && Objects.equals(this.type, doraEvent.type) - && Objects.equals(this.additionalProperties, doraEvent.additionalProperties); + DORAIncidentObject doraIncidentObject = (DORAIncidentObject) o; + return Objects.equals(this.attributes, doraIncidentObject.attributes) + && Objects.equals(this.id, doraIncidentObject.id) + && Objects.equals(this.type, doraIncidentObject.type) + && Objects.equals(this.additionalProperties, doraIncidentObject.additionalProperties); } @Override @@ -168,7 +173,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DORAEvent {\n"); + sb.append("class DORAIncidentObject {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/DORAIncidentObjectAttributes.java b/src/main/java/com/datadog/api/client/v2/model/DORAIncidentObjectAttributes.java new file mode 100644 index 00000000000..123a70da8ff --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/DORAIncidentObjectAttributes.java @@ -0,0 +1,435 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; + +/** The attributes of the incident event. */ +@JsonPropertyOrder({ + DORAIncidentObjectAttributes.JSON_PROPERTY_CUSTOM_TAGS, + DORAIncidentObjectAttributes.JSON_PROPERTY_ENV, + DORAIncidentObjectAttributes.JSON_PROPERTY_FINISHED_AT, + DORAIncidentObjectAttributes.JSON_PROPERTY_GIT, + DORAIncidentObjectAttributes.JSON_PROPERTY_NAME, + DORAIncidentObjectAttributes.JSON_PROPERTY_SERVICES, + DORAIncidentObjectAttributes.JSON_PROPERTY_SEVERITY, + DORAIncidentObjectAttributes.JSON_PROPERTY_STARTED_AT, + DORAIncidentObjectAttributes.JSON_PROPERTY_TEAM, + DORAIncidentObjectAttributes.JSON_PROPERTY_VERSION +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class DORAIncidentObjectAttributes { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_CUSTOM_TAGS = "custom_tags"; + private JsonNullable> customTags = JsonNullable.>undefined(); + + public static final String JSON_PROPERTY_ENV = "env"; + private String env; + + public static final String JSON_PROPERTY_FINISHED_AT = "finished_at"; + private Long finishedAt; + + public static final String JSON_PROPERTY_GIT = "git"; + private DORAGitInfo git; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_SERVICES = "services"; + private List services = null; + + public static final String JSON_PROPERTY_SEVERITY = "severity"; + private String severity; + + public static final String JSON_PROPERTY_STARTED_AT = "started_at"; + private Long startedAt; + + public static final String JSON_PROPERTY_TEAM = "team"; + private String team; + + public static final String JSON_PROPERTY_VERSION = "version"; + private String version; + + public DORAIncidentObjectAttributes() {} + + @JsonCreator + public DORAIncidentObjectAttributes( + @JsonProperty(required = true, value = JSON_PROPERTY_STARTED_AT) Long startedAt) { + this.startedAt = startedAt; + } + + public DORAIncidentObjectAttributes customTags(List customTags) { + this.customTags = JsonNullable.>of(customTags); + return this; + } + + public DORAIncidentObjectAttributes addCustomTagsItem(String customTagsItem) { + if (this.customTags == null || !this.customTags.isPresent()) { + this.customTags = JsonNullable.>of(new ArrayList<>()); + } + try { + this.customTags.get().add(customTagsItem); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present + } + return this; + } + + /** + * A list of user-defined tags. The tags must follow the key:value pattern. Up to 100 + * may be added per event. + * + * @return customTags + */ + @jakarta.annotation.Nullable + @JsonIgnore + public List getCustomTags() { + return customTags.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_CUSTOM_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable> getCustomTags_JsonNullable() { + return customTags; + } + + @JsonProperty(JSON_PROPERTY_CUSTOM_TAGS) + public void setCustomTags_JsonNullable(JsonNullable> customTags) { + this.customTags = customTags; + } + + public void setCustomTags(List customTags) { + this.customTags = JsonNullable.>of(customTags); + } + + public DORAIncidentObjectAttributes env(String env) { + this.env = env; + return this; + } + + /** + * Environment name that was impacted by the incident. + * + * @return env + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENV) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEnv() { + return env; + } + + public void setEnv(String env) { + this.env = env; + } + + public DORAIncidentObjectAttributes finishedAt(Long finishedAt) { + this.finishedAt = finishedAt; + return this; + } + + /** + * Unix timestamp when the incident finished. + * + * @return finishedAt + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FINISHED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getFinishedAt() { + return finishedAt; + } + + public void setFinishedAt(Long finishedAt) { + this.finishedAt = finishedAt; + } + + public DORAIncidentObjectAttributes git(DORAGitInfo git) { + this.git = git; + this.unparsed |= git.unparsed; + return this; + } + + /** + * Git info for DORA Metrics events. + * + * @return git + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_GIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DORAGitInfo getGit() { + return git; + } + + public void setGit(DORAGitInfo git) { + this.git = git; + } + + public DORAIncidentObjectAttributes name(String name) { + this.name = name; + return this; + } + + /** + * Incident name. + * + * @return name + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public DORAIncidentObjectAttributes services(List services) { + this.services = services; + return this; + } + + public DORAIncidentObjectAttributes addServicesItem(String servicesItem) { + if (this.services == null) { + this.services = new ArrayList<>(); + } + this.services.add(servicesItem); + return this; + } + + /** + * Service names impacted by the incident. + * + * @return services + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SERVICES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getServices() { + return services; + } + + public void setServices(List services) { + this.services = services; + } + + public DORAIncidentObjectAttributes severity(String severity) { + this.severity = severity; + return this; + } + + /** + * Incident severity. + * + * @return severity + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SEVERITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSeverity() { + return severity; + } + + public void setSeverity(String severity) { + this.severity = severity; + } + + public DORAIncidentObjectAttributes startedAt(Long startedAt) { + this.startedAt = startedAt; + return this; + } + + /** + * Unix timestamp when the incident started. + * + * @return startedAt + */ + @JsonProperty(JSON_PROPERTY_STARTED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Long getStartedAt() { + return startedAt; + } + + public void setStartedAt(Long startedAt) { + this.startedAt = startedAt; + } + + public DORAIncidentObjectAttributes team(String team) { + this.team = team; + return this; + } + + /** + * Name of the team owning the services impacted. + * + * @return team + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TEAM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTeam() { + return team; + } + + public void setTeam(String team) { + this.team = team; + } + + public DORAIncidentObjectAttributes version(String version) { + this.version = version; + return this; + } + + /** + * Version to correlate with APM Deployment Tracking. + * + * @return version + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VERSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return DORAIncidentObjectAttributes + */ + @JsonAnySetter + public DORAIncidentObjectAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this DORAIncidentObjectAttributes object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DORAIncidentObjectAttributes doraIncidentObjectAttributes = (DORAIncidentObjectAttributes) o; + return Objects.equals(this.customTags, doraIncidentObjectAttributes.customTags) + && Objects.equals(this.env, doraIncidentObjectAttributes.env) + && Objects.equals(this.finishedAt, doraIncidentObjectAttributes.finishedAt) + && Objects.equals(this.git, doraIncidentObjectAttributes.git) + && Objects.equals(this.name, doraIncidentObjectAttributes.name) + && Objects.equals(this.services, doraIncidentObjectAttributes.services) + && Objects.equals(this.severity, doraIncidentObjectAttributes.severity) + && Objects.equals(this.startedAt, doraIncidentObjectAttributes.startedAt) + && Objects.equals(this.team, doraIncidentObjectAttributes.team) + && Objects.equals(this.version, doraIncidentObjectAttributes.version) + && Objects.equals( + this.additionalProperties, doraIncidentObjectAttributes.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash( + customTags, + env, + finishedAt, + git, + name, + services, + severity, + startedAt, + team, + version, + additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DORAIncidentObjectAttributes {\n"); + sb.append(" customTags: ").append(toIndentedString(customTags)).append("\n"); + sb.append(" env: ").append(toIndentedString(env)).append("\n"); + sb.append(" finishedAt: ").append(toIndentedString(finishedAt)).append("\n"); + sb.append(" git: ").append(toIndentedString(git)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" services: ").append(toIndentedString(services)).append("\n"); + sb.append(" severity: ").append(toIndentedString(severity)).append("\n"); + sb.append(" startedAt: ").append(toIndentedString(startedAt)).append("\n"); + sb.append(" team: ").append(toIndentedString(team)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/DORAListDeploymentsRequestData.java b/src/main/java/com/datadog/api/client/v2/model/DORAListDeploymentsRequestData.java index 91c08451c33..5802c413e6c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DORAListDeploymentsRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/DORAListDeploymentsRequestData.java @@ -30,7 +30,8 @@ public class DORAListDeploymentsRequestData { private DORAListDeploymentsRequestAttributes attributes; public static final String JSON_PROPERTY_TYPE = "type"; - private DORAListDeploymentsRequestDataType type; + private DORAListDeploymentsRequestDataType type = + DORAListDeploymentsRequestDataType.DORA_DEPLOYMENTS_LIST_REQUEST; public DORAListDeploymentsRequestData() {} diff --git a/src/main/java/com/datadog/api/client/v2/model/DORAListFailuresRequestData.java b/src/main/java/com/datadog/api/client/v2/model/DORAListFailuresRequestData.java index 77fd5209e95..8810af50dac 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DORAListFailuresRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/DORAListFailuresRequestData.java @@ -30,7 +30,8 @@ public class DORAListFailuresRequestData { private DORAListFailuresRequestAttributes attributes; public static final String JSON_PROPERTY_TYPE = "type"; - private DORAListFailuresRequestDataType type; + private DORAListFailuresRequestDataType type = + DORAListFailuresRequestDataType.DORA_FAILURES_LIST_REQUEST; public DORAListFailuresRequestData() {} diff --git a/src/main/java/com/datadog/api/client/v2/model/MicrosoftSentinelDestination.java b/src/main/java/com/datadog/api/client/v2/model/MicrosoftSentinelDestination.java index 62d3cfd1cbc..5ca5c0728d6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MicrosoftSentinelDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/MicrosoftSentinelDestination.java @@ -21,6 +21,7 @@ /** The microsoft_sentinel destination forwards logs to Microsoft Sentinel. */ @JsonPropertyOrder({ + MicrosoftSentinelDestination.JSON_PROPERTY_BUFFER, MicrosoftSentinelDestination.JSON_PROPERTY_CLIENT_ID, MicrosoftSentinelDestination.JSON_PROPERTY_DCR_IMMUTABLE_ID, MicrosoftSentinelDestination.JSON_PROPERTY_ID, @@ -33,6 +34,9 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class MicrosoftSentinelDestination { @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; private String clientId; @@ -77,6 +81,28 @@ public MicrosoftSentinelDestination( this.unparsed |= !type.isValid(); } + public MicrosoftSentinelDestination buffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public MicrosoftSentinelDestination clientId(String clientId) { this.clientId = clientId; return this; @@ -282,7 +308,8 @@ public boolean equals(Object o) { return false; } MicrosoftSentinelDestination microsoftSentinelDestination = (MicrosoftSentinelDestination) o; - return Objects.equals(this.clientId, microsoftSentinelDestination.clientId) + return Objects.equals(this.buffer, microsoftSentinelDestination.buffer) + && Objects.equals(this.clientId, microsoftSentinelDestination.clientId) && Objects.equals(this.dcrImmutableId, microsoftSentinelDestination.dcrImmutableId) && Objects.equals(this.id, microsoftSentinelDestination.id) && Objects.equals(this.inputs, microsoftSentinelDestination.inputs) @@ -296,13 +323,14 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - clientId, dcrImmutableId, id, inputs, table, tenantId, type, additionalProperties); + buffer, clientId, dcrImmutableId, id, inputs, table, tenantId, type, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MicrosoftSentinelDestination {\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" clientId: ").append(toIndentedString(clientId)).append("\n"); sb.append(" dcrImmutableId: ").append(toIndentedString(dcrImmutableId)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonOpenSearchDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonOpenSearchDestination.java index f8e615e74d8..20f5f4228cd 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonOpenSearchDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonOpenSearchDestination.java @@ -22,6 +22,7 @@ /** The amazon_opensearch destination writes logs to Amazon OpenSearch. */ @JsonPropertyOrder({ ObservabilityPipelineAmazonOpenSearchDestination.JSON_PROPERTY_AUTH, + ObservabilityPipelineAmazonOpenSearchDestination.JSON_PROPERTY_BUFFER, ObservabilityPipelineAmazonOpenSearchDestination.JSON_PROPERTY_BULK_INDEX, ObservabilityPipelineAmazonOpenSearchDestination.JSON_PROPERTY_ID, ObservabilityPipelineAmazonOpenSearchDestination.JSON_PROPERTY_INPUTS, @@ -34,6 +35,9 @@ public class ObservabilityPipelineAmazonOpenSearchDestination { public static final String JSON_PROPERTY_AUTH = "auth"; private ObservabilityPipelineAmazonOpenSearchDestinationAuth auth; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_BULK_INDEX = "bulk_index"; private String bulkIndex; @@ -88,6 +92,29 @@ public void setAuth(ObservabilityPipelineAmazonOpenSearchDestinationAuth auth) { this.auth = auth; } + public ObservabilityPipelineAmazonOpenSearchDestination buffer( + ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public ObservabilityPipelineAmazonOpenSearchDestination bulkIndex(String bulkIndex) { this.bulkIndex = bulkIndex; return this; @@ -239,6 +266,7 @@ public boolean equals(Object o) { observabilityPipelineAmazonOpenSearchDestination = (ObservabilityPipelineAmazonOpenSearchDestination) o; return Objects.equals(this.auth, observabilityPipelineAmazonOpenSearchDestination.auth) + && Objects.equals(this.buffer, observabilityPipelineAmazonOpenSearchDestination.buffer) && Objects.equals( this.bulkIndex, observabilityPipelineAmazonOpenSearchDestination.bulkIndex) && Objects.equals(this.id, observabilityPipelineAmazonOpenSearchDestination.id) @@ -251,7 +279,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(auth, bulkIndex, id, inputs, type, additionalProperties); + return Objects.hash(auth, buffer, bulkIndex, id, inputs, type, additionalProperties); } @Override @@ -259,6 +287,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ObservabilityPipelineAmazonOpenSearchDestination {\n"); sb.append(" auth: ").append(toIndentedString(auth)).append("\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" bulkIndex: ").append(toIndentedString(bulkIndex)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonS3Destination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonS3Destination.java index e7b0612ac30..482d362982b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonS3Destination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonS3Destination.java @@ -26,6 +26,7 @@ @JsonPropertyOrder({ ObservabilityPipelineAmazonS3Destination.JSON_PROPERTY_AUTH, ObservabilityPipelineAmazonS3Destination.JSON_PROPERTY_BUCKET, + ObservabilityPipelineAmazonS3Destination.JSON_PROPERTY_BUFFER, ObservabilityPipelineAmazonS3Destination.JSON_PROPERTY_ID, ObservabilityPipelineAmazonS3Destination.JSON_PROPERTY_INPUTS, ObservabilityPipelineAmazonS3Destination.JSON_PROPERTY_KEY_PREFIX, @@ -44,6 +45,9 @@ public class ObservabilityPipelineAmazonS3Destination { public static final String JSON_PROPERTY_BUCKET = "bucket"; private String bucket; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -131,6 +135,29 @@ public void setBucket(String bucket) { this.bucket = bucket; } + public ObservabilityPipelineAmazonS3Destination buffer( + ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public ObservabilityPipelineAmazonS3Destination id(String id) { this.id = id; return this; @@ -348,6 +375,7 @@ public boolean equals(Object o) { (ObservabilityPipelineAmazonS3Destination) o; return Objects.equals(this.auth, observabilityPipelineAmazonS3Destination.auth) && Objects.equals(this.bucket, observabilityPipelineAmazonS3Destination.bucket) + && Objects.equals(this.buffer, observabilityPipelineAmazonS3Destination.buffer) && Objects.equals(this.id, observabilityPipelineAmazonS3Destination.id) && Objects.equals(this.inputs, observabilityPipelineAmazonS3Destination.inputs) && Objects.equals(this.keyPrefix, observabilityPipelineAmazonS3Destination.keyPrefix) @@ -363,7 +391,17 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - auth, bucket, id, inputs, keyPrefix, region, storageClass, tls, type, additionalProperties); + auth, + bucket, + buffer, + id, + inputs, + keyPrefix, + region, + storageClass, + tls, + type, + additionalProperties); } @Override @@ -372,6 +410,7 @@ public String toString() { sb.append("class ObservabilityPipelineAmazonS3Destination {\n"); sb.append(" auth: ").append(toIndentedString(auth)).append("\n"); sb.append(" bucket: ").append(toIndentedString(bucket)).append("\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); sb.append(" keyPrefix: ").append(toIndentedString(keyPrefix)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonSecurityLakeDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonSecurityLakeDestination.java index 2ea8bb4a780..6774f51fe64 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonSecurityLakeDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonSecurityLakeDestination.java @@ -23,6 +23,7 @@ @JsonPropertyOrder({ ObservabilityPipelineAmazonSecurityLakeDestination.JSON_PROPERTY_AUTH, ObservabilityPipelineAmazonSecurityLakeDestination.JSON_PROPERTY_BUCKET, + ObservabilityPipelineAmazonSecurityLakeDestination.JSON_PROPERTY_BUFFER, ObservabilityPipelineAmazonSecurityLakeDestination.JSON_PROPERTY_CUSTOM_SOURCE_NAME, ObservabilityPipelineAmazonSecurityLakeDestination.JSON_PROPERTY_ID, ObservabilityPipelineAmazonSecurityLakeDestination.JSON_PROPERTY_INPUTS, @@ -40,6 +41,9 @@ public class ObservabilityPipelineAmazonSecurityLakeDestination { public static final String JSON_PROPERTY_BUCKET = "bucket"; private String bucket; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_CUSTOM_SOURCE_NAME = "custom_source_name"; private String customSourceName; @@ -124,6 +128,29 @@ public void setBucket(String bucket) { this.bucket = bucket; } + public ObservabilityPipelineAmazonSecurityLakeDestination buffer( + ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public ObservabilityPipelineAmazonSecurityLakeDestination customSourceName( String customSourceName) { this.customSourceName = customSourceName; @@ -320,6 +347,7 @@ public boolean equals(Object o) { (ObservabilityPipelineAmazonSecurityLakeDestination) o; return Objects.equals(this.auth, observabilityPipelineAmazonSecurityLakeDestination.auth) && Objects.equals(this.bucket, observabilityPipelineAmazonSecurityLakeDestination.bucket) + && Objects.equals(this.buffer, observabilityPipelineAmazonSecurityLakeDestination.buffer) && Objects.equals( this.customSourceName, observabilityPipelineAmazonSecurityLakeDestination.customSourceName) @@ -336,7 +364,16 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - auth, bucket, customSourceName, id, inputs, region, tls, type, additionalProperties); + auth, + bucket, + buffer, + customSourceName, + id, + inputs, + region, + tls, + type, + additionalProperties); } @Override @@ -345,6 +382,7 @@ public String toString() { sb.append("class ObservabilityPipelineAmazonSecurityLakeDestination {\n"); sb.append(" auth: ").append(toIndentedString(auth)).append("\n"); sb.append(" bucket: ").append(toIndentedString(bucket)).append("\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" customSourceName: ").append(toIndentedString(customSourceName)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineBufferOptions.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineBufferOptions.java new file mode 100644 index 00000000000..bc7dbbaed68 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineBufferOptions.java @@ -0,0 +1,390 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.AbstractOpenApiSchema; +import com.datadog.api.client.JSON; +import com.datadog.api.client.UnparsedObject; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.MapperFeature; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import jakarta.ws.rs.core.GenericType; +import java.io.IOException; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.logging.Level; +import java.util.logging.Logger; + +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +@JsonDeserialize( + using = ObservabilityPipelineBufferOptions.ObservabilityPipelineBufferOptionsDeserializer.class) +@JsonSerialize( + using = ObservabilityPipelineBufferOptions.ObservabilityPipelineBufferOptionsSerializer.class) +public class ObservabilityPipelineBufferOptions extends AbstractOpenApiSchema { + private static final Logger log = + Logger.getLogger(ObservabilityPipelineBufferOptions.class.getName()); + + @JsonIgnore public boolean unparsed = false; + + public static class ObservabilityPipelineBufferOptionsSerializer + extends StdSerializer { + public ObservabilityPipelineBufferOptionsSerializer( + Class t) { + super(t); + } + + public ObservabilityPipelineBufferOptionsSerializer() { + this(null); + } + + @Override + public void serialize( + ObservabilityPipelineBufferOptions value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class ObservabilityPipelineBufferOptionsDeserializer + extends StdDeserializer { + public ObservabilityPipelineBufferOptionsDeserializer() { + this(ObservabilityPipelineBufferOptions.class); + } + + public ObservabilityPipelineBufferOptionsDeserializer(Class vc) { + super(vc); + } + + @Override + public ObservabilityPipelineBufferOptions deserialize( + JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + Object tmp = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize ObservabilityPipelineDiskBufferOptions + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (ObservabilityPipelineDiskBufferOptions.class.equals(Integer.class) + || ObservabilityPipelineDiskBufferOptions.class.equals(Long.class) + || ObservabilityPipelineDiskBufferOptions.class.equals(Float.class) + || ObservabilityPipelineDiskBufferOptions.class.equals(Double.class) + || ObservabilityPipelineDiskBufferOptions.class.equals(Boolean.class) + || ObservabilityPipelineDiskBufferOptions.class.equals(String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= + ((ObservabilityPipelineDiskBufferOptions.class.equals(Integer.class) + || ObservabilityPipelineDiskBufferOptions.class.equals(Long.class)) + && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= + ((ObservabilityPipelineDiskBufferOptions.class.equals(Float.class) + || ObservabilityPipelineDiskBufferOptions.class.equals(Double.class)) + && (token == JsonToken.VALUE_NUMBER_FLOAT + || token == JsonToken.VALUE_NUMBER_INT)); + attemptParsing |= + (ObservabilityPipelineDiskBufferOptions.class.equals(Boolean.class) + && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= + (ObservabilityPipelineDiskBufferOptions.class.equals(String.class) + && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + tmp = + tree.traverse(jp.getCodec()) + .readValueAs(ObservabilityPipelineDiskBufferOptions.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + if (!((ObservabilityPipelineDiskBufferOptions) tmp).unparsed) { + deserialized = tmp; + match++; + } + log.log( + Level.FINER, "Input data matches schema 'ObservabilityPipelineDiskBufferOptions'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, + "Input data does not match schema 'ObservabilityPipelineDiskBufferOptions'", + e); + } + + // deserialize ObservabilityPipelineMemoryBufferOptions + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (ObservabilityPipelineMemoryBufferOptions.class.equals(Integer.class) + || ObservabilityPipelineMemoryBufferOptions.class.equals(Long.class) + || ObservabilityPipelineMemoryBufferOptions.class.equals(Float.class) + || ObservabilityPipelineMemoryBufferOptions.class.equals(Double.class) + || ObservabilityPipelineMemoryBufferOptions.class.equals(Boolean.class) + || ObservabilityPipelineMemoryBufferOptions.class.equals(String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= + ((ObservabilityPipelineMemoryBufferOptions.class.equals(Integer.class) + || ObservabilityPipelineMemoryBufferOptions.class.equals(Long.class)) + && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= + ((ObservabilityPipelineMemoryBufferOptions.class.equals(Float.class) + || ObservabilityPipelineMemoryBufferOptions.class.equals(Double.class)) + && (token == JsonToken.VALUE_NUMBER_FLOAT + || token == JsonToken.VALUE_NUMBER_INT)); + attemptParsing |= + (ObservabilityPipelineMemoryBufferOptions.class.equals(Boolean.class) + && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= + (ObservabilityPipelineMemoryBufferOptions.class.equals(String.class) + && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + tmp = + tree.traverse(jp.getCodec()) + .readValueAs(ObservabilityPipelineMemoryBufferOptions.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + if (!((ObservabilityPipelineMemoryBufferOptions) tmp).unparsed) { + deserialized = tmp; + match++; + } + log.log( + Level.FINER, "Input data matches schema 'ObservabilityPipelineMemoryBufferOptions'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, + "Input data does not match schema 'ObservabilityPipelineMemoryBufferOptions'", + e); + } + + // deserialize ObservabilityPipelineMemoryBufferSizeOptions + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (ObservabilityPipelineMemoryBufferSizeOptions.class.equals(Integer.class) + || ObservabilityPipelineMemoryBufferSizeOptions.class.equals(Long.class) + || ObservabilityPipelineMemoryBufferSizeOptions.class.equals(Float.class) + || ObservabilityPipelineMemoryBufferSizeOptions.class.equals(Double.class) + || ObservabilityPipelineMemoryBufferSizeOptions.class.equals(Boolean.class) + || ObservabilityPipelineMemoryBufferSizeOptions.class.equals(String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= + ((ObservabilityPipelineMemoryBufferSizeOptions.class.equals(Integer.class) + || ObservabilityPipelineMemoryBufferSizeOptions.class.equals(Long.class)) + && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= + ((ObservabilityPipelineMemoryBufferSizeOptions.class.equals(Float.class) + || ObservabilityPipelineMemoryBufferSizeOptions.class.equals(Double.class)) + && (token == JsonToken.VALUE_NUMBER_FLOAT + || token == JsonToken.VALUE_NUMBER_INT)); + attemptParsing |= + (ObservabilityPipelineMemoryBufferSizeOptions.class.equals(Boolean.class) + && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= + (ObservabilityPipelineMemoryBufferSizeOptions.class.equals(String.class) + && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + tmp = + tree.traverse(jp.getCodec()) + .readValueAs(ObservabilityPipelineMemoryBufferSizeOptions.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + if (!((ObservabilityPipelineMemoryBufferSizeOptions) tmp).unparsed) { + deserialized = tmp; + match++; + } + log.log( + Level.FINER, + "Input data matches schema 'ObservabilityPipelineMemoryBufferSizeOptions'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, + "Input data does not match schema 'ObservabilityPipelineMemoryBufferSizeOptions'", + e); + } + + ObservabilityPipelineBufferOptions ret = new ObservabilityPipelineBufferOptions(); + if (match == 1) { + ret.setActualInstance(deserialized); + } else { + Map res = + new ObjectMapper() + .readValue( + tree.traverse(jp.getCodec()).readValueAsTree().toString(), + new TypeReference>() {}); + ret.setActualInstance(new UnparsedObject(res)); + } + return ret; + } + + /** Handle deserialization of the 'null' value. */ + @Override + public ObservabilityPipelineBufferOptions getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException( + ctxt.getParser(), "ObservabilityPipelineBufferOptions cannot be null"); + } + } + + // store a list of schema names defined in oneOf + public static final Map schemas = new HashMap(); + + public ObservabilityPipelineBufferOptions() { + super("oneOf", Boolean.FALSE); + } + + public ObservabilityPipelineBufferOptions(ObservabilityPipelineDiskBufferOptions o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public ObservabilityPipelineBufferOptions(ObservabilityPipelineMemoryBufferOptions o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public ObservabilityPipelineBufferOptions(ObservabilityPipelineMemoryBufferSizeOptions o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put( + "ObservabilityPipelineDiskBufferOptions", + new GenericType() {}); + schemas.put( + "ObservabilityPipelineMemoryBufferOptions", + new GenericType() {}); + schemas.put( + "ObservabilityPipelineMemoryBufferSizeOptions", + new GenericType() {}); + JSON.registerDescendants( + ObservabilityPipelineBufferOptions.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map getSchemas() { + return ObservabilityPipelineBufferOptions.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: ObservabilityPipelineDiskBufferOptions, + * ObservabilityPipelineMemoryBufferOptions, ObservabilityPipelineMemoryBufferSizeOptions + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a + * composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf( + ObservabilityPipelineDiskBufferOptions.class, instance, new HashSet>())) { + super.setActualInstance(instance); + return; + } + if (JSON.isInstanceOf( + ObservabilityPipelineMemoryBufferOptions.class, instance, new HashSet>())) { + super.setActualInstance(instance); + return; + } + if (JSON.isInstanceOf( + ObservabilityPipelineMemoryBufferSizeOptions.class, instance, new HashSet>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(UnparsedObject.class, instance, new HashSet>())) { + super.setActualInstance(instance); + return; + } + throw new RuntimeException( + "Invalid instance type. Must be ObservabilityPipelineDiskBufferOptions," + + " ObservabilityPipelineMemoryBufferOptions," + + " ObservabilityPipelineMemoryBufferSizeOptions"); + } + + /** + * Get the actual instance, which can be the following: ObservabilityPipelineDiskBufferOptions, + * ObservabilityPipelineMemoryBufferOptions, ObservabilityPipelineMemoryBufferSizeOptions + * + * @return The actual instance (ObservabilityPipelineDiskBufferOptions, + * ObservabilityPipelineMemoryBufferOptions, ObservabilityPipelineMemoryBufferSizeOptions) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ObservabilityPipelineDiskBufferOptions`. If the actual instance is + * not `ObservabilityPipelineDiskBufferOptions`, the ClassCastException will be thrown. + * + * @return The actual instance of `ObservabilityPipelineDiskBufferOptions` + * @throws ClassCastException if the instance is not `ObservabilityPipelineDiskBufferOptions` + */ + public ObservabilityPipelineDiskBufferOptions getObservabilityPipelineDiskBufferOptions() + throws ClassCastException { + return (ObservabilityPipelineDiskBufferOptions) super.getActualInstance(); + } + + /** + * Get the actual instance of `ObservabilityPipelineMemoryBufferOptions`. If the actual instance + * is not `ObservabilityPipelineMemoryBufferOptions`, the ClassCastException will be thrown. + * + * @return The actual instance of `ObservabilityPipelineMemoryBufferOptions` + * @throws ClassCastException if the instance is not `ObservabilityPipelineMemoryBufferOptions` + */ + public ObservabilityPipelineMemoryBufferOptions getObservabilityPipelineMemoryBufferOptions() + throws ClassCastException { + return (ObservabilityPipelineMemoryBufferOptions) super.getActualInstance(); + } + + /** + * Get the actual instance of `ObservabilityPipelineMemoryBufferSizeOptions`. If the actual + * instance is not `ObservabilityPipelineMemoryBufferSizeOptions`, the ClassCastException will be + * thrown. + * + * @return The actual instance of `ObservabilityPipelineMemoryBufferSizeOptions` + * @throws ClassCastException if the instance is not + * `ObservabilityPipelineMemoryBufferSizeOptions` + */ + public ObservabilityPipelineMemoryBufferSizeOptions + getObservabilityPipelineMemoryBufferSizeOptions() throws ClassCastException { + return (ObservabilityPipelineMemoryBufferSizeOptions) super.getActualInstance(); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineBufferOptionsDiskType.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineBufferOptionsDiskType.java new file mode 100644 index 00000000000..927da620cef --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineBufferOptionsDiskType.java @@ -0,0 +1,62 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** The type of the buffer that will be configured, a disk buffer. */ +@JsonSerialize( + using = + ObservabilityPipelineBufferOptionsDiskType + .ObservabilityPipelineBufferOptionsDiskTypeSerializer.class) +public class ObservabilityPipelineBufferOptionsDiskType extends ModelEnum { + + private static final Set allowedValues = new HashSet(Arrays.asList("disk")); + + public static final ObservabilityPipelineBufferOptionsDiskType DISK = + new ObservabilityPipelineBufferOptionsDiskType("disk"); + + ObservabilityPipelineBufferOptionsDiskType(String value) { + super(value, allowedValues); + } + + public static class ObservabilityPipelineBufferOptionsDiskTypeSerializer + extends StdSerializer { + public ObservabilityPipelineBufferOptionsDiskTypeSerializer( + Class t) { + super(t); + } + + public ObservabilityPipelineBufferOptionsDiskTypeSerializer() { + this(null); + } + + @Override + public void serialize( + ObservabilityPipelineBufferOptionsDiskType value, + JsonGenerator jgen, + SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static ObservabilityPipelineBufferOptionsDiskType fromValue(String value) { + return new ObservabilityPipelineBufferOptionsDiskType(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineBufferOptionsMemoryType.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineBufferOptionsMemoryType.java new file mode 100644 index 00000000000..e1a1bbd8fb6 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineBufferOptionsMemoryType.java @@ -0,0 +1,62 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** The type of the buffer that will be configured, a memory buffer. */ +@JsonSerialize( + using = + ObservabilityPipelineBufferOptionsMemoryType + .ObservabilityPipelineBufferOptionsMemoryTypeSerializer.class) +public class ObservabilityPipelineBufferOptionsMemoryType extends ModelEnum { + + private static final Set allowedValues = new HashSet(Arrays.asList("memory")); + + public static final ObservabilityPipelineBufferOptionsMemoryType MEMORY = + new ObservabilityPipelineBufferOptionsMemoryType("memory"); + + ObservabilityPipelineBufferOptionsMemoryType(String value) { + super(value, allowedValues); + } + + public static class ObservabilityPipelineBufferOptionsMemoryTypeSerializer + extends StdSerializer { + public ObservabilityPipelineBufferOptionsMemoryTypeSerializer( + Class t) { + super(t); + } + + public ObservabilityPipelineBufferOptionsMemoryTypeSerializer() { + this(null); + } + + @Override + public void serialize( + ObservabilityPipelineBufferOptionsMemoryType value, + JsonGenerator jgen, + SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static ObservabilityPipelineBufferOptionsMemoryType fromValue(String value) { + return new ObservabilityPipelineBufferOptionsMemoryType(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineBufferOptionsWhenFull.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineBufferOptionsWhenFull.java new file mode 100644 index 00000000000..08d5f05ed6a --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineBufferOptionsWhenFull.java @@ -0,0 +1,65 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** Behavior when the buffer is full (block and stop accepting new events, or drop new events) */ +@JsonSerialize( + using = + ObservabilityPipelineBufferOptionsWhenFull + .ObservabilityPipelineBufferOptionsWhenFullSerializer.class) +public class ObservabilityPipelineBufferOptionsWhenFull extends ModelEnum { + + private static final Set allowedValues = + new HashSet(Arrays.asList("block", "drop_newest")); + + public static final ObservabilityPipelineBufferOptionsWhenFull BLOCK = + new ObservabilityPipelineBufferOptionsWhenFull("block"); + public static final ObservabilityPipelineBufferOptionsWhenFull DROP_NEWEST = + new ObservabilityPipelineBufferOptionsWhenFull("drop_newest"); + + ObservabilityPipelineBufferOptionsWhenFull(String value) { + super(value, allowedValues); + } + + public static class ObservabilityPipelineBufferOptionsWhenFullSerializer + extends StdSerializer { + public ObservabilityPipelineBufferOptionsWhenFullSerializer( + Class t) { + super(t); + } + + public ObservabilityPipelineBufferOptionsWhenFullSerializer() { + this(null); + } + + @Override + public void serialize( + ObservabilityPipelineBufferOptionsWhenFull value, + JsonGenerator jgen, + SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static ObservabilityPipelineBufferOptionsWhenFull fromValue(String value) { + return new ObservabilityPipelineBufferOptionsWhenFull(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineCrowdStrikeNextGenSiemDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineCrowdStrikeNextGenSiemDestination.java index 5709d5ab340..4fc14ef2688 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineCrowdStrikeNextGenSiemDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineCrowdStrikeNextGenSiemDestination.java @@ -24,6 +24,7 @@ * SIEM. */ @JsonPropertyOrder({ + ObservabilityPipelineCrowdStrikeNextGenSiemDestination.JSON_PROPERTY_BUFFER, ObservabilityPipelineCrowdStrikeNextGenSiemDestination.JSON_PROPERTY_COMPRESSION, ObservabilityPipelineCrowdStrikeNextGenSiemDestination.JSON_PROPERTY_ENCODING, ObservabilityPipelineCrowdStrikeNextGenSiemDestination.JSON_PROPERTY_ID, @@ -35,6 +36,9 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ObservabilityPipelineCrowdStrikeNextGenSiemDestination { @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_COMPRESSION = "compression"; private ObservabilityPipelineCrowdStrikeNextGenSiemDestinationCompression compression; @@ -72,6 +76,29 @@ public ObservabilityPipelineCrowdStrikeNextGenSiemDestination( this.unparsed |= !type.isValid(); } + public ObservabilityPipelineCrowdStrikeNextGenSiemDestination buffer( + ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public ObservabilityPipelineCrowdStrikeNextGenSiemDestination compression( ObservabilityPipelineCrowdStrikeNextGenSiemDestinationCompression compression) { this.compression = compression; @@ -276,6 +303,8 @@ public boolean equals(Object o) { observabilityPipelineCrowdStrikeNextGenSiemDestination = (ObservabilityPipelineCrowdStrikeNextGenSiemDestination) o; return Objects.equals( + this.buffer, observabilityPipelineCrowdStrikeNextGenSiemDestination.buffer) + && Objects.equals( this.compression, observabilityPipelineCrowdStrikeNextGenSiemDestination.compression) && Objects.equals( this.encoding, observabilityPipelineCrowdStrikeNextGenSiemDestination.encoding) @@ -291,13 +320,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(compression, encoding, id, inputs, tls, type, additionalProperties); + return Objects.hash(buffer, compression, encoding, id, inputs, tls, type, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ObservabilityPipelineCrowdStrikeNextGenSiemDestination {\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" compression: ").append(toIndentedString(compression)).append("\n"); sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineDatadogLogsDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineDatadogLogsDestination.java index c408c2da16f..edcfe28688c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineDatadogLogsDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineDatadogLogsDestination.java @@ -21,6 +21,7 @@ /** The datadog_logs destination forwards logs to Datadog Log Management. */ @JsonPropertyOrder({ + ObservabilityPipelineDatadogLogsDestination.JSON_PROPERTY_BUFFER, ObservabilityPipelineDatadogLogsDestination.JSON_PROPERTY_ID, ObservabilityPipelineDatadogLogsDestination.JSON_PROPERTY_INPUTS, ObservabilityPipelineDatadogLogsDestination.JSON_PROPERTY_TYPE @@ -29,6 +30,9 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ObservabilityPipelineDatadogLogsDestination { @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -53,6 +57,29 @@ public ObservabilityPipelineDatadogLogsDestination( this.unparsed |= !type.isValid(); } + public ObservabilityPipelineDatadogLogsDestination buffer( + ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public ObservabilityPipelineDatadogLogsDestination id(String id) { this.id = id; return this; @@ -181,7 +208,8 @@ public boolean equals(Object o) { } ObservabilityPipelineDatadogLogsDestination observabilityPipelineDatadogLogsDestination = (ObservabilityPipelineDatadogLogsDestination) o; - return Objects.equals(this.id, observabilityPipelineDatadogLogsDestination.id) + return Objects.equals(this.buffer, observabilityPipelineDatadogLogsDestination.buffer) + && Objects.equals(this.id, observabilityPipelineDatadogLogsDestination.id) && Objects.equals(this.inputs, observabilityPipelineDatadogLogsDestination.inputs) && Objects.equals(this.type, observabilityPipelineDatadogLogsDestination.type) && Objects.equals( @@ -191,13 +219,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(id, inputs, type, additionalProperties); + return Objects.hash(buffer, id, inputs, type, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ObservabilityPipelineDatadogLogsDestination {\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineDiskBufferOptions.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineDiskBufferOptions.java new file mode 100644 index 00000000000..dfc587a3eec --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineDiskBufferOptions.java @@ -0,0 +1,205 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** Options for configuring a disk buffer. */ +@JsonPropertyOrder({ + ObservabilityPipelineDiskBufferOptions.JSON_PROPERTY_MAX_SIZE, + ObservabilityPipelineDiskBufferOptions.JSON_PROPERTY_TYPE, + ObservabilityPipelineDiskBufferOptions.JSON_PROPERTY_WHEN_FULL +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class ObservabilityPipelineDiskBufferOptions { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_MAX_SIZE = "max_size"; + private Long maxSize; + + public static final String JSON_PROPERTY_TYPE = "type"; + private ObservabilityPipelineBufferOptionsDiskType type = + ObservabilityPipelineBufferOptionsDiskType.DISK; + + public static final String JSON_PROPERTY_WHEN_FULL = "when_full"; + private ObservabilityPipelineBufferOptionsWhenFull whenFull = + ObservabilityPipelineBufferOptionsWhenFull.BLOCK; + + public ObservabilityPipelineDiskBufferOptions maxSize(Long maxSize) { + this.maxSize = maxSize; + return this; + } + + /** + * Maximum size of the disk buffer. + * + * @return maxSize + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MAX_SIZE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getMaxSize() { + return maxSize; + } + + public void setMaxSize(Long maxSize) { + this.maxSize = maxSize; + } + + public ObservabilityPipelineDiskBufferOptions type( + ObservabilityPipelineBufferOptionsDiskType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * The type of the buffer that will be configured, a disk buffer. + * + * @return type + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptionsDiskType getType() { + return type; + } + + public void setType(ObservabilityPipelineBufferOptionsDiskType type) { + if (!type.isValid()) { + this.unparsed = true; + } + this.type = type; + } + + public ObservabilityPipelineDiskBufferOptions whenFull( + ObservabilityPipelineBufferOptionsWhenFull whenFull) { + this.whenFull = whenFull; + this.unparsed |= !whenFull.isValid(); + return this; + } + + /** + * Behavior when the buffer is full (block and stop accepting new events, or drop new events) + * + * @return whenFull + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_WHEN_FULL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptionsWhenFull getWhenFull() { + return whenFull; + } + + public void setWhenFull(ObservabilityPipelineBufferOptionsWhenFull whenFull) { + if (!whenFull.isValid()) { + this.unparsed = true; + } + this.whenFull = whenFull; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ObservabilityPipelineDiskBufferOptions + */ + @JsonAnySetter + public ObservabilityPipelineDiskBufferOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this ObservabilityPipelineDiskBufferOptions object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ObservabilityPipelineDiskBufferOptions observabilityPipelineDiskBufferOptions = + (ObservabilityPipelineDiskBufferOptions) o; + return Objects.equals(this.maxSize, observabilityPipelineDiskBufferOptions.maxSize) + && Objects.equals(this.type, observabilityPipelineDiskBufferOptions.type) + && Objects.equals(this.whenFull, observabilityPipelineDiskBufferOptions.whenFull) + && Objects.equals( + this.additionalProperties, observabilityPipelineDiskBufferOptions.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(maxSize, type, whenFull, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ObservabilityPipelineDiskBufferOptions {\n"); + sb.append(" maxSize: ").append(toIndentedString(maxSize)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" whenFull: ").append(toIndentedString(whenFull)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineElasticsearchDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineElasticsearchDestination.java index c414b55e50e..fdc7f6e7a0f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineElasticsearchDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineElasticsearchDestination.java @@ -22,6 +22,7 @@ /** The elasticsearch destination writes logs to an Elasticsearch cluster. */ @JsonPropertyOrder({ ObservabilityPipelineElasticsearchDestination.JSON_PROPERTY_API_VERSION, + ObservabilityPipelineElasticsearchDestination.JSON_PROPERTY_BUFFER, ObservabilityPipelineElasticsearchDestination.JSON_PROPERTY_BULK_INDEX, ObservabilityPipelineElasticsearchDestination.JSON_PROPERTY_ID, ObservabilityPipelineElasticsearchDestination.JSON_PROPERTY_INPUTS, @@ -34,6 +35,9 @@ public class ObservabilityPipelineElasticsearchDestination { public static final String JSON_PROPERTY_API_VERSION = "api_version"; private ObservabilityPipelineElasticsearchDestinationApiVersion apiVersion; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_BULK_INDEX = "bulk_index"; private String bulkIndex; @@ -87,6 +91,29 @@ public void setApiVersion(ObservabilityPipelineElasticsearchDestinationApiVersio this.apiVersion = apiVersion; } + public ObservabilityPipelineElasticsearchDestination buffer( + ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public ObservabilityPipelineElasticsearchDestination bulkIndex(String bulkIndex) { this.bulkIndex = bulkIndex; return this; @@ -237,6 +264,7 @@ public boolean equals(Object o) { ObservabilityPipelineElasticsearchDestination observabilityPipelineElasticsearchDestination = (ObservabilityPipelineElasticsearchDestination) o; return Objects.equals(this.apiVersion, observabilityPipelineElasticsearchDestination.apiVersion) + && Objects.equals(this.buffer, observabilityPipelineElasticsearchDestination.buffer) && Objects.equals(this.bulkIndex, observabilityPipelineElasticsearchDestination.bulkIndex) && Objects.equals(this.id, observabilityPipelineElasticsearchDestination.id) && Objects.equals(this.inputs, observabilityPipelineElasticsearchDestination.inputs) @@ -248,7 +276,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(apiVersion, bulkIndex, id, inputs, type, additionalProperties); + return Objects.hash(apiVersion, buffer, bulkIndex, id, inputs, type, additionalProperties); } @Override @@ -256,6 +284,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ObservabilityPipelineElasticsearchDestination {\n"); sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" bulkIndex: ").append(toIndentedString(bulkIndex)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGoogleChronicleDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGoogleChronicleDestination.java index 7f5b75c361c..208345034ef 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGoogleChronicleDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGoogleChronicleDestination.java @@ -22,6 +22,7 @@ /** The google_chronicle destination sends logs to Google Chronicle. */ @JsonPropertyOrder({ ObservabilityPipelineGoogleChronicleDestination.JSON_PROPERTY_AUTH, + ObservabilityPipelineGoogleChronicleDestination.JSON_PROPERTY_BUFFER, ObservabilityPipelineGoogleChronicleDestination.JSON_PROPERTY_CUSTOMER_ID, ObservabilityPipelineGoogleChronicleDestination.JSON_PROPERTY_ENCODING, ObservabilityPipelineGoogleChronicleDestination.JSON_PROPERTY_ID, @@ -36,6 +37,9 @@ public class ObservabilityPipelineGoogleChronicleDestination { public static final String JSON_PROPERTY_AUTH = "auth"; private ObservabilityPipelineGcpAuth auth; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_CUSTOMER_ID = "customer_id"; private String customerId; @@ -93,6 +97,29 @@ public void setAuth(ObservabilityPipelineGcpAuth auth) { this.auth = auth; } + public ObservabilityPipelineGoogleChronicleDestination buffer( + ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public ObservabilityPipelineGoogleChronicleDestination customerId(String customerId) { this.customerId = customerId; return this; @@ -290,6 +317,7 @@ public boolean equals(Object o) { observabilityPipelineGoogleChronicleDestination = (ObservabilityPipelineGoogleChronicleDestination) o; return Objects.equals(this.auth, observabilityPipelineGoogleChronicleDestination.auth) + && Objects.equals(this.buffer, observabilityPipelineGoogleChronicleDestination.buffer) && Objects.equals( this.customerId, observabilityPipelineGoogleChronicleDestination.customerId) && Objects.equals(this.encoding, observabilityPipelineGoogleChronicleDestination.encoding) @@ -305,7 +333,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - auth, customerId, encoding, id, inputs, logType, type, additionalProperties); + auth, buffer, customerId, encoding, id, inputs, logType, type, additionalProperties); } @Override @@ -313,6 +341,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ObservabilityPipelineGoogleChronicleDestination {\n"); sb.append(" auth: ").append(toIndentedString(auth)).append("\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGoogleCloudStorageDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGoogleCloudStorageDestination.java index 032593f4086..727ccfe293a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGoogleCloudStorageDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGoogleCloudStorageDestination.java @@ -27,6 +27,7 @@ ObservabilityPipelineGoogleCloudStorageDestination.JSON_PROPERTY_ACL, ObservabilityPipelineGoogleCloudStorageDestination.JSON_PROPERTY_AUTH, ObservabilityPipelineGoogleCloudStorageDestination.JSON_PROPERTY_BUCKET, + ObservabilityPipelineGoogleCloudStorageDestination.JSON_PROPERTY_BUFFER, ObservabilityPipelineGoogleCloudStorageDestination.JSON_PROPERTY_ID, ObservabilityPipelineGoogleCloudStorageDestination.JSON_PROPERTY_INPUTS, ObservabilityPipelineGoogleCloudStorageDestination.JSON_PROPERTY_KEY_PREFIX, @@ -47,6 +48,9 @@ public class ObservabilityPipelineGoogleCloudStorageDestination { public static final String JSON_PROPERTY_BUCKET = "bucket"; private String bucket; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -155,6 +159,29 @@ public void setBucket(String bucket) { this.bucket = bucket; } + public ObservabilityPipelineGoogleCloudStorageDestination buffer( + ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public ObservabilityPipelineGoogleCloudStorageDestination id(String id) { this.id = id; return this; @@ -371,6 +398,7 @@ public boolean equals(Object o) { return Objects.equals(this.acl, observabilityPipelineGoogleCloudStorageDestination.acl) && Objects.equals(this.auth, observabilityPipelineGoogleCloudStorageDestination.auth) && Objects.equals(this.bucket, observabilityPipelineGoogleCloudStorageDestination.bucket) + && Objects.equals(this.buffer, observabilityPipelineGoogleCloudStorageDestination.buffer) && Objects.equals(this.id, observabilityPipelineGoogleCloudStorageDestination.id) && Objects.equals(this.inputs, observabilityPipelineGoogleCloudStorageDestination.inputs) && Objects.equals( @@ -391,6 +419,7 @@ public int hashCode() { acl, auth, bucket, + buffer, id, inputs, keyPrefix, @@ -407,6 +436,7 @@ public String toString() { sb.append(" acl: ").append(toIndentedString(acl)).append("\n"); sb.append(" auth: ").append(toIndentedString(auth)).append("\n"); sb.append(" bucket: ").append(toIndentedString(bucket)).append("\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); sb.append(" keyPrefix: ").append(toIndentedString(keyPrefix)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGooglePubSubDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGooglePubSubDestination.java index e72df907d63..dd213fc7742 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGooglePubSubDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGooglePubSubDestination.java @@ -22,6 +22,7 @@ /** The google_pubsub destination publishes logs to a Google Cloud Pub/Sub topic. */ @JsonPropertyOrder({ ObservabilityPipelineGooglePubSubDestination.JSON_PROPERTY_AUTH, + ObservabilityPipelineGooglePubSubDestination.JSON_PROPERTY_BUFFER, ObservabilityPipelineGooglePubSubDestination.JSON_PROPERTY_ENCODING, ObservabilityPipelineGooglePubSubDestination.JSON_PROPERTY_ID, ObservabilityPipelineGooglePubSubDestination.JSON_PROPERTY_INPUTS, @@ -37,6 +38,9 @@ public class ObservabilityPipelineGooglePubSubDestination { public static final String JSON_PROPERTY_AUTH = "auth"; private ObservabilityPipelineGcpAuth auth; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_ENCODING = "encoding"; private ObservabilityPipelineGooglePubSubDestinationEncoding encoding; @@ -103,6 +107,29 @@ public void setAuth(ObservabilityPipelineGcpAuth auth) { this.auth = auth; } + public ObservabilityPipelineGooglePubSubDestination buffer( + ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public ObservabilityPipelineGooglePubSubDestination encoding( ObservabilityPipelineGooglePubSubDestinationEncoding encoding) { this.encoding = encoding; @@ -319,6 +346,7 @@ public boolean equals(Object o) { ObservabilityPipelineGooglePubSubDestination observabilityPipelineGooglePubSubDestination = (ObservabilityPipelineGooglePubSubDestination) o; return Objects.equals(this.auth, observabilityPipelineGooglePubSubDestination.auth) + && Objects.equals(this.buffer, observabilityPipelineGooglePubSubDestination.buffer) && Objects.equals(this.encoding, observabilityPipelineGooglePubSubDestination.encoding) && Objects.equals(this.id, observabilityPipelineGooglePubSubDestination.id) && Objects.equals(this.inputs, observabilityPipelineGooglePubSubDestination.inputs) @@ -334,7 +362,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - auth, encoding, id, inputs, project, tls, topic, type, additionalProperties); + auth, buffer, encoding, id, inputs, project, tls, topic, type, additionalProperties); } @Override @@ -342,6 +370,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ObservabilityPipelineGooglePubSubDestination {\n"); sb.append(" auth: ").append(toIndentedString(auth)).append("\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMemoryBufferOptions.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMemoryBufferOptions.java new file mode 100644 index 00000000000..e69c41389f1 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMemoryBufferOptions.java @@ -0,0 +1,173 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** Options for configuring a memory buffer by byte size. */ +@JsonPropertyOrder({ + ObservabilityPipelineMemoryBufferOptions.JSON_PROPERTY_MAX_SIZE, + ObservabilityPipelineMemoryBufferOptions.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class ObservabilityPipelineMemoryBufferOptions { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_MAX_SIZE = "max_size"; + private Long maxSize; + + public static final String JSON_PROPERTY_TYPE = "type"; + private ObservabilityPipelineBufferOptionsMemoryType type = + ObservabilityPipelineBufferOptionsMemoryType.MEMORY; + + public ObservabilityPipelineMemoryBufferOptions maxSize(Long maxSize) { + this.maxSize = maxSize; + return this; + } + + /** + * Maximum size of the disk buffer. + * + * @return maxSize + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MAX_SIZE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getMaxSize() { + return maxSize; + } + + public void setMaxSize(Long maxSize) { + this.maxSize = maxSize; + } + + public ObservabilityPipelineMemoryBufferOptions type( + ObservabilityPipelineBufferOptionsMemoryType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * The type of the buffer that will be configured, a memory buffer. + * + * @return type + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptionsMemoryType getType() { + return type; + } + + public void setType(ObservabilityPipelineBufferOptionsMemoryType type) { + if (!type.isValid()) { + this.unparsed = true; + } + this.type = type; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ObservabilityPipelineMemoryBufferOptions + */ + @JsonAnySetter + public ObservabilityPipelineMemoryBufferOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this ObservabilityPipelineMemoryBufferOptions object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ObservabilityPipelineMemoryBufferOptions observabilityPipelineMemoryBufferOptions = + (ObservabilityPipelineMemoryBufferOptions) o; + return Objects.equals(this.maxSize, observabilityPipelineMemoryBufferOptions.maxSize) + && Objects.equals(this.type, observabilityPipelineMemoryBufferOptions.type) + && Objects.equals( + this.additionalProperties, + observabilityPipelineMemoryBufferOptions.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(maxSize, type, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ObservabilityPipelineMemoryBufferOptions {\n"); + sb.append(" maxSize: ").append(toIndentedString(maxSize)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMemoryBufferSizeOptions.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMemoryBufferSizeOptions.java new file mode 100644 index 00000000000..22dc94686e2 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMemoryBufferSizeOptions.java @@ -0,0 +1,174 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** Options for configuring a memory buffer by queue length. */ +@JsonPropertyOrder({ + ObservabilityPipelineMemoryBufferSizeOptions.JSON_PROPERTY_MAX_EVENTS, + ObservabilityPipelineMemoryBufferSizeOptions.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class ObservabilityPipelineMemoryBufferSizeOptions { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_MAX_EVENTS = "max_events"; + private Long maxEvents; + + public static final String JSON_PROPERTY_TYPE = "type"; + private ObservabilityPipelineBufferOptionsMemoryType type = + ObservabilityPipelineBufferOptionsMemoryType.MEMORY; + + public ObservabilityPipelineMemoryBufferSizeOptions maxEvents(Long maxEvents) { + this.maxEvents = maxEvents; + return this; + } + + /** + * Maximum events for the memory buffer. + * + * @return maxEvents + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MAX_EVENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getMaxEvents() { + return maxEvents; + } + + public void setMaxEvents(Long maxEvents) { + this.maxEvents = maxEvents; + } + + public ObservabilityPipelineMemoryBufferSizeOptions type( + ObservabilityPipelineBufferOptionsMemoryType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * The type of the buffer that will be configured, a memory buffer. + * + * @return type + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptionsMemoryType getType() { + return type; + } + + public void setType(ObservabilityPipelineBufferOptionsMemoryType type) { + if (!type.isValid()) { + this.unparsed = true; + } + this.type = type; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return ObservabilityPipelineMemoryBufferSizeOptions + */ + @JsonAnySetter + public ObservabilityPipelineMemoryBufferSizeOptions putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this ObservabilityPipelineMemoryBufferSizeOptions object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ObservabilityPipelineMemoryBufferSizeOptions observabilityPipelineMemoryBufferSizeOptions = + (ObservabilityPipelineMemoryBufferSizeOptions) o; + return Objects.equals(this.maxEvents, observabilityPipelineMemoryBufferSizeOptions.maxEvents) + && Objects.equals(this.type, observabilityPipelineMemoryBufferSizeOptions.type) + && Objects.equals( + this.additionalProperties, + observabilityPipelineMemoryBufferSizeOptions.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(maxEvents, type, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ObservabilityPipelineMemoryBufferSizeOptions {\n"); + sb.append(" maxEvents: ").append(toIndentedString(maxEvents)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineNewRelicDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineNewRelicDestination.java index 014f7edd62a..510c28c4215 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineNewRelicDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineNewRelicDestination.java @@ -21,6 +21,7 @@ /** The new_relic destination sends logs to the New Relic platform. */ @JsonPropertyOrder({ + ObservabilityPipelineNewRelicDestination.JSON_PROPERTY_BUFFER, ObservabilityPipelineNewRelicDestination.JSON_PROPERTY_ID, ObservabilityPipelineNewRelicDestination.JSON_PROPERTY_INPUTS, ObservabilityPipelineNewRelicDestination.JSON_PROPERTY_REGION, @@ -30,6 +31,9 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ObservabilityPipelineNewRelicDestination { @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -61,6 +65,29 @@ public ObservabilityPipelineNewRelicDestination( this.unparsed |= !type.isValid(); } + public ObservabilityPipelineNewRelicDestination buffer( + ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public ObservabilityPipelineNewRelicDestination id(String id) { this.id = id; return this; @@ -213,7 +240,8 @@ public boolean equals(Object o) { } ObservabilityPipelineNewRelicDestination observabilityPipelineNewRelicDestination = (ObservabilityPipelineNewRelicDestination) o; - return Objects.equals(this.id, observabilityPipelineNewRelicDestination.id) + return Objects.equals(this.buffer, observabilityPipelineNewRelicDestination.buffer) + && Objects.equals(this.id, observabilityPipelineNewRelicDestination.id) && Objects.equals(this.inputs, observabilityPipelineNewRelicDestination.inputs) && Objects.equals(this.region, observabilityPipelineNewRelicDestination.region) && Objects.equals(this.type, observabilityPipelineNewRelicDestination.type) @@ -224,13 +252,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(id, inputs, region, type, additionalProperties); + return Objects.hash(buffer, id, inputs, region, type, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ObservabilityPipelineNewRelicDestination {\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineOpenSearchDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineOpenSearchDestination.java index b9d0be60441..831c1b4f29b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineOpenSearchDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineOpenSearchDestination.java @@ -21,6 +21,7 @@ /** The opensearch destination writes logs to an OpenSearch cluster. */ @JsonPropertyOrder({ + ObservabilityPipelineOpenSearchDestination.JSON_PROPERTY_BUFFER, ObservabilityPipelineOpenSearchDestination.JSON_PROPERTY_BULK_INDEX, ObservabilityPipelineOpenSearchDestination.JSON_PROPERTY_ID, ObservabilityPipelineOpenSearchDestination.JSON_PROPERTY_INPUTS, @@ -30,6 +31,9 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ObservabilityPipelineOpenSearchDestination { @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_BULK_INDEX = "bulk_index"; private String bulkIndex; @@ -57,6 +61,29 @@ public ObservabilityPipelineOpenSearchDestination( this.unparsed |= !type.isValid(); } + public ObservabilityPipelineOpenSearchDestination buffer( + ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public ObservabilityPipelineOpenSearchDestination bulkIndex(String bulkIndex) { this.bulkIndex = bulkIndex; return this; @@ -206,7 +233,8 @@ public boolean equals(Object o) { } ObservabilityPipelineOpenSearchDestination observabilityPipelineOpenSearchDestination = (ObservabilityPipelineOpenSearchDestination) o; - return Objects.equals(this.bulkIndex, observabilityPipelineOpenSearchDestination.bulkIndex) + return Objects.equals(this.buffer, observabilityPipelineOpenSearchDestination.buffer) + && Objects.equals(this.bulkIndex, observabilityPipelineOpenSearchDestination.bulkIndex) && Objects.equals(this.id, observabilityPipelineOpenSearchDestination.id) && Objects.equals(this.inputs, observabilityPipelineOpenSearchDestination.inputs) && Objects.equals(this.type, observabilityPipelineOpenSearchDestination.type) @@ -217,13 +245,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(bulkIndex, id, inputs, type, additionalProperties); + return Objects.hash(buffer, bulkIndex, id, inputs, type, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ObservabilityPipelineOpenSearchDestination {\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" bulkIndex: ").append(toIndentedString(bulkIndex)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineRsyslogDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineRsyslogDestination.java index 3a2cd8d24a8..2d9175c988e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineRsyslogDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineRsyslogDestination.java @@ -24,6 +24,7 @@ * over TCP or UDP using the syslog protocol. */ @JsonPropertyOrder({ + ObservabilityPipelineRsyslogDestination.JSON_PROPERTY_BUFFER, ObservabilityPipelineRsyslogDestination.JSON_PROPERTY_ID, ObservabilityPipelineRsyslogDestination.JSON_PROPERTY_INPUTS, ObservabilityPipelineRsyslogDestination.JSON_PROPERTY_KEEPALIVE, @@ -34,6 +35,9 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ObservabilityPipelineRsyslogDestination { @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -64,6 +68,28 @@ public ObservabilityPipelineRsyslogDestination( this.unparsed |= !type.isValid(); } + public ObservabilityPipelineRsyslogDestination buffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public ObservabilityPipelineRsyslogDestination id(String id) { this.id = id; return this; @@ -234,7 +260,8 @@ public boolean equals(Object o) { } ObservabilityPipelineRsyslogDestination observabilityPipelineRsyslogDestination = (ObservabilityPipelineRsyslogDestination) o; - return Objects.equals(this.id, observabilityPipelineRsyslogDestination.id) + return Objects.equals(this.buffer, observabilityPipelineRsyslogDestination.buffer) + && Objects.equals(this.id, observabilityPipelineRsyslogDestination.id) && Objects.equals(this.inputs, observabilityPipelineRsyslogDestination.inputs) && Objects.equals(this.keepalive, observabilityPipelineRsyslogDestination.keepalive) && Objects.equals(this.tls, observabilityPipelineRsyslogDestination.tls) @@ -246,13 +273,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(id, inputs, keepalive, tls, type, additionalProperties); + return Objects.hash(buffer, id, inputs, keepalive, tls, type, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ObservabilityPipelineRsyslogDestination {\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); sb.append(" keepalive: ").append(toIndentedString(keepalive)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSentinelOneDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSentinelOneDestination.java index 01f5acac7ee..2930d209f15 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSentinelOneDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSentinelOneDestination.java @@ -21,6 +21,7 @@ /** The sentinel_one destination sends logs to SentinelOne. */ @JsonPropertyOrder({ + ObservabilityPipelineSentinelOneDestination.JSON_PROPERTY_BUFFER, ObservabilityPipelineSentinelOneDestination.JSON_PROPERTY_ID, ObservabilityPipelineSentinelOneDestination.JSON_PROPERTY_INPUTS, ObservabilityPipelineSentinelOneDestination.JSON_PROPERTY_REGION, @@ -30,6 +31,9 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ObservabilityPipelineSentinelOneDestination { @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -61,6 +65,29 @@ public ObservabilityPipelineSentinelOneDestination( this.unparsed |= !type.isValid(); } + public ObservabilityPipelineSentinelOneDestination buffer( + ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public ObservabilityPipelineSentinelOneDestination id(String id) { this.id = id; return this; @@ -214,7 +241,8 @@ public boolean equals(Object o) { } ObservabilityPipelineSentinelOneDestination observabilityPipelineSentinelOneDestination = (ObservabilityPipelineSentinelOneDestination) o; - return Objects.equals(this.id, observabilityPipelineSentinelOneDestination.id) + return Objects.equals(this.buffer, observabilityPipelineSentinelOneDestination.buffer) + && Objects.equals(this.id, observabilityPipelineSentinelOneDestination.id) && Objects.equals(this.inputs, observabilityPipelineSentinelOneDestination.inputs) && Objects.equals(this.region, observabilityPipelineSentinelOneDestination.region) && Objects.equals(this.type, observabilityPipelineSentinelOneDestination.type) @@ -225,13 +253,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(id, inputs, region, type, additionalProperties); + return Objects.hash(buffer, id, inputs, region, type, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ObservabilityPipelineSentinelOneDestination {\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSocketDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSocketDestination.java index 775a97879fd..7b9faf03f75 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSocketDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSocketDestination.java @@ -21,6 +21,7 @@ /** The socket destination sends logs over TCP or UDP to a remote server. */ @JsonPropertyOrder({ + ObservabilityPipelineSocketDestination.JSON_PROPERTY_BUFFER, ObservabilityPipelineSocketDestination.JSON_PROPERTY_ENCODING, ObservabilityPipelineSocketDestination.JSON_PROPERTY_FRAMING, ObservabilityPipelineSocketDestination.JSON_PROPERTY_ID, @@ -33,6 +34,9 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ObservabilityPipelineSocketDestination { @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_ENCODING = "encoding"; private ObservabilityPipelineSocketDestinationEncoding encoding; @@ -81,6 +85,28 @@ public ObservabilityPipelineSocketDestination( this.unparsed |= !type.isValid(); } + public ObservabilityPipelineSocketDestination buffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public ObservabilityPipelineSocketDestination encoding( ObservabilityPipelineSocketDestinationEncoding encoding) { this.encoding = encoding; @@ -302,7 +328,8 @@ public boolean equals(Object o) { } ObservabilityPipelineSocketDestination observabilityPipelineSocketDestination = (ObservabilityPipelineSocketDestination) o; - return Objects.equals(this.encoding, observabilityPipelineSocketDestination.encoding) + return Objects.equals(this.buffer, observabilityPipelineSocketDestination.buffer) + && Objects.equals(this.encoding, observabilityPipelineSocketDestination.encoding) && Objects.equals(this.framing, observabilityPipelineSocketDestination.framing) && Objects.equals(this.id, observabilityPipelineSocketDestination.id) && Objects.equals(this.inputs, observabilityPipelineSocketDestination.inputs) @@ -315,13 +342,15 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(encoding, framing, id, inputs, mode, tls, type, additionalProperties); + return Objects.hash( + buffer, encoding, framing, id, inputs, mode, tls, type, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ObservabilityPipelineSocketDestination {\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n"); sb.append(" framing: ").append(toIndentedString(framing)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecDestination.java index 3eafb768273..2876a124855 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecDestination.java @@ -25,6 +25,7 @@ */ @JsonPropertyOrder({ ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_AUTO_EXTRACT_TIMESTAMP, + ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_BUFFER, ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_ENCODING, ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_ID, ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_INDEX, @@ -39,6 +40,9 @@ public class ObservabilityPipelineSplunkHecDestination { public static final String JSON_PROPERTY_AUTO_EXTRACT_TIMESTAMP = "auto_extract_timestamp"; private Boolean autoExtractTimestamp; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_ENCODING = "encoding"; private ObservabilityPipelineSplunkHecDestinationEncoding encoding; @@ -95,6 +99,29 @@ public void setAutoExtractTimestamp(Boolean autoExtractTimestamp) { this.autoExtractTimestamp = autoExtractTimestamp; } + public ObservabilityPipelineSplunkHecDestination buffer( + ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public ObservabilityPipelineSplunkHecDestination encoding( ObservabilityPipelineSplunkHecDestinationEncoding encoding) { this.encoding = encoding; @@ -294,6 +321,7 @@ public boolean equals(Object o) { return Objects.equals( this.autoExtractTimestamp, observabilityPipelineSplunkHecDestination.autoExtractTimestamp) + && Objects.equals(this.buffer, observabilityPipelineSplunkHecDestination.buffer) && Objects.equals(this.encoding, observabilityPipelineSplunkHecDestination.encoding) && Objects.equals(this.id, observabilityPipelineSplunkHecDestination.id) && Objects.equals(this.index, observabilityPipelineSplunkHecDestination.index) @@ -308,7 +336,15 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - autoExtractTimestamp, encoding, id, index, inputs, sourcetype, type, additionalProperties); + autoExtractTimestamp, + buffer, + encoding, + id, + index, + inputs, + sourcetype, + type, + additionalProperties); } @Override @@ -318,6 +354,7 @@ public String toString() { sb.append(" autoExtractTimestamp: ") .append(toIndentedString(autoExtractTimestamp)) .append("\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" index: ").append(toIndentedString(index)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSumoLogicDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSumoLogicDestination.java index ae5f61dcbce..4e507743d70 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSumoLogicDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSumoLogicDestination.java @@ -21,6 +21,7 @@ /** The sumo_logic destination forwards logs to Sumo Logic. */ @JsonPropertyOrder({ + ObservabilityPipelineSumoLogicDestination.JSON_PROPERTY_BUFFER, ObservabilityPipelineSumoLogicDestination.JSON_PROPERTY_ENCODING, ObservabilityPipelineSumoLogicDestination.JSON_PROPERTY_HEADER_CUSTOM_FIELDS, ObservabilityPipelineSumoLogicDestination.JSON_PROPERTY_HEADER_HOST_NAME, @@ -34,6 +35,9 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ObservabilityPipelineSumoLogicDestination { @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_ENCODING = "encoding"; private ObservabilityPipelineSumoLogicDestinationEncoding encoding; @@ -74,6 +78,29 @@ public ObservabilityPipelineSumoLogicDestination( this.unparsed |= !type.isValid(); } + public ObservabilityPipelineSumoLogicDestination buffer( + ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public ObservabilityPipelineSumoLogicDestination encoding( ObservabilityPipelineSumoLogicDestinationEncoding encoding) { this.encoding = encoding; @@ -329,7 +356,8 @@ public boolean equals(Object o) { } ObservabilityPipelineSumoLogicDestination observabilityPipelineSumoLogicDestination = (ObservabilityPipelineSumoLogicDestination) o; - return Objects.equals(this.encoding, observabilityPipelineSumoLogicDestination.encoding) + return Objects.equals(this.buffer, observabilityPipelineSumoLogicDestination.buffer) + && Objects.equals(this.encoding, observabilityPipelineSumoLogicDestination.encoding) && Objects.equals( this.headerCustomFields, observabilityPipelineSumoLogicDestination.headerCustomFields) && Objects.equals( @@ -350,6 +378,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + buffer, encoding, headerCustomFields, headerHostName, @@ -365,6 +394,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ObservabilityPipelineSumoLogicDestination {\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n"); sb.append(" headerCustomFields: ").append(toIndentedString(headerCustomFields)).append("\n"); sb.append(" headerHostName: ").append(toIndentedString(headerHostName)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSyslogNgDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSyslogNgDestination.java index b8b70fe8139..ee14088bb89 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSyslogNgDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSyslogNgDestination.java @@ -24,6 +24,7 @@ * over TCP or UDP using the syslog protocol. */ @JsonPropertyOrder({ + ObservabilityPipelineSyslogNgDestination.JSON_PROPERTY_BUFFER, ObservabilityPipelineSyslogNgDestination.JSON_PROPERTY_ID, ObservabilityPipelineSyslogNgDestination.JSON_PROPERTY_INPUTS, ObservabilityPipelineSyslogNgDestination.JSON_PROPERTY_KEEPALIVE, @@ -34,6 +35,9 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ObservabilityPipelineSyslogNgDestination { @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_BUFFER = "buffer"; + private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -64,6 +68,29 @@ public ObservabilityPipelineSyslogNgDestination( this.unparsed |= !type.isValid(); } + public ObservabilityPipelineSyslogNgDestination buffer( + ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + this.unparsed |= buffer.unparsed; + return this; + } + + /** + * Configuration for buffer settings on destination components. + * + * @return buffer + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BUFFER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ObservabilityPipelineBufferOptions getBuffer() { + return buffer; + } + + public void setBuffer(ObservabilityPipelineBufferOptions buffer) { + this.buffer = buffer; + } + public ObservabilityPipelineSyslogNgDestination id(String id) { this.id = id; return this; @@ -234,7 +261,8 @@ public boolean equals(Object o) { } ObservabilityPipelineSyslogNgDestination observabilityPipelineSyslogNgDestination = (ObservabilityPipelineSyslogNgDestination) o; - return Objects.equals(this.id, observabilityPipelineSyslogNgDestination.id) + return Objects.equals(this.buffer, observabilityPipelineSyslogNgDestination.buffer) + && Objects.equals(this.id, observabilityPipelineSyslogNgDestination.id) && Objects.equals(this.inputs, observabilityPipelineSyslogNgDestination.inputs) && Objects.equals(this.keepalive, observabilityPipelineSyslogNgDestination.keepalive) && Objects.equals(this.tls, observabilityPipelineSyslogNgDestination.tls) @@ -246,13 +274,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(id, inputs, keepalive, tls, type, additionalProperties); + return Objects.hash(buffer, id, inputs, keepalive, tls, type, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ObservabilityPipelineSyslogNgDestination {\n"); + sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); sb.append(" keepalive: ").append(toIndentedString(keepalive)).append("\n"); diff --git a/src/test/resources/cassettes/features/v2/Create_a_new_pipeline_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Create_a_new_pipeline_returns_Bad_Request_response.freeze index 73133f1c75e..b835c39be38 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_new_pipeline_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Create_a_new_pipeline_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2025-12-18T16:15:15.575Z \ No newline at end of file +2026-01-06T13:50:00.603Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_a_new_pipeline_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Create_a_new_pipeline_returns_OK_response.freeze index 20165353d5c..f99b046bd97 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_new_pipeline_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Create_a_new_pipeline_returns_OK_response.freeze @@ -1 +1 @@ -2025-12-18T16:15:16.062Z \ No newline at end of file +2026-01-06T13:50:01.032Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_a_new_pipeline_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Create_a_new_pipeline_returns_OK_response.json index 107f907c7e8..18db5c80603 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_new_pipeline_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Create_a_new_pipeline_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"bd8d693c-dc2c-11f0-bf69-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"my-processor-group\"],\"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\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}}\n", + "body": "{\"data\":{\"id\":\"98cbafb2-eb06-11f0-b183-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"my-processor-group\"],\"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\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}}\n", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -33,7 +33,7 @@ "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/bd8d693c-dc2c-11f0-bf69-da7ad0900002", + "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/98cbafb2-eb06-11f0-b183-da7ad0900002", "keepAlive": false, "secure": true }, @@ -52,6 +52,6 @@ "timeToLive": { "unlimited": true }, - "id": "9d38f9f7-007b-c09a-6053-3acbf9ac24b4" + "id": "dadfd386-cf98-3eb2-c662-323a85f80861" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Delete_a_pipeline_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Delete_a_pipeline_returns_Not_Found_response.freeze index 85deda9192b..1a1e0e6af8a 100644 --- a/src/test/resources/cassettes/features/v2/Delete_a_pipeline_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Delete_a_pipeline_returns_Not_Found_response.freeze @@ -1 +1 @@ -2025-12-18T16:15:17.165Z \ No newline at end of file +2026-01-06T13:50:02.108Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Delete_a_pipeline_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Delete_a_pipeline_returns_OK_response.freeze index 201ee9bda87..b0c0cd0458b 100644 --- a/src/test/resources/cassettes/features/v2/Delete_a_pipeline_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Delete_a_pipeline_returns_OK_response.freeze @@ -1 +1 @@ -2025-12-18T16:15:17.716Z \ No newline at end of file +2026-01-06T13:50:02.599Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Delete_a_pipeline_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_a_pipeline_returns_OK_response.json index a2c24593f46..8d386218a55 100644 --- a/src/test/resources/cassettes/features/v2/Delete_a_pipeline_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_a_pipeline_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"be89fea4-dc2c-11f0-bdea-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"display_name\":\"My Processor Group\",\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"display_name\":\"My Filter Processor\",\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}}\n", + "body": "{\"data\":{\"id\":\"99bc2ab4-eb06-11f0-a7ff-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"display_name\":\"My Processor Group\",\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"display_name\":\"My Filter Processor\",\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}}\n", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -33,7 +33,7 @@ "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/be89fea4-dc2c-11f0-bdea-da7ad0900002", + "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/99bc2ab4-eb06-11f0-a7ff-da7ad0900002", "keepAlive": false, "secure": true }, @@ -52,13 +52,13 @@ "timeToLive": { "unlimited": true }, - "id": "2f02fb97-f9e3-4f3a-313a-6d3e4dc210d9" + "id": "3be63d6c-f185-f9b7-3f4d-cceaf102f013" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/be89fea4-dc2c-11f0-bdea-da7ad0900002", + "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/99bc2ab4-eb06-11f0-a7ff-da7ad0900002", "keepAlive": false, "secure": true }, @@ -78,6 +78,6 @@ "timeToLive": { "unlimited": true }, - "id": "2f02fb97-f9e3-4f3a-313a-6d3e4dc210da" + "id": "3be63d6c-f185-f9b7-3f4d-cceaf102f014" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_a_specific_pipeline_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Get_a_specific_pipeline_returns_OK_response.freeze index 2da6d0e5c1d..8a7dea973b4 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_specific_pipeline_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Get_a_specific_pipeline_returns_OK_response.freeze @@ -1 +1 @@ -2025-12-18T16:15:20.018Z \ No newline at end of file +2026-01-06T13:50:04.791Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_a_specific_pipeline_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_a_specific_pipeline_returns_OK_response.json index 7a12e819679..faa32d2d336 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_specific_pipeline_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_a_specific_pipeline_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"bfe664a4-dc2c-11f0-bdec-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"display_name\":\"My Processor Group\",\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"display_name\":\"My Filter Processor\",\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}}\n", + "body": "{\"data\":{\"id\":\"9b06af3e-eb06-11f0-a801-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"display_name\":\"My Processor Group\",\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"display_name\":\"My Filter Processor\",\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}}\n", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -33,12 +33,12 @@ "httpRequest": { "headers": {}, "method": "GET", - "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/bfe664a4-dc2c-11f0-bdec-da7ad0900002", + "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/9b06af3e-eb06-11f0-a801-da7ad0900002", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"bfe664a4-dc2c-11f0-bdec-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"display_name\":\"My Processor Group\",\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"display_name\":\"My Filter Processor\",\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}}\n", + "body": "{\"data\":{\"id\":\"9b06af3e-eb06-11f0-a801-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"display_name\":\"My Processor Group\",\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"display_name\":\"My Filter Processor\",\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}}\n", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -53,13 +53,13 @@ "timeToLive": { "unlimited": true }, - "id": "21f7e5ab-ea39-6e8e-5605-c43a9e3acdd0" + "id": "dfade3e1-aa94-a909-eab0-6e448e5fe470" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/bfe664a4-dc2c-11f0-bdec-da7ad0900002", + "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/9b06af3e-eb06-11f0-a801-da7ad0900002", "keepAlive": false, "secure": true }, @@ -78,6 +78,6 @@ "timeToLive": { "unlimited": true }, - "id": "83781d2a-55f3-79d9-1709-474817512e21" + "id": "d43271d2-45b2-2ad8-0d65-05da2c1be8a5" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/List_pipelines_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/List_pipelines_returns_Bad_Request_response.freeze index a1ae2640d7d..e5c3681b9ae 100644 --- a/src/test/resources/cassettes/features/v2/List_pipelines_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/List_pipelines_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2025-12-18T16:15:22.038Z \ No newline at end of file +2026-01-06T13:50:06.623Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/List_pipelines_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/List_pipelines_returns_OK_response.freeze index fb745af4ce5..1e45abc563f 100644 --- a/src/test/resources/cassettes/features/v2/List_pipelines_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/List_pipelines_returns_OK_response.freeze @@ -1 +1 @@ -2025-12-18T16:15:22.507Z \ No newline at end of file +2026-01-06T13:50:07.036Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/List_pipelines_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_pipelines_returns_OK_response.json index 73cbac72655..183a034329e 100644 --- a/src/test/resources/cassettes/features/v2/List_pipelines_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/List_pipelines_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"c162e83e-dc2c-11f0-bf6b-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"display_name\":\"My Processor Group\",\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"display_name\":\"My Filter Processor\",\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}}\n", + "body": "{\"data\":{\"id\":\"9c5e6732-eb06-11f0-a803-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"display_name\":\"My Processor Group\",\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"display_name\":\"My Filter Processor\",\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}}\n", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -38,7 +38,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":[{\"id\":\"c162e83e-dc2c-11f0-bf6b-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"display_name\":\"My Processor Group\",\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"display_name\":\"My Filter Processor\",\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}],\"meta\":{\"totalCount\":1}}\n", + "body": "{\"data\":[{\"id\":\"4bf478ba-dc68-11f0-87e9-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}},{\"id\":\"a78e416a-de66-11f0-a039-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"http-server-pipeline\",\"config\":{\"destinations\":[{\"id\":\"destination-1\",\"inputs\":[\"http-source-1\"],\"type\":\"datadog_logs\"}],\"processors\":[],\"sources\":[{\"auth_strategy\":\"plain\",\"decoding\":\"json\",\"id\":\"http-source-1\",\"tls\":{\"ca_file\":\"/etc/ssl/certs/ca.crt\",\"crt_file\":\"/etc/ssl/certs/http.crt\",\"key_file\":\"/etc/ssl/private/http.key\"},\"type\":\"http_server\"}]}}},{\"id\":\"a84fd58c-de66-11f0-a03b-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"amazon_s3-source-pipeline\",\"config\":{\"destinations\":[{\"id\":\"destination-1\",\"inputs\":[\"s3-source-1\"],\"type\":\"datadog_logs\"}],\"processors\":[],\"sources\":[{\"auth\":{\"assume_role\":\"arn:aws:iam::123456789012:role/test-role\",\"external_id\":\"external-test-id\",\"session_name\":\"session-test\"},\"id\":\"s3-source-1\",\"region\":\"us-east-1\",\"tls\":{\"ca_file\":\"/etc/ssl/certs/s3.ca\",\"crt_file\":\"/etc/ssl/certs/s3.crt\",\"key_file\":\"/etc/ssl/private/s3.key\"},\"type\":\"amazon_s3\"}]}}},{\"id\":\"a42e22e0-df49-11f0-81d5-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"dedupe pipeline\",\"config\":{\"destinations\":[{\"id\":\"destination-1\",\"inputs\":[\"dedupe-group-2\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"enabled\":true,\"id\":\"dedupe-group-1\",\"include\":\"*\",\"inputs\":[\"source-1\"],\"processors\":[{\"enabled\":true,\"fields\":[\"log.message\",\"log.tags\"],\"id\":\"dedupe-match\",\"include\":\"*\",\"mode\":\"match\",\"type\":\"dedupe\"}]},{\"enabled\":true,\"id\":\"dedupe-group-2\",\"include\":\"*\",\"inputs\":[\"dedupe-group-1\"],\"processors\":[{\"enabled\":true,\"fields\":[\"log.source\",\"log.context\"],\"id\":\"dedupe-ignore\",\"include\":\"*\",\"mode\":\"ignore\",\"type\":\"dedupe\"}]}],\"sources\":[{\"id\":\"source-1\",\"type\":\"datadog_agent\"}]}}},{\"id\":\"2cd3c342-e0c2-11f0-9d34-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"add-fields-pipeline\",\"config\":{\"destinations\":[{\"id\":\"destination-1\",\"inputs\":[\"add-fields-group-1\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"enabled\":true,\"id\":\"add-fields-group-1\",\"include\":\"*\",\"inputs\":[\"source-1\"],\"processors\":[{\"enabled\":true,\"fields\":[{\"name\":\"custom.field\",\"value\":\"hello-world\"},{\"name\":\"env\",\"value\":\"prod\"}],\"id\":\"add-fields-1\",\"include\":\"*\",\"type\":\"add_fields\"}]}],\"sources\":[{\"id\":\"source-1\",\"type\":\"datadog_agent\"}]}}},{\"id\":\"20f4849c-e579-11f0-af79-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"fluent-pipeline\",\"config\":{\"destinations\":[{\"id\":\"destination-1\",\"inputs\":[\"fluent-source-1\"],\"type\":\"datadog_logs\"}],\"processors\":[],\"sources\":[{\"id\":\"fluent-source-1\",\"tls\":{\"ca_file\":\"/etc/ssl/certs/ca.crt\",\"crt_file\":\"/etc/ssl/certs/fluent.crt\",\"key_file\":\"/etc/ssl/private/fluent.key\"},\"type\":\"fluentd\"}]}}},{\"id\":\"15621afe-e669-11f0-bec3-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"display_name\":\"My Processor Group\",\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"display_name\":\"My Filter Processor\",\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}},{\"id\":\"dfbeb25a-e6c1-11f0-9bc1-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"display_name\":\"My Processor Group\",\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"display_name\":\"My Filter Processor\",\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}},{\"id\":\"923fbdb6-e771-11f0-9388-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"http-client pipeline\",\"config\":{\"destinations\":[{\"id\":\"destination-1\",\"inputs\":[\"http-source-1\"],\"type\":\"datadog_logs\"}],\"processors\":[],\"sources\":[{\"auth_strategy\":\"basic\",\"decoding\":\"json\",\"id\":\"http-source-1\",\"scrape_interval_secs\":60,\"scrape_timeout_secs\":10,\"tls\":{\"crt_file\":\"/path/to/http.crt\"},\"type\":\"http_client\"}]}}},{\"id\":\"a7b600ce-e771-11f0-939c-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"newrelic pipeline\",\"config\":{\"destinations\":[{\"id\":\"destination-1\",\"inputs\":[\"source-1\"],\"region\":\"us\",\"type\":\"new_relic\"}],\"processors\":[],\"sources\":[{\"id\":\"source-1\",\"type\":\"datadog_agent\"}]}}},{\"id\":\"306bab4c-e904-11f0-aa8a-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"splunk-hec-pipeline\",\"config\":{\"destinations\":[{\"id\":\"destination-1\",\"inputs\":[\"splunk-hec-source-1\"],\"type\":\"datadog_logs\"}],\"processors\":[],\"sources\":[{\"id\":\"splunk-hec-source-1\",\"tls\":{\"ca_file\":\"/etc/ssl/certs/ca.crt\",\"crt_file\":\"/etc/ssl/certs/splunk.crt\",\"key_file\":\"/etc/ssl/private/splunk.key\"},\"type\":\"splunk_hec\"}]}}},{\"id\":\"51faefca-e922-11f0-a260-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"display_name\":\"My Processor Group\",\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"display_name\":\"My Filter Processor\",\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}},{\"id\":\"8d025dea-ea96-11f0-8a79-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"crowdstrike-next-gen-siem-destination-pipeline-basic\",\"config\":{\"destinations\":[{\"encoding\":\"raw_message\",\"id\":\"crowdstrike-dest-basic-1\",\"inputs\":[\"source-1\"],\"type\":\"crowdstrike_next_gen_siem\"}],\"processors\":[],\"sources\":[{\"id\":\"source-1\",\"type\":\"datadog_agent\"}]}}},{\"id\":\"ed4d493e-eabf-11f0-852d-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"display_name\":\"My Processor Group\",\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"display_name\":\"My Filter Processor\",\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}},{\"id\":\"9c5e6732-eb06-11f0-a803-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"display_name\":\"My Processor Group\",\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"display_name\":\"My Filter Processor\",\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}],\"meta\":{\"totalCount\":15}}\n", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -59,7 +59,7 @@ "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/c162e83e-dc2c-11f0-bf6b-da7ad0900002", + "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/9c5e6732-eb06-11f0-a803-da7ad0900002", "keepAlive": false, "secure": true }, @@ -78,6 +78,6 @@ "timeToLive": { "unlimited": true }, - "id": "d8ab8d62-3a8b-2ffb-b86e-202601f9c376" + "id": "d0da0ba3-5158-e1bb-937a-3bb367118bec" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_Bad_Request_response.freeze index 92a0e9377f0..ef250224cdb 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2025-12-18T16:15:24.455Z \ No newline at end of file +2026-01-06T13:50:09.046Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_Bad_Request_response.json index bb05957ab93..7c21c1d2a86 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_Bad_Request_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"c28a5ad0-dc2c-11f0-bdee-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"display_name\":\"My Processor Group\",\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"display_name\":\"My Filter Processor\",\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}}\n", + "body": "{\"data\":{\"id\":\"9d8eebe0-eb06-11f0-b185-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"display_name\":\"My Processor Group\",\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"display_name\":\"My Filter Processor\",\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}}\n", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -37,7 +37,7 @@ }, "headers": {}, "method": "PUT", - "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/c28a5ad0-dc2c-11f0-bdee-da7ad0900002", + "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/9d8eebe0-eb06-11f0-b185-da7ad0900002", "keepAlive": false, "secure": true }, @@ -57,13 +57,13 @@ "timeToLive": { "unlimited": true }, - "id": "6acef4da-c6d9-3beb-fcdd-2b5a9ed501e8" + "id": "43f27be8-5261-1c1f-3b59-2597914e96ce" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/c28a5ad0-dc2c-11f0-bdee-da7ad0900002", + "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/9d8eebe0-eb06-11f0-b185-da7ad0900002", "keepAlive": false, "secure": true }, @@ -82,6 +82,6 @@ "timeToLive": { "unlimited": true }, - "id": "a5a337ff-4b63-4eb5-2643-23ba383eee73" + "id": "44ac7ae9-9714-d9f2-e13c-b1f3bece7701" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_Not_Found_response.freeze index b083fd34ae0..cea63a87769 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_Not_Found_response.freeze @@ -1 +1 @@ -2025-12-18T16:15:26.411Z \ No newline at end of file +2026-01-06T13:50:10.811Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_OK_response.freeze index b9cbd5fcac4..e9d2e85c6bf 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_OK_response.freeze @@ -1 +1 @@ -2025-12-18T16:15:26.929Z \ No newline at end of file +2026-01-06T13:50:11.272Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_OK_response.json index 817d09683bb..d56db13626b 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"c40401e0-dc2c-11f0-bf6d-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"display_name\":\"My Processor Group\",\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"display_name\":\"My Filter Processor\",\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}}\n", + "body": "{\"data\":{\"id\":\"9ee260d0-eb06-11f0-b187-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Main Observability Pipeline\",\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"processor-group-0\"],\"type\":\"datadog_logs\"}],\"processors\":[{\"display_name\":\"My Processor Group\",\"enabled\":true,\"id\":\"processor-group-0\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"display_name\":\"My Filter Processor\",\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}}\n", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -37,12 +37,12 @@ }, "headers": {}, "method": "PUT", - "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/c40401e0-dc2c-11f0-bf6d-da7ad0900002", + "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/9ee260d0-eb06-11f0-b187-da7ad0900002", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"c40401e0-dc2c-11f0-bf6d-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Updated Pipeline Name\",\"config\":{\"destinations\":[{\"id\":\"updated-datadog-logs-destination-id\",\"inputs\":[\"my-processor-group\"],\"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\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}}\n", + "body": "{\"data\":{\"id\":\"9ee260d0-eb06-11f0-b187-da7ad0900002\",\"type\":\"pipelines\",\"attributes\":{\"name\":\"Updated Pipeline Name\",\"config\":{\"destinations\":[{\"id\":\"updated-datadog-logs-destination-id\",\"inputs\":[\"my-processor-group\"],\"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\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]}}}}\n", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -57,13 +57,13 @@ "timeToLive": { "unlimited": true }, - "id": "2c680eeb-05d9-7617-92c8-d73c172cec9c" + "id": "adc14a9d-aa75-fdca-b7e6-56144191c2de" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/c40401e0-dc2c-11f0-bf6d-da7ad0900002", + "path": "/api/v2/remote_config/products/obs_pipelines/pipelines/9ee260d0-eb06-11f0-b187-da7ad0900002", "keepAlive": false, "secure": true }, @@ -82,6 +82,6 @@ "timeToLive": { "unlimited": true }, - "id": "b1525989-2e82-ec96-14f9-7184147ea0f7" + "id": "0b086be7-4e39-936b-9b90-add69901ba05" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_returns_Bad_Request_response.freeze index 745856e49a6..78ec4833409 100644 --- a/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2025-12-18T16:15:29.179Z \ No newline at end of file +2026-01-06T13:50:14.036Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_returns_OK_response.freeze index ecfcc54162a..8b15ab7629c 100644 --- a/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_returns_OK_response.freeze @@ -1 +1 @@ -2025-12-18T16:15:29.647Z \ No newline at end of file +2026-01-06T13:50:14.439Z \ No newline at end of file