aidan
04/28/2023, 7:49 PMkapa.ai
04/28/2023, 7:49 PMkapa.ai
04/28/2023, 7:49 PMaidan
04/28/2023, 8:09 PMAlexandre Girard (Airbyte)
04/28/2023, 8:51 PMAlexandre Girard (Airbyte)
04/28/2023, 9:13 PMaidan
04/28/2023, 10:19 PMAlexandre Girard (Airbyte)
04/28/2023, 11:42 PMappend_dedup
aidan
04/29/2023, 1:30 AMAlexandre Girard (Airbyte)
04/29/2023, 2:12 AMstream_slice['end_time']
You'll also need to set the end time to {{ day_delta(-1) }}
eg
/exchangerates_data/{{ stream_slice['end_time'] }}
aidan
04/29/2023, 8:43 AMaidan
04/29/2023, 11:39 AMversion: 0.35.0
type: DeclarativeSource
check:
type: CheckStream
stream_names:
- DCM
streams:
- type: DeclarativeStream
name: DCM
primary_key: []
schema_loader:
type: InlineSchemaLoader
schema:
$schema: <http://json-schema.org/schema#|http://json-schema.org/schema#>
properties:
activity:
type: string
campaign:
type: string
clicks:
type: integer
date:
type: string
dbM_Cost_USD:
type: number
impressions:
type: integer
platform_Type:
type: string
total_Conversions_Cross_Environment:
type: integer
video_Completions:
type: integer
type: object
retriever:
type: SimpleRetriever
requester:
type: HttpRequester
url_base: <https://omdigitaldataapi.oceanmediainc.com:444|https://omdigitaldataapi.oceanmediainc.com:444>
path: /api/DCPDCM/Get/
http_method: POST
request_parameters: {}
request_headers: {}
request_body_json:
StartDate: '{{stream_slice[''end_time'']}}'
EndDate: '{{stream_slice[''end_time'']}}'
authenticator:
type: ApiKeyAuthenticator
header: ClientKey
api_token: '{{ config[''api_key''] }}'
error_handler:
type: CompositeErrorHandler
error_handlers:
- type: DefaultErrorHandler
backoff_strategies:
- type: ConstantBackoffStrategy
backoff_time_in_seconds: 5
record_selector:
type: RecordSelector
extractor:
type: DpathExtractor
field_path:
- data
paginator:
type: NoPagination
incremental_sync:
step: P1D
type: DatetimeBasedCursor
cursor_field: date
end_datetime: '{{ format_datetime(day_delta(-1), ''%Y-%m-%d'') }}'
start_datetime: '{{ format_datetime(config[''start_date''] , ''%Y-%m-%d'') }}'
datetime_format: '%Y-%m-%d'
cursor_granularity: P1D
spec:
connection_specification:
$schema: <http://json-schema.org/draft-07/schema#|http://json-schema.org/draft-07/schema#>
type: object
required:
- start_date
- api_key
properties:
start_date:
type: string
title: Start Date
default: '2023-01-01'
api_key:
type: string
title: Client Key
airbyte_secret: true
additionalProperties: true
documentation_url: <https://example.org|https://example.org>
type: Spec
aidan
04/29/2023, 11:50 AM