smart_city v5.0.7 SmartCity.Ingestion View Source
Struct defining an ingestion update event.
const Ingestion = {
"id": "",
"name", "",
"allow_duplicates": boolean,
"cadence": "",
"extractSteps": [],
"schema": [],
"targetDatasetId": "",
"sourceFormat": "",
"topLevelSelector": "",
"transformations": [],
}
Link to this section Summary
Functions
Returns a new SmartCity.Ingestion.
Can be created from Map with string or atom keys.
Raises an ArgumentError when passed invalid input
Link to this section Types
Link to this type
t()
View Sourcet() :: %SmartCity.Ingestion{
allow_duplicates: not_required(boolean()),
cadence: not_required(String.t()),
extractSteps: [map()],
id: String.t(),
name: String.t(),
schema: [map()],
sourceFormat: String.t(),
targetDataset: String.t(),
topLevelSelector: not_required(String.t()),
transformations: [SmartCity.Ingestion.Transformation.t()]
}
Link to this section Functions
Returns a new SmartCity.Ingestion.
Can be created from Map with string or atom keys.
Raises an ArgumentError when passed invalid input
Parameters
- msg: Map with string or atom keys that defines the ingestion metadata
Required Keys:
- targetDataset
- sourceFormat
- name
- cadence will default to "never"
- allow_duplicates will default to true