Reference
translate
Source code in metric_transpi/translate.py
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 |
|
Source code in metric_transpi/translate.py
59 60 61 62 63 64 65 66 67 68 69 70 71 |
|
dbt metrics
Bases: BaseModel
Source code in metric_transpi/dbt.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|
Tableau metric defintion
Bases: BaseModel
TableauMetricqueryserviceTypesV1Definition
Source code in openapi_client/models/tableau_metricqueryservice_types_v1_definition.py
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 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
|
from_dict(obj)
classmethod
Create an instance of TableauMetricqueryserviceTypesV1Definition from a dict
Source code in openapi_client/models/tableau_metricqueryservice_types_v1_definition.py
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
|
from_json(json_str)
classmethod
Create an instance of TableauMetricqueryserviceTypesV1Definition from a JSON string
Source code in openapi_client/models/tableau_metricqueryservice_types_v1_definition.py
62 63 64 65 |
|
to_dict()
Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
self.model_dump(by_alias=True)
:
None
is only added to the output dict for nullable fields that were set at model initialization. Other fields with valueNone
are ignored.
Source code in openapi_client/models/tableau_metricqueryservice_types_v1_definition.py
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 99 100 101 102 103 104 105 106 107 108 109 110 |
|
to_json()
Returns the JSON representation of the model using alias
Source code in openapi_client/models/tableau_metricqueryservice_types_v1_definition.py
57 58 59 60 |
|
to_str()
Returns the string representation of the model using alias
Source code in openapi_client/models/tableau_metricqueryservice_types_v1_definition.py
53 54 55 |
|
Tableau Cloud
Signin to Tableau Cloud
Parameters:
Name | Type | Description | Default |
---|---|---|---|
host
|
str
|
description |
required |
site_url_id
|
str
|
description |
required |
pat_token_name
|
str
|
description |
required |
pat_token_secret
|
str
|
description |
required |
Returns:
Name | Type | Description |
---|---|---|
token |
tuple
|
the API token associated for a session of 1 hour long |
site_id |
tuple
|
the uid corresponding to the site_url, usefull to query datasources |
Source code in metric_transpi/tableau_cloud.py
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 |
|
Source code in metric_transpi/tableau_cloud.py
51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
Source code in metric_transpi/tableau_cloud.py
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
|