1
0
mirror of synced 2025-12-25 02:09:19 -05:00

🎉 New Source: Datadog [python cdk] (#18150)

* New Source: Datadog

* Updating doc

* Adding unit tests

* Renaming limit var

* Updating description in spec

* add source def to seed

* add datadog to source def seed

* run format

* auto-bump connector version

Co-authored-by: marcosmarxm <marcosmarxm@gmail.com>
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
This commit is contained in:
Mario Molina
2022-11-03 07:46:31 -06:00
committed by GitHub
parent c12897fe30
commit f49beff48d
37 changed files with 2138 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
#
# Copyright (c) 2022 Airbyte, Inc., all rights reserved.
#

View File

@@ -0,0 +1,5 @@
{
"logs": {
"sync_date": "2024-10-10T00:10:00Z"
}
}

View File

@@ -0,0 +1,14 @@
#
# Copyright (c) 2022 Airbyte, Inc., all rights reserved.
#
import pytest
pytest_plugins = ("source_acceptance_test.plugin",)
@pytest.fixture(scope="session", autouse=True)
def connector_setup():
"""This fixture is a placeholder for external resources that acceptance test might require."""
yield

View File

@@ -0,0 +1,73 @@
{
"streams": [
{
"stream": {
"name": "dashboards",
"json_schema": {},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "downtimes",
"json_schema": {},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "incident_teams",
"json_schema": {},
"supported_sync_modes": ["full_refresh"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "logs",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["sync_date"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"cursor_field": ["sync_date"],
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "metrics",
"json_schema": {},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "synthetic_tests",
"json_schema": {},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "users",
"json_schema": {},
"supported_sync_modes": ["full_refresh"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
}
]
}

View File

@@ -0,0 +1,17 @@
{
"streams": [
{
"stream": {
"name": "logs",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["sync_date"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "incremental",
"cursor_field": ["sync_date"],
"destination_sync_mode": "append"
}
]
}

View File

@@ -0,0 +1,7 @@
{
"api_key": "<api_key>",
"application_key": "<api_key>",
"query": "sample query",
"limit": 100,
"start_date": "2222-10-10T00:00:00Z"
}

View File

@@ -0,0 +1,8 @@
{
"api_key": "<api_key>",
"application_key": "<api_key>",
"query": "sample query",
"limit": 100,
"start_date": "2022-10-10T00:00:00Z",
"end_date": "2022-10-10T00:10:00Z"
}