Skip to content

Commit 0bccc00

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9dfc165 of spec repo
1 parent 982c187 commit 0bccc00

12 files changed

Lines changed: 403 additions & 40 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 76 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55624,6 +55624,7 @@ components:
5562455624
- $ref: "#/components/schemas/ObservabilityPipelineSyslogNgDestination"
5562555625
- $ref: "#/components/schemas/ObservabilityPipelineDatabricksZerobusDestination"
5562655626
- $ref: "#/components/schemas/ObservabilityPipelineDatadogMetricsDestination"
55627+
- $ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestination"
5562755628
ObservabilityPipelineConfigPipelineType:
5562855629
default: logs
5562955630
description: The type of data being ingested. Defaults to `logs` if not specified.
@@ -59745,6 +59746,81 @@ components:
5974559746
type: string
5974659747
x-enum-varnames:
5974759748
- SPLUNK_HEC
59749+
ObservabilityPipelineSplunkHecMetricsDestination:
59750+
description: |-
59751+
The `splunk_hec_metrics` destination forwards metrics to Splunk using the HTTP Event Collector (HEC).
59752+
59753+
**Supported pipeline types:** metrics
59754+
properties:
59755+
buffer:
59756+
$ref: "#/components/schemas/ObservabilityPipelineBufferOptions"
59757+
compression:
59758+
$ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestinationCompression"
59759+
default_namespace:
59760+
description: Optional default namespace for metrics sent to Splunk HEC.
59761+
example: "custom_namespace"
59762+
type: string
59763+
endpoint_url_key:
59764+
description: Name of the environment variable or secret that holds the Splunk HEC endpoint URL.
59765+
example: SPLUNK_HEC_ENDPOINT_URL
59766+
type: string
59767+
id:
59768+
description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
59769+
example: splunk-hec-metrics-destination
59770+
type: string
59771+
index:
59772+
description: Optional name of the Splunk index where metrics are written.
59773+
example: "metrics"
59774+
type: string
59775+
inputs:
59776+
description: A list of component IDs whose output is used as the `input` for this component.
59777+
example: ["metrics-filter-processor"]
59778+
items:
59779+
description: The ID of a component whose output is used as input for this destination.
59780+
type: string
59781+
type: array
59782+
source:
59783+
description: The Splunk source field value for metric events.
59784+
example: "observability_pipelines"
59785+
type: string
59786+
sourcetype:
59787+
description: The Splunk sourcetype to assign to metric events.
59788+
example: "custom_sourcetype"
59789+
type: string
59790+
tls:
59791+
$ref: "#/components/schemas/ObservabilityPipelineTls"
59792+
token_key:
59793+
description: Name of the environment variable or secret that holds the Splunk HEC token.
59794+
example: SPLUNK_HEC_TOKEN
59795+
type: string
59796+
type:
59797+
$ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestinationType"
59798+
required:
59799+
- id
59800+
- type
59801+
- inputs
59802+
type: object
59803+
x-pipeline-types: [metrics]
59804+
ObservabilityPipelineSplunkHecMetricsDestinationCompression:
59805+
default: none
59806+
description: Compression algorithm applied when sending metrics to Splunk HEC.
59807+
enum:
59808+
- none
59809+
- gzip
59810+
example: none
59811+
type: string
59812+
x-enum-varnames:
59813+
- NONE
59814+
- GZIP
59815+
ObservabilityPipelineSplunkHecMetricsDestinationType:
59816+
default: splunk_hec_metrics
59817+
description: The destination type. Always `splunk_hec_metrics`.
59818+
enum:
59819+
- splunk_hec_metrics
59820+
example: splunk_hec_metrics
59821+
type: string
59822+
x-enum-varnames:
59823+
- SPLUNK_HEC_METRICS
5974859824
ObservabilityPipelineSplunkHecSource:
5974959825
description: |-
5975059826
The `splunk_hec` source implements the Splunk HTTP Event Collector (HEC) API.
@@ -146686,9 +146762,6 @@ paths:
146686146762
permissions:
146687146763
- security_monitoring_findings_write
146688146764
- appsec_vm_write
146689-
x-unstable: |-
146690-
**Note**: This endpoint is in preview and is subject to change.
146691-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
146692146765
/api/v2/security/findings/search:
146693146766
post:
146694146767
description: |-

examples/v2/security-monitoring/MuteSecurityFindings.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Mute or unmute security findings returns "Accepted" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.mute_security_findings".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
85

96
body = DatadogAPIClient::V2::MuteFindingsRequest.new({

examples/v2/security-monitoring/MuteSecurityFindings_298521544.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Unmute security findings returns "Accepted" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.mute_security_findings".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
85

96
body = DatadogAPIClient::V2::MuteFindingsRequest.new({

examples/v2/security-monitoring/MuteSecurityFindings_3830190821.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Mute security findings returns "Accepted" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.mute_security_findings".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
85

96
body = DatadogAPIClient::V2::MuteFindingsRequest.new({

features/v2/security_monitoring.feature

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2300,56 +2300,49 @@ Feature: Security Monitoring
23002300

23012301
@generated @skip @team:DataDog/k9-investigation
23022302
Scenario: Mute or unmute security findings returns "Accepted" response
2303-
Given operation "MuteSecurityFindings" enabled
2304-
And new "MuteSecurityFindings" request
2303+
Given new "MuteSecurityFindings" request
23052304
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "PENDING_FIX"}}, "id": "00000000-0000-0000-0000-000000000001", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
23062305
When the request is sent
23072306
Then the response status is 202 Accepted
23082307

23092308
@generated @skip @team:DataDog/k9-investigation
23102309
Scenario: Mute or unmute security findings returns "Bad Request" response
2311-
Given operation "MuteSecurityFindings" enabled
2312-
And new "MuteSecurityFindings" request
2310+
Given new "MuteSecurityFindings" request
23132311
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "PENDING_FIX"}}, "id": "00000000-0000-0000-0000-000000000001", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
23142312
When the request is sent
23152313
Then the response status is 400 Bad Request
23162314

23172315
@generated @skip @team:DataDog/k9-investigation
23182316
Scenario: Mute or unmute security findings returns "Not Found" response
2319-
Given operation "MuteSecurityFindings" enabled
2320-
And new "MuteSecurityFindings" request
2317+
Given new "MuteSecurityFindings" request
23212318
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "PENDING_FIX"}}, "id": "00000000-0000-0000-0000-000000000001", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
23222319
When the request is sent
23232320
Then the response status is 404 Not Found
23242321

23252322
@generated @skip @team:DataDog/k9-investigation
23262323
Scenario: Mute or unmute security findings returns "Unprocessable Entity" response
2327-
Given operation "MuteSecurityFindings" enabled
2328-
And new "MuteSecurityFindings" request
2324+
Given new "MuteSecurityFindings" request
23292325
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "PENDING_FIX"}}, "id": "00000000-0000-0000-0000-000000000001", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
23302326
When the request is sent
23312327
Then the response status is 422 Unprocessable Entity
23322328

23332329
@team:DataDog/k9-investigation
23342330
Scenario: Mute security findings returns "Accepted" response
2335-
Given operation "MuteSecurityFindings" enabled
2336-
And new "MuteSecurityFindings" request
2331+
Given new "MuteSecurityFindings" request
23372332
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "RISK_ACCEPTED"}}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwMC0wYmd-MDE4NjcyMDJkMzE4MDE5ODY5MGE4ZmQ2MmFlMjg0Y2M=", "type": "findings"}]}}, "type": "mute"}}
23382333
When the request is sent
23392334
Then the response status is 202 Accepted
23402335

23412336
@team:DataDog/k9-investigation
23422337
Scenario: Mute security findings returns "Not Found" response
2343-
Given operation "MuteSecurityFindings" enabled
2344-
And new "MuteSecurityFindings" request
2338+
Given new "MuteSecurityFindings" request
23452339
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "RISK_ACCEPTED"}}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
23462340
When the request is sent
23472341
Then the response status is 404 Not Found
23482342

23492343
@team:DataDog/k9-investigation
23502344
Scenario: Mute security findings returns "Unprocessable Entity" response
2351-
Given operation "MuteSecurityFindings" enabled
2352-
And new "MuteSecurityFindings" request
2345+
Given new "MuteSecurityFindings" request
23532346
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1, "is_muted": true, "reason": "RISK_ACCEPTED"}}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
23542347
When the request is sent
23552348
Then the response status is 422 Unprocessable Entity
@@ -2573,24 +2566,21 @@ Feature: Security Monitoring
25732566

25742567
@team:DataDog/k9-investigation
25752568
Scenario: Unmute security findings returns "Accepted" response
2576-
Given operation "MuteSecurityFindings" enabled
2577-
And new "MuteSecurityFindings" request
2569+
Given new "MuteSecurityFindings" request
25782570
And body with value {"data": {"attributes": {"mute": {"description": "Resolved.", "is_muted": false, "reason": "NO_PENDING_FIX"}}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwMC0wYmd-MDE4NjcyMDJkMzE4MDE5ODY5MGE4ZmQ2MmFlMjg0Y2M=", "type": "findings"}]}}, "type": "mute"}}
25792571
When the request is sent
25802572
Then the response status is 202 Accepted
25812573

25822574
@team:DataDog/k9-investigation
25832575
Scenario: Unmute security findings returns "Not Found" response
2584-
Given operation "MuteSecurityFindings" enabled
2585-
And new "MuteSecurityFindings" request
2576+
Given new "MuteSecurityFindings" request
25862577
And body with value {"data": {"attributes": {"mute": {"description": "Resolved.", "is_muted": false, "reason": "NO_PENDING_FIX"}}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
25872578
When the request is sent
25882579
Then the response status is 404 Not Found
25892580

25902581
@team:DataDog/k9-investigation
25912582
Scenario: Unmute security findings returns "Unprocessable Entity" response
2592-
Given operation "MuteSecurityFindings" enabled
2593-
And new "MuteSecurityFindings" request
2583+
Given new "MuteSecurityFindings" request
25942584
And body with value {"data": {"attributes": {"mute": {"description": "Resolved.", "is_muted": false, "reason": "RISK_ACCEPTED"}}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
25952585
When the request is sent
25962586
Then the response status is 422 Unprocessable Entity

lib/datadog_api_client/configuration.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,6 @@ def initialize
363363
"v2.list_vulnerabilities": false,
364364
"v2.list_vulnerable_assets": false,
365365
"v2.mute_findings": false,
366-
"v2.mute_security_findings": false,
367366
"v2.run_historical_job": false,
368367
"v2.search_security_monitoring_histsignals": false,
369368
"v2.update_security_monitoring_dataset": false,

lib/datadog_api_client/inflector.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4732,6 +4732,9 @@ def overrides
47324732
"v2.observability_pipeline_splunk_hec_destination_encoding" => "ObservabilityPipelineSplunkHecDestinationEncoding",
47334733
"v2.observability_pipeline_splunk_hec_destination_token_strategy" => "ObservabilityPipelineSplunkHecDestinationTokenStrategy",
47344734
"v2.observability_pipeline_splunk_hec_destination_type" => "ObservabilityPipelineSplunkHecDestinationType",
4735+
"v2.observability_pipeline_splunk_hec_metrics_destination" => "ObservabilityPipelineSplunkHecMetricsDestination",
4736+
"v2.observability_pipeline_splunk_hec_metrics_destination_compression" => "ObservabilityPipelineSplunkHecMetricsDestinationCompression",
4737+
"v2.observability_pipeline_splunk_hec_metrics_destination_type" => "ObservabilityPipelineSplunkHecMetricsDestinationType",
47354738
"v2.observability_pipeline_splunk_hec_source" => "ObservabilityPipelineSplunkHecSource",
47364739
"v2.observability_pipeline_splunk_hec_source_type" => "ObservabilityPipelineSplunkHecSourceType",
47374740
"v2.observability_pipeline_splunk_hec_source_valid_token" => "ObservabilityPipelineSplunkHecSourceValidToken",

lib/datadog_api_client/v2/api/security_monitoring_api.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8009,12 +8009,6 @@ def mute_security_findings(body, opts = {})
80098009
# @param opts [Hash] the optional parameters
80108010
# @return [Array<(MuteFindingsResponse, Integer, Hash)>] MuteFindingsResponse data, response status code and response headers
80118011
def mute_security_findings_with_http_info(body, opts = {})
8012-
unstable_enabled = @api_client.config.unstable_operations["v2.mute_security_findings".to_sym]
8013-
if unstable_enabled
8014-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.mute_security_findings")
8015-
else
8016-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.mute_security_findings"))
8017-
end
80188012

80198013
if @api_client.config.debugging
80208014
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.mute_security_findings ...'

lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ def openapi_one_of
5050
:'ObservabilityPipelineSumoLogicDestination',
5151
:'ObservabilityPipelineSyslogNgDestination',
5252
:'ObservabilityPipelineDatabricksZerobusDestination',
53-
:'ObservabilityPipelineDatadogMetricsDestination'
53+
:'ObservabilityPipelineDatadogMetricsDestination',
54+
:'ObservabilityPipelineSplunkHecMetricsDestination'
5455
]
5556
end
5657
# Builds the object

0 commit comments

Comments
 (0)