@kapa.ai
version: 6.48.15
type: DeclarativeSource
check:
type: CheckStream
stream_names:
- indicator_values
definitions:
streams:
indicator_values:
type: DeclarativeStream
name: indicator_values
retriever:
type: SimpleRetriever
decoder:
type: JsonDecoder
requester:
$ref: "#/definitions/base_requester"
path: https://**.*.
gov.et/api/analytics
http_method: GET
request_parameters:
dimension: >-
dx:{{ stream_partition['dx']
}},pe
201701;201702;201703;201704,ou{{ stream_partition['ou'] }}
record_selector:
type: RecordSelector
extractor:
type: DpathExtractor
field_path: []
partition_router:
- type: ListPartitionRouter
values:
- wqURG81DbhS
- TQZa6RHFdsh
cursor_field: ou
- type: ListPartitionRouter
values:
- EM02m2HPZG6
- PePmfAnKV3c
cursor_field: dx
- type: ListPartitionRouter
values:
- 201701;201702;201703
- 201704;201705;201706
- 201707;201708;201709
- 201710;201711;201712
cursor_field: pe
schema_loader:
type: InlineSchemaLoader
schema:
$ref: "#/schemas/indicator_values"
base_requester:
type: HttpRequester
url_base: https://*.
*.
gov.et/api/analytics
authenticator:
type: BasicHttpAuthenticator
password: "{{ config[\"password_2\"] }}"
username: "{{ config[\"username_2\"] }}"
streams:
- $ref: "#/definitions/streams/indicator_values"
spec:
type: Spec
connection_specification:
type: object
$schema:
http://json-schema.org/draft-07/schema#
required:
- username_2
properties:
password_2:
type: string
order: 1
title: Password
always_show: true
airbyte_secret: true
username_2:
type: string
order: 0
title: Username
additionalProperties: true
metadata:
assist: {}
testedStreams:
indicator_values:
hasRecords: true
streamHash: 15240667d4046e618331bb9c66b1c935e3248e21
hasResponse: true
primaryKeysAreUnique: true
primaryKeysArePresent: true
responsesAreSuccessful: true
autoImportSchema:
indicator_values: false
schemas:
indicator_values:
type: object
properties:
dx:
type: string
description: Indicator ID
ou:
type: string
description: Org Unit ID
pe:
type: string
description: Period (YYYYMM)
value:
type: string
description: Indicator Value
additionalProperties: true
after publishing this does the extraction do by it self without selecting partition