Scroll ignore | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
About Collectors
Collectors are extractors that are developed and managed by you (A customer of K).
...
A high water mark file is created in the same directory as the execution called tableau_hwm.txt and produce files according to the configuration JSON. This file is only produced if you call the publish_hwm method.
Code Block |
---|
from kada_collectors.extractors.tableau import Extractor
kwargs = {my args} # However you choose to construct your args
hwm_kwrgs = {"start_hwm": "end_hwm": } # The hwm values
ext = Extractor(**kwargs)
ext.run(**hwm_kwrgs) |
Code Block |
---|
class Extractor(server_address: str = None, username: str = None, password: str = None, \
sites: list = [], db_host: str = None, db_password: str = None, \
db_port: int = 8060, db_name: str = '≈', db_username: str = 'readonly', \
meta_only: bool = False, events_only: bool = False, retries: int = 5, \
dry_run: bool = False, output_path: str = './output', \
mask: bool = False, mapping: dict = {}) |
server_address: server address
username: username to sign into server
password: password to sign into server
sites: list of sites to extract.
db_host: Tableau database address
db_password: Tableau database password
db_port: Tableau database port
db_name: Tableau database name
db_username: Tableau database username
meta_only: extract metadata only
events_only: extract events only
retries: Number of attemps if an API fails on NonXMLResponse Error, default is 5
dry_run: If specified the extractor will do a dry run to produce a template mapping.
output_path: full or relative path to where the outputs should go
login_timeout: The timeout for snowflake Auth
mask: To mask the META/DATABASE_LOG files or not
...
Step 7: Push the Extracts to K
...