-
Notifications
You must be signed in to change notification settings - Fork 2
/
example-config-extpipesv2.yml
98 lines (91 loc) · 3.04 KB
/
example-config-extpipesv2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# name: string [ 1 .. 140 ] characters
# externalId: string [ 1 .. 255 ] characters
# description: string [ 1 .. 500 ] characters
# extpipe-pattern only documentation atm
extpipe-pattern: '{source}:{short-name}:{rawtable-name}:{suffix}'
# new since v2.1.0
# The default and recommended value is: true
# to keep the deployment in sync with configuration
# which means non configured extpipes get automatically deleted
automatic-delete: true
# can contain multiple contacts, can be overwritten on pipeline level
default-contacts:
- name: Yours Truly
email: yours.truly@cognite.com
role: admin
send-notification: false
# following configuration creates four extpipes with names:
# adf:src:001:sap_funcloc
# db:src:001:sap_equipment
# az-func:src:002:weather_europe:hourly
# az-func:src:002:weather_europe:daily
rawdbs:
# list of raw-dbs > containing rawtables > containing pipelines
- rawdb-name: src:001:sap:rawdb
dataset-external-id: src:001:sap
short-name: src:001
rawtables:
- rawtable-name: sap_funcloc
pipelines:
# source is a short-name identifying the pipeline source being
# a 'db-extractor (db)', an 'Azure Function (az-func)',
# or 'Azure Data Factory (adf)', 'Python script (py)', ..
- source: adf
# since v2.2.0 'skip-rawtable' with default 'false' exists
# it allows to skip creation of the rawtable,
# to avoid automatic creation in case it is not needed
# FYI: Next v3 release will change the config-schema, to express
# raw-tables not being a leading, but optional element
skip-rawtable: false
schedule: Continuous
- rawtable-name: sap_equipment
pipelines:
- source: db
schedule: Continuous
# default-contacts can be overwritten
contacts:
- name: Fizz Buzz
email: fizzbuzz@cognite.com
role: admin
send-notification: true
- rawdb-name: src:all:rawdb
dataset-external-id: src:all
short-name: src:all
rawtables:
- rawtable-name: skiptable
pipelines:
- source: az-func
skip-rawtable: true
schedule: Continuous
- rawdb-name: src:002:weather:rawdb
dataset-external-id: src:002:weather
short-name: src:002
rawtables:
- rawtable-name: weather_europe
# multiple pipelines for same raw-table
pipelines:
- source: az-func
suffix: hourly
schedule: Continuous
- source: az-func
suffix: daily
schedule: Continuous
# follows the same parameter structure as the DB extractor configuration
cognite: # kwargs to pass to the CogniteClient, Environment variable format: ${ENVIRONMENT_VARIABLE}
host: ${HOST}
project: ${PROJECT}
#
# AAD IdP login credentials:
#
idp-authentication:
client-id: ${CLIENT_ID}
secret: ${CLIENT_SECRET}
scopes:
- ${SCOPES}
token_url: ${TOKEN_URL}
logger:
file:
path: ./logs/test-deploy.log
level: INFO
console:
level: INFO