TableauOperator¶
Use the TableauOperator to execute
Tableau server client python commands in a Tableau.
Using the Operator¶
resource: The name of the resource to use. str
method: The name of the resource’s method to execute. str
find: The reference of resource that will receive the action. str
match_with: The resource field name to be matched with find parameter. str - Default: id
site_id: The id of the site where the workbook belongs to. str - Default: None
blocking_refresh: By default the extract refresh will be blocking means it will wait until it has finished. bool - Default: True
check_interval: time in seconds that the job should wait in between each instance state checks until operation is completed. float - Default: 20
timeout: maximum total time in seconds to wait for a blocking refresh before giving up with a
TimeoutError. float - Default: None (wait indefinitely)exponential_backoff: grow the wait between status checks by 50% each time, starting from
check_interval, instead of staying fixed. bool - Default: Falsemax_check_interval: maximum interval in seconds between two consecutive status checks when
exponential_backoff is enabled. float - Default: None (uncapped)tableau_conn_id: The credentials to authenticate to the Tableau Server. str - Default: tableau_default
Resource |
Methods |
|---|---|
datasources |
|
groups |
|
projects |
|
schedule |
|
sites |
|
tasks |
|
users |
|
workbooks |
|
An example usage of the TableauOperator is as follows:
task_refresh_workbook_blocking = TableauOperator(
resource="workbooks",
method="refresh",
find="MyWorkbook",
match_with="name",
blocking_refresh=True,
task_id="refresh_tableau_workbook_blocking",
)