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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44172,8 +44172,14 @@ components:
action:
$ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction'
options:
description: The `ObservabilityPipelineSensitiveDataScannerProcessorActionHash`
`options`.
description: 'Optional settings for the hash action. When omitted or empty,
matched sensitive data is

replaced with a deterministic hashed value that preserves structure for
analytics while

protecting the original content. Reserved for future hash configuration
(for example, algorithm or salt).'
type: object
required:
- action
Expand Down Expand Up @@ -44213,8 +44219,8 @@ components:
count and direction.
properties:
characters:
description: The `ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions`
`characters`.
description: Number of characters to leave visible from the start or end
of the matched value; the rest are redacted.
example: 4
format: int64
type: integer
Expand Down Expand Up @@ -44259,8 +44265,8 @@ components:
description: Configuration for fully redacting sensitive data.
properties:
replace:
description: The `ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions`
`replace`.
description: The string used to replace matched sensitive data (for example,
"***" or "[REDACTED]").
example: '***'
type: string
required:
Expand Down Expand Up @@ -44388,7 +44394,7 @@ components:
scope:
$ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorScope'
tags:
description: Tags assigned to this rule for filtering and classification.
description: Optional tags assigned to this rule for filtering and classification.
example:
- pii
- ccn
Expand All @@ -44397,7 +44403,6 @@ components:
type: array
required:
- name
- tags
- pattern
- scope
- on_match
Expand Down Expand Up @@ -44467,8 +44472,8 @@ components:
description: Fields to which the scope rule applies.
properties:
fields:
description: The `ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions`
`fields`.
description: List of log attribute names (field paths) to which the scope
applies. Only these fields are included in or excluded from pattern matching.
example:
- ''
items:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ def __init__(
:param action: Action type that replaces the matched sensitive data with a hashed representation, preserving structure while securing content.
:type action: ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction

:param options: The ``ObservabilityPipelineSensitiveDataScannerProcessorActionHash`` ``options``.
:param options: Optional settings for the hash action. When omitted or empty, matched sensitive data is
replaced with a deterministic hashed value that preserves structure for analytics while
protecting the original content. Reserved for future hash configuration (for example, algorithm or salt).
:type options: dict, optional
"""
if options is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(
"""
Controls how partial redaction is applied, including character count and direction.

:param characters: The ``ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions`` ``characters``.
:param characters: Number of characters to leave visible from the start or end of the matched value; the rest are redacted.
:type characters: int

:param direction: Indicates whether to redact characters from the first or last part of the matched value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self_, replace: str, **kwargs):
"""
Configuration for fully redacting sensitive data.

:param replace: The ``ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions`` ``replace``.
:param replace: The string used to replace matched sensitive data (for example, "***" or "[REDACTED]").
:type replace: str
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ def __init__(
ObservabilityPipelineSensitiveDataScannerProcessorScopeExclude,
ObservabilityPipelineSensitiveDataScannerProcessorScopeAll,
],
tags: List[str],
keyword_options: Union[ObservabilityPipelineSensitiveDataScannerProcessorKeywordOptions, UnsetType] = unset,
tags: Union[List[str], UnsetType] = unset,
**kwargs,
):
"""
Expand All @@ -128,15 +128,16 @@ def __init__(
:param scope: Determines which parts of the log the pattern-matching rule should be applied to.
:type scope: ObservabilityPipelineSensitiveDataScannerProcessorScope

:param tags: Tags assigned to this rule for filtering and classification.
:type tags: [str]
:param tags: Optional tags assigned to this rule for filtering and classification.
:type tags: [str], optional
"""
if keyword_options is not unset:
kwargs["keyword_options"] = keyword_options
if tags is not unset:
kwargs["tags"] = tags
super().__init__(kwargs)

self_.name = name
self_.on_match = on_match
self_.pattern = pattern
self_.scope = scope
self_.tags = tags
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self_, fields: List[str], **kwargs):
"""
Fields to which the scope rule applies.

:param fields: The ``ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions`` ``fields``.
:param fields: List of log attribute names (field paths) to which the scope applies. Only these fields are included in or excluded from pattern matching.
:type fields: [str]
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2026-02-18T16:57:05.121Z
2026-01-07T12:38:45.716Z
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ interactions:
uri: https://api.datadoghq.com/api/v2/synthetics/suites
response:
body:
string: '{"data":{"type":"suites","attributes":{"type":"suite","monitor_id":259845717,"name":"Example
suite name","options":{},"tests":[],"tags":["env:production"],"public_id":"hik-xp5-9q6","created_at":"2026-02-18T16:57:05.583051+00:00","modified_at":"2026-02-18T16:57:05.583051+00:00","created_by":{"name":"Corentin
Girard","email":"corentin.girard@datadoghq.com","handle":"corentin.girard@datadoghq.com"},"message":"Notification
message","org_id":321813,"modified_by":{"name":"Corentin Girard","email":"corentin.girard@datadoghq.com","handle":"corentin.girard@datadoghq.com"}},"id":"hik-xp5-9q6"}}
string: '{"data":{"type":"suites","id":"36n-bb6-njj","attributes":{"tags":["env:production"],"type":"suite","created_by":{"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI
Account"},"created_at":"2026-01-07T12:38:46.109472+00:00","modified_at":"2026-01-07T12:38:46.109472+00:00","message":"Notification
message","public_id":"36n-bb6-njj","options":{},"modified_by":{"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI
Account"},"tests":[],"name":"Example suite name","org_id":321813,"monitor_id":249141773}}}

'
headers:
Expand All @@ -24,7 +24,7 @@ interactions:
code: 200
message: OK
- request:
body: '{"data":{"attributes":{"public_ids":["hik-xp5-9q6"]},"type":"delete_suites_request"}}'
body: '{"data":{"attributes":{"public_ids":["36n-bb6-njj"]},"type":"delete_suites_request"}}'
headers:
accept:
- application/json
Expand All @@ -34,7 +34,8 @@ interactions:
uri: https://api.datadoghq.com/api/v2/synthetics/suites/bulk-delete
response:
body:
string: '{"data":[{"type":"suites","attributes":{"deleted_at":"2026-02-18 16:57:06.420679","public_id":"hik-xp5-9q6"},"id":"hik-xp5-9q6"}]}
string: '{"data":[{"type":"suites","attributes":{"public_id":"36n-bb6-njj","deleted_at":"2026-01-07
12:38:46.679914"},"id":"36n-bb6-njj"}]}

'
headers:
Expand Down
Loading