Skip to content

Commit 0bf59c2

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Observability Pipelines - Updating descriptions and making the tags field optional not required (#3038)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 61d3742 commit 0bf59c2

6 files changed

Lines changed: 14 additions & 21 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44218,7 +44218,10 @@ components:
4421844218
action:
4421944219
$ref: "#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction"
4422044220
options:
44221-
description: The `ObservabilityPipelineSensitiveDataScannerProcessorActionHash` `options`.
44221+
description: |-
44222+
Optional settings for the hash action. When omitted or empty, matched sensitive data is
44223+
replaced with a deterministic hashed value that preserves structure for analytics while
44224+
protecting the original content. Reserved for future hash configuration (for example, algorithm or salt).
4422244225
type: object
4422344226
required: [action]
4422444227
type: object
@@ -44249,7 +44252,7 @@ components:
4424944252
description: Controls how partial redaction is applied, including character count and direction.
4425044253
properties:
4425144254
characters:
44252-
description: The `ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions` `characters`.
44255+
description: Number of characters to leave visible from the start or end of the matched value; the rest are redacted.
4425344256
example: 4
4425444257
format: int64
4425544258
type: integer
@@ -44285,7 +44288,7 @@ components:
4428544288
description: Configuration for fully redacting sensitive data.
4428644289
properties:
4428744290
replace:
44288-
description: The `ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions` `replace`.
44291+
description: The string used to replace matched sensitive data (for example, "***" or "[REDACTED]").
4428944292
example: "***"
4429044293
type: string
4429144294
required: [replace]
@@ -44395,7 +44398,6 @@ components:
4439544398
type: array
4439644399
required:
4439744400
- name
44398-
- tags
4439944401
- pattern
4440044402
- scope
4440144403
- on_match
@@ -44456,7 +44458,7 @@ components:
4445644458
description: Fields to which the scope rule applies.
4445744459
properties:
4445844460
fields:
44459-
description: The `ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions` `fields`.
44461+
description: List of log attribute names (field paths) to which the scope applies. Only these fields are included in or excluded from pattern matching.
4446044462
example:
4446144463
- ""
4446244464
items:

lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_hash.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ class ObservabilityPipelineSensitiveDataScannerProcessorActionHash
2424
# Action type that replaces the matched sensitive data with a hashed representation, preserving structure while securing content.
2525
attr_reader :action
2626

27-
# The `ObservabilityPipelineSensitiveDataScannerProcessorActionHash` `options`.
27+
# Optional settings for the hash action. When omitted or empty, matched sensitive data is
28+
# replaced with a deterministic hashed value that preserves structure for analytics while
29+
# protecting the original content. Reserved for future hash configuration (for example, algorithm or salt).
2830
attr_accessor :options
2931

3032
attr_accessor :additional_properties

lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
2121
class ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions
2222
include BaseGenericModel
2323

24-
# The `ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions` `characters`.
24+
# Number of characters to leave visible from the start or end of the matched value; the rest are redacted.
2525
attr_reader :characters
2626

2727
# Indicates whether to redact characters from the first or last part of the matched value.

lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_redact_options.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
2121
class ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions
2222
include BaseGenericModel
2323

24-
# The `ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions` `replace`.
24+
# The string used to replace matched sensitive data (for example, "***" or "[REDACTED]").
2525
attr_reader :replace
2626

2727
attr_accessor :additional_properties

lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_rule.rb

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ObservabilityPipelineSensitiveDataScannerProcessorRule
3737
attr_reader :scope
3838

3939
# Tags assigned to this rule for filtering and classification.
40-
attr_reader :tags
40+
attr_accessor :tags
4141

4242
attr_accessor :additional_properties
4343

@@ -120,7 +120,6 @@ def valid?
120120
return false if @on_match.nil?
121121
return false if @pattern.nil?
122122
return false if @scope.nil?
123-
return false if @tags.nil?
124123
true
125124
end
126125

@@ -164,16 +163,6 @@ def scope=(scope)
164163
@scope = scope
165164
end
166165

167-
# Custom attribute writer method with validation
168-
# @param tags [Object] Object to be assigned
169-
# @!visibility private
170-
def tags=(tags)
171-
if tags.nil?
172-
fail ArgumentError, 'invalid value for "tags", tags cannot be nil.'
173-
end
174-
@tags = tags
175-
end
176-
177166
# Returns the object in the form of hash, with additionalProperties support.
178167
# @return [Hash] Returns the object in the form of hash
179168
# @!visibility private

lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_options.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
2121
class ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions
2222
include BaseGenericModel
2323

24-
# The `ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions` `fields`.
24+
# List of log attribute names (field paths) to which the scope applies. Only these fields are included in or excluded from pattern matching.
2525
attr_reader :fields
2626

2727
attr_accessor :additional_properties

0 commit comments

Comments
 (0)