Class - jobs.job_tableau_export.TabcmdExportSection
¶
JSON Schema¶
TabcmdExportSection¶
This section of the JSON configuration and its subsections control the
operation of |
||||||
type |
object |
|||||
properties |
||||||
|
Tabcmd |
|||||
Parameters used with |
||||||
allOf |
||||||
|
Smtp |
|||||
Parameters to be used when emailing each
To use the postfix present on Mitto systems (in its default configuration), use the following value: {“server”: “localhost”, “port”: 0, “require_tls”: true}, |
||||||
allOf |
||||||
|
Report Specifications |
|||||
Defines the source of the |
||||||
allOf |
||||||
definitions |
||||||
|
TabcmdSection |
|||||
Parameters used for each invocation of |
||||||
type |
object |
|||||
properties |
||||||
|
Server |
|||||
Hostname or IP address of Tableau server. |
||||||
type |
string |
|||||
|
Site |
|||||
Tableau site. To specify the Default site, use a value of “”, not “Default”. This is necessary because the Tableau tabcmd command interprets “” as the Default site. |
||||||
type |
string |
|||||
|
User |
|||||
Tableau user id. |
||||||
type |
string |
|||||
|
Password |
|||||
Password for Tableau |
||||||
type |
string |
|||||
|
Path |
|||||
Path to location of |
||||||
type |
string |
|||||
default |
/opt/tableau/tabcmd/bin/tabcmd |
|||||
|
Timeout |
|||||
Maximum number of seconds to allow |
||||||
type |
integer |
|||||
default |
60 |
|||||
|
Retries |
|||||
Maximum number of times to retry a failed |
||||||
type |
integer |
|||||
default |
3 |
|||||
|
No Certcheck |
|||||
If |
||||||
type |
boolean |
|||||
default |
True |
|||||
|
Port |
|||||
TCP/IP port |
||||||
type |
integer |
|||||
|
Proxy |
|||||
Hostname or IP address of proxy to use when contacting |
||||||
type |
string |
|||||
|
SmtpSection |
|||||
Defines the characteristics of the SMTP server that will be used to deliver exported reports. |
||||||
type |
object |
|||||
properties |
||||||
|
Port |
|||||
The TCP/IP port to use for SMTP. See comment at |
||||||
type |
integer |
|||||
default |
25 |
|||||
|
Require Tls |
|||||
Use STARTTLS to establish secure transport. Note that this requires
use of a non-TLS port to first establish communication. Often, this
means that |
||||||
type |
boolean |
|||||
default |
False |
|||||
|
Server |
|||||
Hostname or IP address of server. |
||||||
type |
string |
|||||
|
Username |
|||||
SMTP user name. |
||||||
type |
string |
|||||
|
Password |
|||||
Password for SMTP user name. |
||||||
type |
string |
|||||
|
Disabled |
|||||
If |
||||||
type |
boolean |
|||||
default |
False |
|||||
|
ReportSpecificationTypeEnum |
|||||
Specifies the format and location of the |
||||||
type |
string |
|||||
enum |
json, csv, sql |
|||||
|
ReportTypeEnum |
|||||
Specifies the format of the created report. |
||||||
type |
string |
|||||
enum |
pdf, csv, png, fullpdf |
|||||
|
PagelayoutEnum |
|||||
Specifies the page layout. |
||||||
type |
string |
|||||
enum |
landscape, protrait |
|||||
|
PagesizeEnum |
|||||
Specifies the page size. |
||||||
type |
string |
|||||
enum |
unspecified, letter, legal, note, folio, tabloid, ledger, statement, executive, a3, a4, a5, b4, b5, quarto |
|||||
|
ReportSpecification |
|||||
Defines the contents of a single report. |
||||||
type |
object |
|||||
properties |
||||||
|
View |
|||||
The Tableau Example:
If the Tableau URL is
|
||||||
type |
string |
|||||
|
The report’s format. Examples: "pdf"
"fullpdf"
"csv"
"png"
|
|||||
default |
||||||
allOf |
||||||
|
Refresh |
|||||
type |
boolean |
|||||
default |
False |
|||||
|
Height |
|||||
Height of the report image in pixels. Only valid when |
||||||
type |
integer |
|||||
|
Width |
|||||
Height of the report image in pixels. Only valid when if
|
||||||
type |
integer |
|||||
|
The page orientation of the report. Examples: "landscape"
"portrait"
|
|||||
default |
landscape |
|||||
allOf |
||||||
|
Assumed paper size to use when creating the report. Examples: "letter"
"a4"
|
|||||
default |
letter |
|||||
allOf |
||||||
|
Report Name |
|||||
The name given to the exported report when it is attached to outgoing
email. When the recipient saves the attachment, it will be saved using
this name. Do not provide an extension (e.g., use |
||||||
type |
string |
|||||
default |
default_report_name |
|||||
|
Mail Subject |
|||||
The subject line of the outgoing email. Example: "Q4 Results"
|
||||||
type |
string |
|||||
default |
default_mail_subject |
|||||
|
Mail From |
|||||
The email address that will appear in the Example: "steve@zuar.com"
|
||||||
type |
string |
|||||
|
Mail To |
|||||
One or more comma-separated email addresses. The report will be emailed to the address(es). Example: "alice@foo.com,bob@foo.com,ted@bar.com"
|
||||||
type |
string |
|||||
|
Mail Cc |
|||||
CC recipients. Otherwise, same as |
||||||
type |
string |
|||||
|
Mail Bcc |
|||||
BCC recipients. Otherwise, same as |
||||||
type |
string |
|||||
|
Mail Body |
|||||
HTML which will be used as the body of the email. Example: "<html><head>CEO Report</head><body>Report attached.</body></head></html>"
|
||||||
type |
string |
|||||
default |
This is the default email body. |
|||||
|
Disabled |
|||||
If Primarily for use with CSV input from a spreadsheet; it allows individual report specifications to be enabled/disabled without adding/removing rows from the spreadsheet. |
||||||
type |
boolean |
|||||
default |
False |
|||||
|
ReportSpecificationsSection |
|||||
Defines a section of the job’s JSON config containing the specifications for one or more reports that are to be exported and emailed. |
||||||
type |
object |
|||||
properties |
||||||
|
The format used in providing one or more report specifications.
|
|||||
allOf |
||||||
|
Source |
|||||
Provides the detailed specification for each report to be created. If Example: "report_specifications": {
"type": "json",
"source": [
{
"view": "Superstore/Overview",
"report_name": "report_name01",
"mail_to": "steve@zuar.com",
"mail_subject": "Report 01 is ready",
"mail_from": "bob@zuar.com",
"parameter_01": "Category",
"value_01": '"Office Supplies"',
"parameter_02": "State",
"value_02": '["Texas", "Louisiana"]',
},
{
"view": "Superstore/Overview",
"report_name": "report_name02",
"mail_to": "steve@zuar.com",
"mail_subject": "Report 02 is ready",
"mail_from": "bob@zuar.com",
"parameter_01": "Category",
"value_01": '["Furniture", "Office Supplies"]',
"parameter_02": "State",
"value_02": '"Louisiana"',
}
]
}
If Example: "report_specifications": {
"type": "csv",
"source": "/var/mitto/data/reports_01-02.csv"
}
Example contents of view,report_type,pagelayout,pagesize,report_name,mail_to,mail_subject,mail_from,mail_cc,mail_bcc,parameter_01,value_01,parameter_02,value_02
Superstore/Overview,pdf,landscape,letter,khe_report_name01,khe@east.fm,keh subject 01,ke@east.fm,"kheaustin@gmail.com,kenneth.east@zuar.com",ke@east.fm,Category,""Office Supplies"",State,"[""Texas"", ""Louisiana""]"
Superstore/Overview,fullpdf,landscape,letter,Louisiana Report,"khe@east.fm,KHEAustin@gmail.com",keh subject 02,ke@east.fm,ke@east.fm,"kheaustin@gmail.com,kenneth.east@zuar.com",Category,"[""Furniture"", ""Office Supplies""]",State,""Louisiana""
If The Example: "report_specifications": {
"type": "sql",
"source": [
"SELECT",
"'Superstore/Overview' AS view,",
"'report_name01' AS report_name,",
"'steve@zuar.com' AS mail_to,",
"'Report 01 is ready' AS mail_subject,",
"'bob@zuar.com' AS mail_from,",
"'Category' AS parameter_01,",
"'"Office Supplies"' AS value_01,",
"'State' AS parameter_02,",
"'["Texas", "Louisiana"]' AS value_02",
"UNION ALL",
"SELECT",
"'Superstore/Overview' AS view,",
"'report_name02' AS report_name,",
"'steve@zuar.com' AS mail_to,",
"'Report 02 is ready' AS mail_subject,",
"'bob@zuar.com' AS mail_from,",
"'Category' AS parameter_01,",
"'["Furniture", "Office Supplies"]' AS value_01,",
"'State' AS parameter_02,",
"'"Louisiana"' AS value_02"
],
"dbo": "postgresql://localhost/analytics"
}
Example: "report_specifications": {
"type": "sql",
"source": "SELECT * FROM report_secification",
"dbo": "postgresql://localhost/analytics"
}
|
||||||
anyOf |
type |
array |
||||
items |
anyOf |
|||||
type |
string |
|||||
type |
string |
|||||
|
Dbo |
|||||
The database Example: "postgresql://localhost/analytics"
|
||||||
type |
string |
|||||
|
Credentials |
|||||
Credentials name for the specified database |
||||||
type |
string |
|||||
examples |
“postgres_credentials” |
|||||
|
Specifications |
|||||
For internal use only. Results are undefined if a value is provided via the job’s JSON config. |
JSON Schema Definitions¶
#/definitions/TabcmdSection
¶
TabcmdSection¶
Parameters used for each invocation of |
||
type |
object |
|
properties |
||
|
Server |
|
Hostname or IP address of Tableau server. |
||
type |
string |
|
|
Site |
|
Tableau site. To specify the Default site, use a value of “”, not “Default”. This is necessary because the Tableau tabcmd command interprets “” as the Default site. |
||
type |
string |
|
|
User |
|
Tableau user id. |
||
type |
string |
|
|
Password |
|
Password for Tableau |
||
type |
string |
|
|
Path |
|
Path to location of |
||
type |
string |
|
default |
/opt/tableau/tabcmd/bin/tabcmd |
|
|
Timeout |
|
Maximum number of seconds to allow |
||
type |
integer |
|
default |
60 |
|
|
Retries |
|
Maximum number of times to retry a failed |
||
type |
integer |
|
default |
3 |
|
|
No Certcheck |
|
If |
||
type |
boolean |
|
default |
True |
|
|
Port |
|
TCP/IP port |
||
type |
integer |
|
|
Proxy |
|
Hostname or IP address of proxy to use when contacting |
||
type |
string |
#/definitions/SmtpSection
¶
SmtpSection¶
Defines the characteristics of the SMTP server that will be used to deliver exported reports. |
||
type |
object |
|
properties |
||
|
Port |
|
The TCP/IP port to use for SMTP. See comment at |
||
type |
integer |
|
default |
25 |
|
|
Require Tls |
|
Use STARTTLS to establish secure transport. Note that this requires
use of a non-TLS port to first establish communication. Often, this
means that |
||
type |
boolean |
|
default |
False |
|
|
Server |
|
Hostname or IP address of server. |
||
type |
string |
|
|
Username |
|
SMTP user name. |
||
type |
string |
|
|
Password |
|
Password for SMTP user name. |
||
type |
string |
|
|
Disabled |
|
If |
||
type |
boolean |
|
default |
False |
#/definitions/ReportSpecificationTypeEnum
¶
ReportSpecificationTypeEnum¶
Specifies the format and location of the |
|
type |
string |
enum |
json, csv, sql |
#/definitions/ReportTypeEnum
¶
ReportTypeEnum¶
Specifies the format of the created report. |
|
type |
string |
enum |
pdf, csv, png, fullpdf |
#/definitions/PagelayoutEnum
¶
PagelayoutEnum¶
Specifies the page layout. |
|
type |
string |
enum |
landscape, protrait |
#/definitions/PagesizeEnum
¶
PagesizeEnum¶
Specifies the page size. |
|
type |
string |
enum |
unspecified, letter, legal, note, folio, tabloid, ledger, statement, executive, a3, a4, a5, b4, b5, quarto |
#/definitions/ReportSpecification
¶
ReportSpecification¶
Defines the contents of a single report. |
||
type |
object |
|
properties |
||
|
View |
|
The Tableau Example:
If the Tableau URL is
|
||
type |
string |
|
|
The report’s format. Examples: "pdf"
"fullpdf"
"csv"
"png"
|
|
default |
||
allOf |
||
|
Refresh |
|
type |
boolean |
|
default |
False |
|
|
Height |
|
Height of the report image in pixels. Only valid when |
||
type |
integer |
|
|
Width |
|
Height of the report image in pixels. Only valid when if
|
||
type |
integer |
|
|
The page orientation of the report. Examples: "landscape"
"portrait"
|
|
default |
landscape |
|
allOf |
||
|
Assumed paper size to use when creating the report. Examples: "letter"
"a4"
|
|
default |
letter |
|
allOf |
||
|
Report Name |
|
The name given to the exported report when it is attached to outgoing
email. When the recipient saves the attachment, it will be saved using
this name. Do not provide an extension (e.g., use |
||
type |
string |
|
default |
default_report_name |
|
|
Mail Subject |
|
The subject line of the outgoing email. Example: "Q4 Results"
|
||
type |
string |
|
default |
default_mail_subject |
|
|
Mail From |
|
The email address that will appear in the Example: "steve@zuar.com"
|
||
type |
string |
|
|
Mail To |
|
One or more comma-separated email addresses. The report will be emailed to the address(es). Example: "alice@foo.com,bob@foo.com,ted@bar.com"
|
||
type |
string |
|
|
Mail Cc |
|
CC recipients. Otherwise, same as |
||
type |
string |
|
|
Mail Bcc |
|
BCC recipients. Otherwise, same as |
||
type |
string |
|
|
Mail Body |
|
HTML which will be used as the body of the email. Example: "<html><head>CEO Report</head><body>Report attached.</body></head></html>"
|
||
type |
string |
|
default |
This is the default email body. |
|
|
Disabled |
|
If Primarily for use with CSV input from a spreadsheet; it allows individual report specifications to be enabled/disabled without adding/removing rows from the spreadsheet. |
||
type |
boolean |
|
default |
False |
#/definitions/ReportSpecificationsSection
¶
ReportSpecificationsSection¶
Defines a section of the job’s JSON config containing the specifications for one or more reports that are to be exported and emailed. |
|||||
type |
object |
||||
properties |
|||||
|
The format used in providing one or more report specifications.
|
||||
allOf |
|||||
|
Source |
||||
Provides the detailed specification for each report to be created. If Example: "report_specifications": {
"type": "json",
"source": [
{
"view": "Superstore/Overview",
"report_name": "report_name01",
"mail_to": "steve@zuar.com",
"mail_subject": "Report 01 is ready",
"mail_from": "bob@zuar.com",
"parameter_01": "Category",
"value_01": '"Office Supplies"',
"parameter_02": "State",
"value_02": '["Texas", "Louisiana"]',
},
{
"view": "Superstore/Overview",
"report_name": "report_name02",
"mail_to": "steve@zuar.com",
"mail_subject": "Report 02 is ready",
"mail_from": "bob@zuar.com",
"parameter_01": "Category",
"value_01": '["Furniture", "Office Supplies"]',
"parameter_02": "State",
"value_02": '"Louisiana"',
}
]
}
If Example: "report_specifications": {
"type": "csv",
"source": "/var/mitto/data/reports_01-02.csv"
}
Example contents of view,report_type,pagelayout,pagesize,report_name,mail_to,mail_subject,mail_from,mail_cc,mail_bcc,parameter_01,value_01,parameter_02,value_02
Superstore/Overview,pdf,landscape,letter,khe_report_name01,khe@east.fm,keh subject 01,ke@east.fm,"kheaustin@gmail.com,kenneth.east@zuar.com",ke@east.fm,Category,""Office Supplies"",State,"[""Texas"", ""Louisiana""]"
Superstore/Overview,fullpdf,landscape,letter,Louisiana Report,"khe@east.fm,KHEAustin@gmail.com",keh subject 02,ke@east.fm,ke@east.fm,"kheaustin@gmail.com,kenneth.east@zuar.com",Category,"[""Furniture"", ""Office Supplies""]",State,""Louisiana""
If The Example: "report_specifications": {
"type": "sql",
"source": [
"SELECT",
"'Superstore/Overview' AS view,",
"'report_name01' AS report_name,",
"'steve@zuar.com' AS mail_to,",
"'Report 01 is ready' AS mail_subject,",
"'bob@zuar.com' AS mail_from,",
"'Category' AS parameter_01,",
"'"Office Supplies"' AS value_01,",
"'State' AS parameter_02,",
"'["Texas", "Louisiana"]' AS value_02",
"UNION ALL",
"SELECT",
"'Superstore/Overview' AS view,",
"'report_name02' AS report_name,",
"'steve@zuar.com' AS mail_to,",
"'Report 02 is ready' AS mail_subject,",
"'bob@zuar.com' AS mail_from,",
"'Category' AS parameter_01,",
"'["Furniture", "Office Supplies"]' AS value_01,",
"'State' AS parameter_02,",
"'"Louisiana"' AS value_02"
],
"dbo": "postgresql://localhost/analytics"
}
Example: "report_specifications": {
"type": "sql",
"source": "SELECT * FROM report_secification",
"dbo": "postgresql://localhost/analytics"
}
|
|||||
anyOf |
type |
array |
|||
items |
anyOf |
||||
type |
string |
||||
type |
string |
||||
|
Dbo |
||||
The database Example: "postgresql://localhost/analytics"
|
|||||
type |
string |
||||
|
Credentials |
||||
Credentials name for the specified database |
|||||
type |
string |
||||
examples |
“postgres_credentials” |
||||
|
Specifications |
||||
For internal use only. Results are undefined if a value is provided via the job’s JSON config. |