1
0
mirror of synced 2025-12-19 18:14:56 -05:00

🐛 Source Datadog : Fix the Pagination in the logs stream (#54180)

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
This commit is contained in:
Vignesh S
2025-02-20 14:39:55 -08:00
committed by GitHub
parent fc80e61358
commit 7abac4a91c
3 changed files with 20 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
version: 5.16.0 version: 6.33.4
type: DeclarativeSource type: DeclarativeSource
@@ -34,8 +34,8 @@ definitions:
type: DefaultPaginator type: DefaultPaginator
page_token_option: page_token_option:
type: RequestOption type: RequestOption
inject_into: request_parameter
field_name: page[cursor] field_name: page[cursor]
inject_into: request_parameter
pagination_strategy: pagination_strategy:
type: CursorPagination type: CursorPagination
cursor_value: >- cursor_value: >-
@@ -144,8 +144,8 @@ definitions:
type: DefaultPaginator type: DefaultPaginator
page_token_option: page_token_option:
type: RequestOption type: RequestOption
inject_into: request_parameter
field_name: page[offset] field_name: page[offset]
inject_into: request_parameter
pagination_strategy: pagination_strategy:
type: CursorPagination type: CursorPagination
cursor_value: >- cursor_value: >-
@@ -195,15 +195,12 @@ definitions:
paginator: paginator:
type: DefaultPaginator type: DefaultPaginator
page_token_option: page_token_option:
type: RequestOption type: RequestPath
inject_into: request_parameter
field_name: page[cursor]
pagination_strategy: pagination_strategy:
type: CursorPagination type: CursorPagination
cursor_value: >- page_size: 1000
{{ last_record['meta']['page']['after'] if last_record else None cursor_value: "{{ response.get(\"links\", {}).get(\"next\", {}) }}"
}} stop_condition: "{{ not response.get(\"links\", {}).get(\"next\", {}) }}"
stop_condition: "{{ 'page' not in last_record['meta'] }}"
incremental_sync: incremental_sync:
type: DatetimeBasedCursor type: DatetimeBasedCursor
cursor_field: sync_date cursor_field: sync_date
@@ -356,12 +353,12 @@ definitions:
type: DefaultPaginator type: DefaultPaginator
page_token_option: page_token_option:
type: RequestOption type: RequestOption
inject_into: request_parameter
field_name: page[number] field_name: page[number]
inject_into: request_parameter
page_size_option: page_size_option:
type: RequestOption type: RequestOption
inject_into: request_parameter
field_name: page[size] field_name: page[size]
inject_into: request_parameter
pagination_strategy: pagination_strategy:
type: PageIncrement type: PageIncrement
page_size: 100 page_size: 100
@@ -429,10 +426,10 @@ spec:
syncs. syncs.
order: 3 order: 3
title: Start date title: Start date
default: "2023-12-01T00:00:00Z"
pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$ pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$
examples: examples:
- "2022-10-01T00:00:00Z" - "2022-10-01T00:00:00Z"
default: "2023-12-01T00:00:00Z"
site: site:
type: string type: string
description: The site where Datadog data resides in. description: The site where Datadog data resides in.
@@ -454,10 +451,10 @@ spec:
syncs. syncs.
order: 5 order: 5
title: End date title: End date
default: "2024-01-01T00:00:00Z"
pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$ pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$
examples: examples:
- "2022-10-01T00:00:00Z" - "2022-10-01T00:00:00Z"
default: "2024-01-01T00:00:00Z"
max_records_per_request: max_records_per_request:
type: integer type: integer
description: Maximum number of records to collect per request. description: Maximum number of records to collect per request.
@@ -516,12 +513,12 @@ metadata:
users: false users: false
testedStreams: testedStreams:
audit_logs: audit_logs:
hasRecords: true
streamHash: 4938d5b333c624c8f301eac284c5a174d944f466 streamHash: 4938d5b333c624c8f301eac284c5a174d944f466
hasResponse: true hasResponse: true
responsesAreSuccessful: true
hasRecords: true
primaryKeysArePresent: true
primaryKeysAreUnique: true primaryKeysAreUnique: true
primaryKeysArePresent: true
responsesAreSuccessful: true
dashboards: dashboards:
hasRecords: true hasRecords: true
streamHash: 277a1ea39fde86d246bc648ae60ff3b8ebd8ec41 streamHash: 277a1ea39fde86d246bc648ae60ff3b8ebd8ec41
@@ -551,12 +548,12 @@ metadata:
primaryKeysArePresent: true primaryKeysArePresent: true
responsesAreSuccessful: true responsesAreSuccessful: true
logs: logs:
streamHash: 6c2d948af333d7285c98d4f6776d79ff50310acb hasRecords: true
streamHash: ec198a7eb4754773f1778c2b338ab477cf666ea6
hasResponse: true hasResponse: true
responsesAreSuccessful: true
hasRecords: false
primaryKeysArePresent: true
primaryKeysAreUnique: true primaryKeysAreUnique: true
primaryKeysArePresent: true
responsesAreSuccessful: true
metrics: metrics:
hasRecords: true hasRecords: true
streamHash: f4ec990f551bab54c17838ed70867b1ec35f43e5 streamHash: f4ec990f551bab54c17838ed70867b1ec35f43e5

View File

@@ -26,7 +26,7 @@ data:
connectorSubtype: api connectorSubtype: api
connectorType: source connectorType: source
definitionId: 1cfc30c7-82db-43f4-9fd7-ac1b42312cda definitionId: 1cfc30c7-82db-43f4-9fd7-ac1b42312cda
dockerImageTag: 2.0.11 dockerImageTag: 2.0.12
dockerRepository: airbyte/source-datadog dockerRepository: airbyte/source-datadog
githubIssueLabel: source-datadog githubIssueLabel: source-datadog
icon: datadog.svg icon: datadog.svg

View File

@@ -76,6 +76,7 @@ The Datadog source connector supports the following [sync modes](https://docs.ai
| Version | Date | Pull Request | Subject | | Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------------------------| |:--------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------------------------|
| 2.0.12 | 2025-02-20 | [54180](https://github.com/airbytehq/airbyte/pull/54180) | 🐛 Source Datadog : Fix the Pagination in the logs stream |
| 2.0.11 | 2025-02-15 | [53705](https://github.com/airbytehq/airbyte/pull/53705) | Update dependencies | | 2.0.11 | 2025-02-15 | [53705](https://github.com/airbytehq/airbyte/pull/53705) | Update dependencies |
| 2.0.10 | 2025-02-08 | [53382](https://github.com/airbytehq/airbyte/pull/53382) | Update dependencies | | 2.0.10 | 2025-02-08 | [53382](https://github.com/airbytehq/airbyte/pull/53382) | Update dependencies |
| 2.0.9 | 2025-02-01 | [52866](https://github.com/airbytehq/airbyte/pull/52866) | Update dependencies | | 2.0.9 | 2025-02-01 | [52866](https://github.com/airbytehq/airbyte/pull/52866) | Update dependencies |