You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jl...@apache.org on 2025/03/04 18:20:53 UTC
(superset) 06/08: fix(tags): clean up bulk create api and schema (#31427)
This is an automated email from the ASF dual-hosted git repository.
jli pushed a commit to branch 4.1
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 7a2c06e89ce61e720711df7d3f8ccaf463d99adf
Author: Ville Brofeldt <33...@users.noreply.github.com>
AuthorDate: Thu Dec 12 17:54:10 2024 -0800
fix(tags): clean up bulk create api and schema (#31427)
(cherry picked from commit bf56a327f4f3720f1b3f24fea3e7ee47bfb4da31)
---
docs/static/resources/openapi.json | 14445 +++++++++++++++++++++--------------
superset/tags/api.py | 31 +-
superset/tags/schemas.py | 34 +-
3 files changed, 8850 insertions(+), 5660 deletions(-)
diff --git a/docs/static/resources/openapi.json b/docs/static/resources/openapi.json
index 4b2b50caf0..f5a44193ea 100644
--- a/docs/static/resources/openapi.json
+++ b/docs/static/resources/openapi.json
@@ -100,8 +100,13 @@
"QUERY_SECURITY_ACCESS_ERROR",
"MISSING_OWNERSHIP_ERROR",
"USER_ACTIVITY_SECURITY_ACCESS_ERROR",
+ "DASHBOARD_SECURITY_ACCESS_ERROR",
+ "CHART_SECURITY_ACCESS_ERROR",
+ "OAUTH2_REDIRECT",
+ "OAUTH2_REDIRECT_ERROR",
"BACKEND_TIMEOUT_ERROR",
"DATABASE_NOT_FOUND_ERROR",
+ "TABLE_NOT_FOUND_ERROR",
"MISSING_TEMPLATE_PARAMS_ERROR",
"INVALID_TEMPLATE_PARAMS_ERROR",
"RESULTS_BACKEND_NOT_CONFIGURED_ERROR",
@@ -112,10 +117,13 @@
"RESULTS_BACKEND_ERROR",
"ASYNC_WORKERS_ERROR",
"ADHOC_SUBQUERY_NOT_ALLOWED_ERROR",
+ "INVALID_SQL_ERROR",
+ "RESULT_TOO_LARGE_ERROR",
"GENERIC_COMMAND_ERROR",
"GENERIC_BACKEND_ERROR",
"INVALID_PAYLOAD_FORMAT_ERROR",
"INVALID_PAYLOAD_SCHEMA_ERROR",
+ "MARSHMALLOW_ERROR",
"REPORT_NOTIFICATION_ERROR"
],
"type": "string"
@@ -458,13 +466,13 @@
"AnnotationRestApi.get_list": {
"properties": {
"changed_by": {
- "$ref": "#/components/schemas/AnnotationRestApi.get_list.User1"
+ "$ref": "#/components/schemas/AnnotationRestApi.get_list.User"
},
"changed_on_delta_humanized": {
"readOnly": true
},
"created_by": {
- "$ref": "#/components/schemas/AnnotationRestApi.get_list.User"
+ "$ref": "#/components/schemas/AnnotationRestApi.get_list.User1"
},
"end_dttm": {
"format": "date-time",
@@ -580,6 +588,29 @@
},
"type": "object"
},
+ "AppleHealthResponseSchema": {
+ "properties": {
+ "cache_message": {
+ "description": "Human readable status message for the cache connection",
+ "type": "string"
+ },
+ "cache_status": {
+ "description": "The status of the cache",
+ "enum": ["NA", "HEALTHY", "ERROR"],
+ "type": "string"
+ },
+ "metastore_message": {
+ "description": "Human readable status message for the metastore connection",
+ "type": "string"
+ },
+ "metastore_status": {
+ "description": "The status of the metastore",
+ "enum": ["NA", "HEALTHY", "ERROR"],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
"AvailableDomainsSchema": {
"properties": {
"domains": {
@@ -591,10 +622,127 @@
},
"type": "object"
},
+ "CSVMetadataUploadFilePostSchema": {
+ "properties": {
+ "delimiter": {
+ "description": "The delimiter of the CSV file",
+ "type": "string"
+ },
+ "file": {
+ "description": "The file to upload",
+ "format": "binary",
+ "type": "string"
+ },
+ "header_row": {
+ "description": "Row containing the headers to use as column names(0 is first line of data). Leave empty if there is no header row.",
+ "type": "integer"
+ }
+ },
+ "required": ["file"],
+ "type": "object"
+ },
+ "CSVUploadPostSchema": {
+ "properties": {
+ "already_exists": {
+ "default": "fail",
+ "description": "What to do if the table already exists accepts: fail, replace, append",
+ "enum": ["fail", "replace", "append"],
+ "type": "string"
+ },
+ "column_data_types": {
+ "description": "A dictionary with column names and their data types if you need to change the defaults. Example: {'user_id':'int'}. Check Python Pandas library for supported data types",
+ "type": "string"
+ },
+ "column_dates": {
+ "description": "A list of column names that should be parsed as dates. Example: date,timestamp",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "columns_read": {
+ "description": "A List of the column names that should be read",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "dataframe_index": {
+ "description": "Write dataframe index as a column.",
+ "type": "boolean"
+ },
+ "day_first": {
+ "description": "DD/MM format dates, international and European format",
+ "type": "boolean"
+ },
+ "decimal_character": {
+ "description": "Character to recognize as decimal point. Default is '.'",
+ "type": "string"
+ },
+ "delimiter": {
+ "description": "The delimiter of the CSV file",
+ "type": "string"
+ },
+ "file": {
+ "description": "The CSV file to upload",
+ "format": "text/csv",
+ "type": "string"
+ },
+ "header_row": {
+ "description": "Row containing the headers to use as column names(0 is first line of data). Leave empty if there is no header row.",
+ "type": "integer"
+ },
+ "index_column": {
+ "description": "Column to use as the row labels of the dataframe. Leave empty if no index column",
+ "type": "string"
+ },
+ "index_label": {
+ "description": "Index label for index column.",
+ "type": "string"
+ },
+ "null_values": {
+ "description": "A list of strings that should be treated as null. Examples: '' for empty strings, 'None', 'N/A',Warning: Hive database supports only a single value",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "rows_to_read": {
+ "description": "Number of rows to read from the file. If None, reads all rows.",
+ "minimum": 1,
+ "nullable": true,
+ "type": "integer"
+ },
+ "schema": {
+ "description": "The schema to upload the data file to.",
+ "type": "string"
+ },
+ "skip_blank_lines": {
+ "description": "Skip blank lines in the CSV file.",
+ "type": "boolean"
+ },
+ "skip_initial_space": {
+ "description": "Skip spaces after delimiter.",
+ "type": "boolean"
+ },
+ "skip_rows": {
+ "description": "Number of rows to skip at start of file.",
+ "type": "integer"
+ },
+ "table_name": {
+ "description": "The name of the table to be created/appended",
+ "maxLength": 10000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": ["file", "table_name"],
+ "type": "object"
+ },
"CacheInvalidationRequestSchema": {
"properties": {
"datasource_uids": {
- "description": "The uid of the dataset/datasource this new chart will use. A complete datasource identification needs `datasouce_uid` ",
+ "description": "The uid of the dataset/datasource this new chart will use. A complete datasource identification needs `datasource_uid` ",
"items": {
"type": "string"
},
@@ -642,6 +790,18 @@
},
"type": "object"
},
+ "CatalogsResponseSchema": {
+ "properties": {
+ "result": {
+ "items": {
+ "description": "A database catalog name",
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
"ChartCacheScreenshotResponseSchema": {
"properties": {
"cache_key": {
@@ -864,14 +1024,7 @@
},
"type": {
"description": "Datasource type",
- "enum": [
- "sl_table",
- "table",
- "dataset",
- "query",
- "saved_query",
- "view"
- ],
+ "enum": ["table", "dataset", "query", "saved_query", "view"],
"type": "string"
}
},
@@ -884,6 +1037,11 @@
"description": "HAVING clause to be added to aggregate queries using AND operator.",
"type": "string"
},
+ "instant_time_comparison_range": {
+ "description": "This is only set using the new time comparison controls that is made available in some plugins behind the experimental feature flag.",
+ "nullable": true,
+ "type": "string"
+ },
"relative_end": {
"description": "End time for relative time deltas. Default: `config[\"DEFAULT_RELATIVE_START_TIME\"]`",
"enum": ["today", "now"],
@@ -915,12 +1073,7 @@
"1969-12-28T00:00:00Z/P1W",
"1969-12-29T00:00:00Z/P1W",
"P1W/1970-01-03T00:00:00Z",
- "P1W/1970-01-04T00:00:00Z",
- "PT2H",
- "PT4H",
- "PT8H",
- "PT10H",
- "PT12H"
+ "P1W/1970-01-04T00:00:00Z"
],
"example": "P1D",
"nullable": true,
@@ -958,6 +1111,7 @@
">=",
"<=",
"LIKE",
+ "NOT LIKE",
"ILIKE",
"IS NULL",
"IS NOT NULL",
@@ -1098,8 +1252,10 @@
"geodetic_parse",
"geohash_decode",
"geohash_encode",
+ "histogram",
"pivot",
"prophet",
+ "rank",
"rename",
"resample",
"rolling",
@@ -1173,12 +1329,7 @@
"1969-12-28T00:00:00Z/P1W",
"1969-12-29T00:00:00Z/P1W",
"P1W/1970-01-03T00:00:00Z",
- "P1W/1970-01-04T00:00:00Z",
- "PT2H",
- "PT4H",
- "PT8H",
- "PT10H",
- "PT12H"
+ "P1W/1970-01-04T00:00:00Z"
],
"example": "P1D",
"type": "string"
@@ -1603,7 +1754,7 @@
"type": "boolean"
},
"owners": {
- "$ref": "#/components/schemas/ChartDataRestApi.get.User"
+ "$ref": "#/components/schemas/ChartDataRestApi.get.AppleUser"
},
"params": {
"nullable": true,
@@ -1635,6 +1786,23 @@
},
"type": "object"
},
+ "ChartDataRestApi.get.AppleUser": {
+ "properties": {
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["first_name", "last_name"],
+ "type": "object"
+ },
"ChartDataRestApi.get.Dashboard": {
"properties": {
"dashboard_title": {
@@ -1668,23 +1836,6 @@
},
"type": "object"
},
- "ChartDataRestApi.get.User": {
- "properties": {
- "first_name": {
- "maxLength": 64,
- "type": "string"
- },
- "id": {
- "type": "integer"
- },
- "last_name": {
- "maxLength": 64,
- "type": "string"
- }
- },
- "required": ["first_name", "last_name"],
- "type": "object"
- },
"ChartDataRestApi.get_list": {
"properties": {
"cache_timeout": {
@@ -1700,7 +1851,7 @@
"type": "string"
},
"changed_by": {
- "$ref": "#/components/schemas/ChartDataRestApi.get_list.User3"
+ "$ref": "#/components/schemas/ChartDataRestApi.get_list.User"
},
"changed_by_name": {
"readOnly": true
@@ -1715,7 +1866,7 @@
"readOnly": true
},
"created_by": {
- "$ref": "#/components/schemas/ChartDataRestApi.get_list.User"
+ "$ref": "#/components/schemas/ChartDataRestApi.get_list.User1"
},
"created_by_name": {
"readOnly": true
@@ -1766,10 +1917,10 @@
"type": "string"
},
"last_saved_by": {
- "$ref": "#/components/schemas/ChartDataRestApi.get_list.User2"
+ "$ref": "#/components/schemas/ChartDataRestApi.get_list.AppleUser"
},
"owners": {
- "$ref": "#/components/schemas/ChartDataRestApi.get_list.User1"
+ "$ref": "#/components/schemas/ChartDataRestApi.get_list.AppleUser1"
},
"params": {
"nullable": true,
@@ -1803,6 +1954,40 @@
},
"type": "object"
},
+ "ChartDataRestApi.get_list.AppleUser": {
+ "properties": {
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["first_name", "last_name"],
+ "type": "object"
+ },
+ "ChartDataRestApi.get_list.AppleUser1": {
+ "properties": {
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["first_name", "last_name"],
+ "type": "object"
+ },
"ChartDataRestApi.get_list.Dashboard": {
"properties": {
"dashboard_title": {
@@ -1880,37 +2065,6 @@
"required": ["first_name", "last_name"],
"type": "object"
},
- "ChartDataRestApi.get_list.User2": {
- "properties": {
- "first_name": {
- "maxLength": 64,
- "type": "string"
- },
- "id": {
- "type": "integer"
- },
- "last_name": {
- "maxLength": 64,
- "type": "string"
- }
- },
- "required": ["first_name", "last_name"],
- "type": "object"
- },
- "ChartDataRestApi.get_list.User3": {
- "properties": {
- "first_name": {
- "maxLength": 64,
- "type": "string"
- },
- "last_name": {
- "maxLength": 64,
- "type": "string"
- }
- },
- "required": ["first_name", "last_name"],
- "type": "object"
- },
"ChartDataRestApi.post": {
"properties": {
"cache_timeout": {
@@ -1946,14 +2100,7 @@
},
"datasource_type": {
"description": "The type of dataset/datasource identified on `datasource_id`.",
- "enum": [
- "sl_table",
- "table",
- "dataset",
- "query",
- "saved_query",
- "view"
- ],
+ "enum": ["table", "dataset", "query", "saved_query", "view"],
"type": "string"
},
"description": {
@@ -1987,7 +2134,7 @@
"type": "string"
},
"query_context_generation": {
- "description": "The query context generation represents whether the query_contextis user generated or not so that it does not update user modfiedstate.",
+ "description": "The query context generation represents whether the query_contextis user generated or not so that it does not update user modifiedstate.",
"nullable": true,
"type": "boolean"
},
@@ -2039,14 +2186,7 @@
},
"datasource_type": {
"description": "The type of dataset/datasource identified on `datasource_id`.",
- "enum": [
- "sl_table",
- "table",
- "dataset",
- "query",
- "saved_query",
- "view"
- ],
+ "enum": ["table", "dataset", "query", "saved_query", "view"],
"nullable": true,
"type": "string"
},
@@ -2081,7 +2221,7 @@
"type": "string"
},
"query_context_generation": {
- "description": "The query context generation represents whether the query_contextis user generated or not so that it does not update user modfiedstate.",
+ "description": "The query context generation represents whether the query_contextis user generated or not so that it does not update user modifiedstate.",
"nullable": true,
"type": "boolean"
},
@@ -2094,7 +2234,8 @@
},
"tags": {
"items": {
- "$ref": "#/components/schemas/Tag"
+ "description": "Tags to be associated with the chart",
+ "type": "integer"
},
"type": "array"
},
@@ -2371,7 +2512,7 @@
"type": "boolean"
},
"owners": {
- "$ref": "#/components/schemas/ChartRestApi.get.User"
+ "$ref": "#/components/schemas/ChartRestApi.get.AppleUser"
},
"params": {
"nullable": true,
@@ -2403,6 +2544,23 @@
},
"type": "object"
},
+ "ChartRestApi.get.AppleUser": {
+ "properties": {
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["first_name", "last_name"],
+ "type": "object"
+ },
"ChartRestApi.get.Dashboard": {
"properties": {
"dashboard_title": {
@@ -2436,23 +2594,6 @@
},
"type": "object"
},
- "ChartRestApi.get.User": {
- "properties": {
- "first_name": {
- "maxLength": 64,
- "type": "string"
- },
- "id": {
- "type": "integer"
- },
- "last_name": {
- "maxLength": 64,
- "type": "string"
- }
- },
- "required": ["first_name", "last_name"],
- "type": "object"
- },
"ChartRestApi.get_list": {
"properties": {
"cache_timeout": {
@@ -2468,7 +2609,7 @@
"type": "string"
},
"changed_by": {
- "$ref": "#/components/schemas/ChartRestApi.get_list.User3"
+ "$ref": "#/components/schemas/ChartRestApi.get_list.User"
},
"changed_by_name": {
"readOnly": true
@@ -2483,7 +2624,7 @@
"readOnly": true
},
"created_by": {
- "$ref": "#/components/schemas/ChartRestApi.get_list.User"
+ "$ref": "#/components/schemas/ChartRestApi.get_list.User1"
},
"created_by_name": {
"readOnly": true
@@ -2534,10 +2675,10 @@
"type": "string"
},
"last_saved_by": {
- "$ref": "#/components/schemas/ChartRestApi.get_list.User2"
+ "$ref": "#/components/schemas/ChartRestApi.get_list.AppleUser"
},
"owners": {
- "$ref": "#/components/schemas/ChartRestApi.get_list.User1"
+ "$ref": "#/components/schemas/ChartRestApi.get_list.AppleUser1"
},
"params": {
"nullable": true,
@@ -2571,84 +2712,84 @@
},
"type": "object"
},
- "ChartRestApi.get_list.Dashboard": {
+ "ChartRestApi.get_list.AppleUser": {
"properties": {
- "dashboard_title": {
- "maxLength": 500,
- "nullable": true,
+ "first_name": {
+ "maxLength": 64,
"type": "string"
},
"id": {
"type": "integer"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
}
},
+ "required": ["first_name", "last_name"],
"type": "object"
},
- "ChartRestApi.get_list.SqlaTable": {
+ "ChartRestApi.get_list.AppleUser1": {
"properties": {
- "default_endpoint": {
- "nullable": true,
+ "first_name": {
+ "maxLength": 64,
"type": "string"
},
- "table_name": {
- "maxLength": 250,
+ "id": {
+ "type": "integer"
+ },
+ "last_name": {
+ "maxLength": 64,
"type": "string"
}
},
- "required": ["table_name"],
+ "required": ["first_name", "last_name"],
"type": "object"
},
- "ChartRestApi.get_list.Tag": {
+ "ChartRestApi.get_list.Dashboard": {
"properties": {
- "id": {
- "type": "integer"
- },
- "name": {
- "maxLength": 250,
+ "dashboard_title": {
+ "maxLength": 500,
"nullable": true,
"type": "string"
},
- "type": {
- "enum": [1, 2, 3, 4]
+ "id": {
+ "type": "integer"
}
},
"type": "object"
},
- "ChartRestApi.get_list.User": {
+ "ChartRestApi.get_list.SqlaTable": {
"properties": {
- "first_name": {
- "maxLength": 64,
+ "default_endpoint": {
+ "nullable": true,
"type": "string"
},
- "id": {
- "type": "integer"
- },
- "last_name": {
- "maxLength": 64,
+ "table_name": {
+ "maxLength": 250,
"type": "string"
}
},
- "required": ["first_name", "last_name"],
+ "required": ["table_name"],
"type": "object"
},
- "ChartRestApi.get_list.User1": {
+ "ChartRestApi.get_list.Tag": {
"properties": {
- "first_name": {
- "maxLength": 64,
- "type": "string"
- },
"id": {
"type": "integer"
},
- "last_name": {
- "maxLength": 64,
+ "name": {
+ "maxLength": 250,
+ "nullable": true,
"type": "string"
+ },
+ "type": {
+ "enum": [1, 2, 3, 4]
}
},
- "required": ["first_name", "last_name"],
"type": "object"
},
- "ChartRestApi.get_list.User2": {
+ "ChartRestApi.get_list.User": {
"properties": {
"first_name": {
"maxLength": 64,
@@ -2665,12 +2806,15 @@
"required": ["first_name", "last_name"],
"type": "object"
},
- "ChartRestApi.get_list.User3": {
+ "ChartRestApi.get_list.User1": {
"properties": {
"first_name": {
"maxLength": 64,
"type": "string"
},
+ "id": {
+ "type": "integer"
+ },
"last_name": {
"maxLength": 64,
"type": "string"
@@ -2714,14 +2858,7 @@
},
"datasource_type": {
"description": "The type of dataset/datasource identified on `datasource_id`.",
- "enum": [
- "sl_table",
- "table",
- "dataset",
- "query",
- "saved_query",
- "view"
- ],
+ "enum": ["table", "dataset", "query", "saved_query", "view"],
"type": "string"
},
"description": {
@@ -2755,7 +2892,7 @@
"type": "string"
},
"query_context_generation": {
- "description": "The query context generation represents whether the query_contextis user generated or not so that it does not update user modfiedstate.",
+ "description": "The query context generation represents whether the query_contextis user generated or not so that it does not update user modifiedstate.",
"nullable": true,
"type": "boolean"
},
@@ -2807,14 +2944,7 @@
},
"datasource_type": {
"description": "The type of dataset/datasource identified on `datasource_id`.",
- "enum": [
- "sl_table",
- "table",
- "dataset",
- "query",
- "saved_query",
- "view"
- ],
+ "enum": ["table", "dataset", "query", "saved_query", "view"],
"nullable": true,
"type": "string"
},
@@ -2849,7 +2979,7 @@
"type": "string"
},
"query_context_generation": {
- "description": "The query context generation represents whether the query_contextis user generated or not so that it does not update user modfiedstate.",
+ "description": "The query context generation represents whether the query_contextis user generated or not so that it does not update user modifiedstate.",
"nullable": true,
"type": "boolean"
},
@@ -2862,7 +2992,8 @@
},
"tags": {
"items": {
- "$ref": "#/components/schemas/Tag"
+ "description": "Tags to be associated with the chart",
+ "type": "integer"
},
"type": "array"
},
@@ -2877,11 +3008,70 @@
},
"type": "object"
},
+ "ColumnarMetadataUploadFilePostSchema": {
+ "properties": {
+ "file": {
+ "description": "The file to upload",
+ "format": "binary",
+ "type": "string"
+ }
+ },
+ "required": ["file"],
+ "type": "object"
+ },
+ "ColumnarUploadPostSchema": {
+ "properties": {
+ "already_exists": {
+ "default": "fail",
+ "description": "What to do if the table already exists accepts: fail, replace, append",
+ "enum": ["fail", "replace", "append"],
+ "type": "string"
+ },
+ "columns_read": {
+ "description": "A List of the column names that should be read",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "dataframe_index": {
+ "description": "Write dataframe index as a column.",
+ "type": "boolean"
+ },
+ "file": {
+ "description": "The Columnar file to upload",
+ "format": "binary",
+ "type": "string"
+ },
+ "index_label": {
+ "description": "Index label for index column.",
+ "type": "string"
+ },
+ "schema": {
+ "description": "The schema to upload the data file to.",
+ "type": "string"
+ },
+ "table_name": {
+ "description": "The name of the table to be created/appended",
+ "maxLength": 10000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": ["file", "table_name"],
+ "type": "object"
+ },
"CssTemplateRestApi.get": {
"properties": {
- "created_by": {
+ "changed_by": {
"$ref": "#/components/schemas/CssTemplateRestApi.get.User"
},
+ "changed_on_delta_humanized": {
+ "readOnly": true
+ },
+ "created_by": {
+ "$ref": "#/components/schemas/CssTemplateRestApi.get.User1"
+ },
"css": {
"nullable": true,
"type": "string"
@@ -2914,16 +3104,33 @@
"required": ["first_name", "last_name"],
"type": "object"
},
+ "CssTemplateRestApi.get.User1": {
+ "properties": {
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["first_name", "last_name"],
+ "type": "object"
+ },
"CssTemplateRestApi.get_list": {
"properties": {
"changed_by": {
- "$ref": "#/components/schemas/CssTemplateRestApi.get_list.User1"
+ "$ref": "#/components/schemas/CssTemplateRestApi.get_list.User"
},
"changed_on_delta_humanized": {
"readOnly": true
},
"created_by": {
- "$ref": "#/components/schemas/CssTemplateRestApi.get_list.User"
+ "$ref": "#/components/schemas/CssTemplateRestApi.get_list.User1"
},
"created_on": {
"format": "date-time",
@@ -3007,6 +3214,23 @@
},
"type": "object"
},
+ "DashboardCacheScreenshotResponseSchema": {
+ "properties": {
+ "cache_key": {
+ "description": "The cache key",
+ "type": "string"
+ },
+ "dashboard_url": {
+ "description": "The url to render the dashboard",
+ "type": "string"
+ },
+ "image_url": {
+ "description": "The url to fetch the screenshot",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
"DashboardCopySchema": {
"properties": {
"css": {
@@ -3034,27 +3258,30 @@
},
"DashboardDatasetSchema": {
"properties": {
+ "always_filter_main_dttm": {
+ "type": "boolean"
+ },
"cache_timeout": {
"type": "integer"
},
"column_formats": {
"type": "object"
},
- "column_types": {
+ "column_names": {
"items": {
- "type": "integer"
+ "type": "string"
},
"type": "array"
},
- "columns": {
+ "column_types": {
"items": {
- "type": "object"
+ "type": "integer"
},
"type": "array"
},
- "column_names": {
+ "columns": {
"items": {
- "type": "string"
+ "type": "object"
},
"type": "array"
},
@@ -3112,6 +3339,9 @@
"name": {
"type": "string"
},
+ "normalize_columns": {
+ "type": "boolean"
+ },
"offset": {
"type": "integer"
},
@@ -3205,6 +3435,12 @@
},
"type": "array"
},
+ "created_by": {
+ "$ref": "#/components/schemas/User"
+ },
+ "created_on_delta_humanized": {
+ "type": "string"
+ },
"css": {
"description": "Override CSS for the dashboard.",
"type": "string"
@@ -3248,7 +3484,7 @@
},
"tags": {
"items": {
- "$ref": "#/components/schemas/Tag1"
+ "$ref": "#/components/schemas/Tag"
},
"type": "array"
},
@@ -3312,7 +3548,7 @@
"type": "string"
},
"changed_by": {
- "$ref": "#/components/schemas/DashboardRestApi.get_list.User2"
+ "$ref": "#/components/schemas/DashboardRestApi.get_list.User"
},
"changed_by_name": {
"readOnly": true
@@ -3324,7 +3560,7 @@
"readOnly": true
},
"created_by": {
- "$ref": "#/components/schemas/DashboardRestApi.get_list.User"
+ "$ref": "#/components/schemas/DashboardRestApi.get_list.User1"
},
"created_on_delta_humanized": {
"readOnly": true
@@ -3349,7 +3585,7 @@
"type": "string"
},
"owners": {
- "$ref": "#/components/schemas/DashboardRestApi.get_list.User1"
+ "$ref": "#/components/schemas/DashboardRestApi.get_list.AppleUser"
},
"position_json": {
"nullable": true,
@@ -3382,6 +3618,23 @@
},
"type": "object"
},
+ "DashboardRestApi.get_list.AppleUser": {
+ "properties": {
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["first_name", "last_name"],
+ "type": "object"
+ },
"DashboardRestApi.get_list.Role": {
"properties": {
"id": {
@@ -3445,23 +3698,6 @@
"required": ["first_name", "last_name"],
"type": "object"
},
- "DashboardRestApi.get_list.User2": {
- "properties": {
- "first_name": {
- "maxLength": 64,
- "type": "string"
- },
- "id": {
- "type": "integer"
- },
- "last_name": {
- "maxLength": 64,
- "type": "string"
- }
- },
- "required": ["first_name", "last_name"],
- "type": "object"
- },
"DashboardRestApi.post": {
"properties": {
"certification_details": {
@@ -3598,12 +3834,23 @@
"minLength": 0,
"nullable": true,
"type": "string"
+ },
+ "tags": {
+ "items": {
+ "description": "Tags to be associated with the dashboard",
+ "nullable": true,
+ "type": "integer"
+ },
+ "type": "array"
}
},
"type": "object"
},
"Database": {
"properties": {
+ "allow_multi_catalog": {
+ "type": "boolean"
+ },
"allows_cost_estimate": {
"type": "boolean"
},
@@ -3691,15 +3938,14 @@
"type": "string"
},
"engine_information": {
- "additionalProperties": {},
- "type": "object"
+ "$ref": "#/components/schemas/EngineInformation"
},
"expose_in_sqllab": {
"description": "Expose this database to SQLLab",
"type": "boolean"
},
"extra": {
- "description": "<p>JSON string containing extra configuration elements.<br>1. The <code>engine_params</code> object gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/latest/core/engines.html#sqlalchemy.create_engine\" rel=\"noopener noreferrer\">sqlalchemy.create_engine</a> call, while the <code>metadata_params</code> gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/rel_1_0/core/metadata.html#sqlalchemy.schema.MetaData\" rel=\"noopener noreferrer\ [...]
+ "description": "<p>JSON string containing extra configuration elements.<br>1. The <code>engine_params</code> object gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/latest/core/engines.html#sqlalchemy.create_engine\" rel=\"noopener noreferrer\">sqlalchemy.create_engine</a> call, while the <code>metadata_params</code> gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/rel_1_0/core/metadata.html#sqlalchemy.schema.MetaData\" rel=\"noopener noreferrer\ [...]
"type": "string"
},
"force_ctas_schema": {
@@ -3936,6 +4182,9 @@
"nullable": true,
"type": "boolean"
},
+ "allow_multi_catalog": {
+ "readOnly": true
+ },
"allow_run_async": {
"nullable": true,
"type": "boolean"
@@ -3952,6 +4201,9 @@
"backend": {
"readOnly": true
},
+ "changed_by": {
+ "$ref": "#/components/schemas/DatabaseRestApi.get_list.User"
+ },
"changed_on": {
"format": "date-time",
"nullable": true,
@@ -3961,7 +4213,7 @@
"readOnly": true
},
"created_by": {
- "$ref": "#/components/schemas/DatabaseRestApi.get_list.User"
+ "$ref": "#/components/schemas/DatabaseRestApi.get_list.User1"
},
"database_name": {
"maxLength": 250,
@@ -3970,6 +4222,9 @@
"disable_data_preview": {
"readOnly": true
},
+ "disable_drill_to_detail": {
+ "readOnly": true
+ },
"engine_information": {
"readOnly": true
},
@@ -4015,6 +4270,20 @@
"required": ["first_name", "last_name"],
"type": "object"
},
+ "DatabaseRestApi.get_list.User1": {
+ "properties": {
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["first_name", "last_name"],
+ "type": "object"
+ },
"DatabaseRestApi.post": {
"properties": {
"allow_ctas": {
@@ -4072,7 +4341,7 @@
"type": "string"
},
"extra": {
- "description": "<p>JSON string containing extra configuration elements.<br>1. The <code>engine_params</code> object gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/latest/core/engines.html#sqlalchemy.create_engine\" rel=\"noopener noreferrer\">sqlalchemy.create_engine</a> call, while the <code>metadata_params</code> gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/rel_1_0/core/metadata.html#sqlalchemy.schema.MetaData\" rel=\"noopener noreferrer\ [...]
+ "description": "<p>JSON string containing extra configuration elements.<br>1. The <code>engine_params</code> object gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/latest/core/engines.html#sqlalchemy.create_engine\" rel=\"noopener noreferrer\">sqlalchemy.create_engine</a> call, while the <code>metadata_params</code> gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/rel_1_0/core/metadata.html#sqlalchemy.schema.MetaData\" rel=\"noopener noreferrer\ [...]
"type": "string"
},
"force_ctas_schema": {
@@ -4184,7 +4453,7 @@
"type": "string"
},
"extra": {
- "description": "<p>JSON string containing extra configuration elements.<br>1. The <code>engine_params</code> object gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/latest/core/engines.html#sqlalchemy.create_engine\" rel=\"noopener noreferrer\">sqlalchemy.create_engine</a> call, while the <code>metadata_params</code> gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/rel_1_0/core/metadata.html#sqlalchemy.schema.MetaData\" rel=\"noopener noreferrer\ [...]
+ "description": "<p>JSON string containing extra configuration elements.<br>1. The <code>engine_params</code> object gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/latest/core/engines.html#sqlalchemy.create_engine\" rel=\"noopener noreferrer\">sqlalchemy.create_engine</a> call, while the <code>metadata_params</code> gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/rel_1_0/core/metadata.html#sqlalchemy.schema.MetaData\" rel=\"noopener noreferrer\ [...]
"type": "string"
},
"force_ctas_schema": {
@@ -4319,7 +4588,7 @@
"type": "string"
},
"extra": {
- "description": "<p>JSON string containing extra configuration elements.<br>1. The <code>engine_params</code> object gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/latest/core/engines.html#sqlalchemy.create_engine\" rel=\"noopener noreferrer\">sqlalchemy.create_engine</a> call, while the <code>metadata_params</code> gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/rel_1_0/core/metadata.html#sqlalchemy.schema.MetaData\" rel=\"noopener noreferrer\ [...]
+ "description": "<p>JSON string containing extra configuration elements.<br>1. The <code>engine_params</code> object gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/latest/core/engines.html#sqlalchemy.create_engine\" rel=\"noopener noreferrer\">sqlalchemy.create_engine</a> call, while the <code>metadata_params</code> gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/rel_1_0/core/metadata.html#sqlalchemy.schema.MetaData\" rel=\"noopener noreferrer\ [...]
"type": "string"
},
"impersonate_user": {
@@ -4388,7 +4657,7 @@
"type": "string"
},
"extra": {
- "description": "<p>JSON string containing extra configuration elements.<br>1. The <code>engine_params</code> object gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/latest/core/engines.html#sqlalchemy.create_engine\" rel=\"noopener noreferrer\">sqlalchemy.create_engine</a> call, while the <code>metadata_params</code> gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/rel_1_0/core/metadata.html#sqlalchemy.schema.MetaData\" rel=\"noopener noreferrer\ [...]
+ "description": "<p>JSON string containing extra configuration elements.<br>1. The <code>engine_params</code> object gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/latest/core/engines.html#sqlalchemy.create_engine\" rel=\"noopener noreferrer\">sqlalchemy.create_engine</a> call, while the <code>metadata_params</code> gets unpacked into the <a href=\"https://docs.sqlalchemy.org/en/rel_1_0/core/metadata.html#sqlalchemy.schema.MetaData\" rel=\"noopener noreferrer\ [...]
"type": "string"
},
"id": {
@@ -4915,12 +5184,21 @@
},
"DatasetRestApi.get": {
"properties": {
+ "always_filter_main_dttm": {
+ "nullable": true,
+ "type": "boolean"
+ },
"cache_timeout": {
"nullable": true,
"type": "integer"
},
+ "catalog": {
+ "maxLength": 256,
+ "nullable": true,
+ "type": "string"
+ },
"changed_by": {
- "$ref": "#/components/schemas/DatasetRestApi.get.User2"
+ "$ref": "#/components/schemas/DatasetRestApi.get.User1"
},
"changed_on": {
"format": "date-time",
@@ -5006,6 +5284,10 @@
"name": {
"readOnly": true
},
+ "normalize_columns": {
+ "nullable": true,
+ "type": "boolean"
+ },
"offset": {
"nullable": true,
"type": "integer"
@@ -5014,7 +5296,7 @@
"readOnly": true
},
"owners": {
- "$ref": "#/components/schemas/DatasetRestApi.get.User1"
+ "$ref": "#/components/schemas/DatasetRestApi.get.AppleUser"
},
"schema": {
"maxLength": 255,
@@ -5052,23 +5334,43 @@
"required": ["columns", "database", "metrics", "table_name"],
"type": "object"
},
- "DatasetRestApi.get.Database": {
+ "DatasetRestApi.get.AppleUser": {
"properties": {
- "backend": {
- "readOnly": true
- },
- "database_name": {
- "maxLength": 250,
+ "first_name": {
+ "maxLength": 64,
"type": "string"
},
"id": {
"type": "integer"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
}
},
- "required": ["database_name"],
+ "required": ["first_name", "last_name"],
"type": "object"
},
- "DatasetRestApi.get.SqlMetric": {
+ "DatasetRestApi.get.Database": {
+ "properties": {
+ "allow_multi_catalog": {
+ "readOnly": true
+ },
+ "backend": {
+ "readOnly": true
+ },
+ "database_name": {
+ "maxLength": 250,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ }
+ },
+ "required": ["database_name"],
+ "type": "object"
+ },
+ "DatasetRestApi.get.SqlMetric": {
"properties": {
"changed_on": {
"format": "date-time",
@@ -5224,9 +5526,6 @@
"maxLength": 64,
"type": "string"
},
- "id": {
- "type": "integer"
- },
"last_name": {
"maxLength": 64,
"type": "string"
@@ -5235,24 +5534,15 @@
"required": ["first_name", "last_name"],
"type": "object"
},
- "DatasetRestApi.get.User2": {
+ "DatasetRestApi.get_list": {
"properties": {
- "first_name": {
- "maxLength": 64,
+ "catalog": {
+ "maxLength": 256,
+ "nullable": true,
"type": "string"
},
- "last_name": {
- "maxLength": 64,
- "type": "string"
- }
- },
- "required": ["first_name", "last_name"],
- "type": "object"
- },
- "DatasetRestApi.get_list": {
- "properties": {
"changed_by": {
- "$ref": "#/components/schemas/DatasetRestApi.get_list.User1"
+ "$ref": "#/components/schemas/DatasetRestApi.get_list.User"
},
"changed_by_name": {
"readOnly": true
@@ -5291,7 +5581,7 @@
"readOnly": true
},
"owners": {
- "$ref": "#/components/schemas/DatasetRestApi.get_list.User"
+ "$ref": "#/components/schemas/DatasetRestApi.get_list.AppleUser"
},
"schema": {
"maxLength": 255,
@@ -5310,42 +5600,45 @@
"required": ["database", "table_name"],
"type": "object"
},
- "DatasetRestApi.get_list.Database": {
+ "DatasetRestApi.get_list.AppleUser": {
"properties": {
- "database_name": {
- "maxLength": 250,
+ "first_name": {
+ "maxLength": 64,
"type": "string"
},
"id": {
"type": "integer"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
}
},
- "required": ["database_name"],
+ "required": ["first_name", "last_name"],
"type": "object"
},
- "DatasetRestApi.get_list.User": {
+ "DatasetRestApi.get_list.Database": {
"properties": {
- "first_name": {
- "maxLength": 64,
+ "database_name": {
+ "maxLength": 250,
"type": "string"
},
"id": {
"type": "integer"
- },
- "last_name": {
- "maxLength": 64,
- "type": "string"
}
},
- "required": ["first_name", "last_name"],
+ "required": ["database_name"],
"type": "object"
},
- "DatasetRestApi.get_list.User1": {
+ "DatasetRestApi.get_list.User": {
"properties": {
"first_name": {
"maxLength": 64,
"type": "string"
},
+ "id": {
+ "type": "integer"
+ },
"last_name": {
"maxLength": 64,
"type": "string"
@@ -5356,6 +5649,16 @@
},
"DatasetRestApi.post": {
"properties": {
+ "always_filter_main_dttm": {
+ "default": false,
+ "type": "boolean"
+ },
+ "catalog": {
+ "maxLength": 250,
+ "minLength": 0,
+ "nullable": true,
+ "type": "string"
+ },
"database": {
"type": "integer"
},
@@ -5367,6 +5670,10 @@
"nullable": true,
"type": "boolean"
},
+ "normalize_columns": {
+ "default": false,
+ "type": "boolean"
+ },
"owners": {
"items": {
"type": "integer"
@@ -5394,10 +5701,20 @@
},
"DatasetRestApi.put": {
"properties": {
+ "always_filter_main_dttm": {
+ "default": false,
+ "type": "boolean"
+ },
"cache_timeout": {
"nullable": true,
"type": "integer"
},
+ "catalog": {
+ "maxLength": 250,
+ "minLength": 0,
+ "nullable": true,
+ "type": "string"
+ },
"columns": {
"items": {
"$ref": "#/components/schemas/DatasetColumnsPut"
@@ -5451,6 +5768,10 @@
},
"type": "array"
},
+ "normalize_columns": {
+ "nullable": true,
+ "type": "boolean"
+ },
"offset": {
"nullable": true,
"type": "integer"
@@ -5486,6 +5807,11 @@
},
"Datasource": {
"properties": {
+ "catalog": {
+ "description": "Datasource catalog",
+ "nullable": true,
+ "type": "string"
+ },
"database_name": {
"description": "Datasource name",
"type": "string"
@@ -5496,14 +5822,7 @@
},
"datasource_type": {
"description": "The type of dataset/datasource identified on `datasource_id`.",
- "enum": [
- "sl_table",
- "table",
- "dataset",
- "query",
- "saved_query",
- "view"
- ],
+ "enum": ["table", "dataset", "query", "saved_query", "view"],
"type": "string"
},
"schema": {
@@ -5610,8 +5929,34 @@
},
"type": "object"
},
+ "EngineInformation": {
+ "properties": {
+ "disable_ssh_tunneling": {
+ "description": "SSH tunnel is not available to the database",
+ "type": "boolean"
+ },
+ "supports_dynamic_catalog": {
+ "description": "The database supports multiple catalogs in a single connection",
+ "type": "boolean"
+ },
+ "supports_file_upload": {
+ "description": "Users can upload files to the database",
+ "type": "boolean"
+ },
+ "supports_oauth2": {
+ "description": "The database supports OAuth2",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
"EstimateQueryCostSchema": {
"properties": {
+ "catalog": {
+ "description": "The database catalog",
+ "nullable": true,
+ "type": "string"
+ },
"database_id": {
"description": "The database id",
"type": "integer"
@@ -5633,8 +5978,109 @@
"required": ["database_id", "sql"],
"type": "object"
},
+ "ExcelMetadataUploadFilePostSchema": {
+ "properties": {
+ "file": {
+ "description": "The file to upload",
+ "format": "binary",
+ "type": "string"
+ },
+ "header_row": {
+ "description": "Row containing the headers to use as column names(0 is first line of data). Leave empty if there is no header row.",
+ "type": "integer"
+ }
+ },
+ "required": ["file"],
+ "type": "object"
+ },
+ "ExcelUploadPostSchema": {
+ "properties": {
+ "already_exists": {
+ "default": "fail",
+ "description": "What to do if the table already exists accepts: fail, replace, append",
+ "enum": ["fail", "replace", "append"],
+ "type": "string"
+ },
+ "column_dates": {
+ "description": "A list of column names that should be parsed as dates. Example: date,timestamp",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "columns_read": {
+ "description": "A List of the column names that should be read",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "dataframe_index": {
+ "description": "Write dataframe index as a column.",
+ "type": "boolean"
+ },
+ "decimal_character": {
+ "description": "Character to recognize as decimal point. Default is '.'",
+ "type": "string"
+ },
+ "file": {
+ "description": "The Excel file to upload",
+ "format": "binary",
+ "type": "string"
+ },
+ "header_row": {
+ "description": "Row containing the headers to use as column names(0 is first line of data). Leave empty if there is no header row.",
+ "type": "integer"
+ },
+ "index_column": {
+ "description": "Column to use as the row labels of the dataframe. Leave empty if no index column",
+ "type": "string"
+ },
+ "index_label": {
+ "description": "Index label for index column.",
+ "type": "string"
+ },
+ "null_values": {
+ "description": "A list of strings that should be treated as null. Examples: '' for empty strings, 'None', 'N/A',Warning: Hive database supports only a single value",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "rows_to_read": {
+ "description": "Number of rows to read from the file. If None, reads all rows.",
+ "minimum": 1,
+ "nullable": true,
+ "type": "integer"
+ },
+ "schema": {
+ "description": "The schema to upload the data file to.",
+ "type": "string"
+ },
+ "sheet_name": {
+ "description": "Strings used for sheet names (default is the first sheet).",
+ "type": "string"
+ },
+ "skip_rows": {
+ "description": "Number of rows to skip at start of file.",
+ "type": "integer"
+ },
+ "table_name": {
+ "description": "The name of the table to be created/appended",
+ "maxLength": 10000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": ["file", "table_name"],
+ "type": "object"
+ },
"ExecutePayloadSchema": {
"properties": {
+ "catalog": {
+ "nullable": true,
+ "type": "string"
+ },
"client_id": {
"nullable": true,
"type": "string"
@@ -5743,14 +6189,7 @@
},
"datasource_type": {
"description": "The datasource type",
- "enum": [
- "sl_table",
- "table",
- "dataset",
- "query",
- "saved_query",
- "view"
- ],
+ "enum": ["table", "dataset", "query", "saved_query", "view"],
"type": "string"
},
"form_data": {
@@ -5773,14 +6212,7 @@
},
"datasource_type": {
"description": "The datasource type",
- "enum": [
- "sl_table",
- "table",
- "dataset",
- "query",
- "saved_query",
- "view"
- ],
+ "enum": ["table", "dataset", "query", "saved_query", "view"],
"type": "string"
},
"form_data": {
@@ -5805,10 +6237,25 @@
},
"GetOrCreateDatasetSchema": {
"properties": {
+ "always_filter_main_dttm": {
+ "default": false,
+ "type": "boolean"
+ },
+ "catalog": {
+ "description": "The catalog the table belongs to",
+ "maxLength": 250,
+ "minLength": 0,
+ "nullable": true,
+ "type": "string"
+ },
"database_id": {
"description": "ID of database table belongs to",
"type": "integer"
},
+ "normalize_columns": {
+ "default": false,
+ "type": "boolean"
+ },
"schema": {
"description": "The schema the table belongs to",
"maxLength": 250,
@@ -5849,1549 +6296,2088 @@
"required": ["resources", "rls"],
"type": "object"
},
- "LogRestApi.get": {
+ "IASLoginTokenRequestSchema": {
"properties": {
- "action": {
- "maxLength": 512,
+ "access_token": {
+ "description": "IAS Access token. Can be requested by adding `token` to the `responseTypes`.",
"nullable": true,
"type": "string"
},
- "dashboard_id": {
- "nullable": true,
- "type": "integer"
- },
- "dttm": {
- "format": "date-time",
+ "client_id": {
+ "description": "IAS client id. Only needed if `refresh_token` is provided.",
"nullable": true,
"type": "string"
},
- "duration_ms": {
- "nullable": true,
- "type": "integer"
- },
- "json": {
+ "client_secret": {
+ "description": "IAS client secret. Only needed if `refresh_token` and `client_id` is provided.",
"nullable": true,
"type": "string"
},
- "referrer": {
- "maxLength": 1024,
- "nullable": true,
+ "id_token": {
+ "description": "IAS ID token. Can be requested by adding `id_token` to the `responseTypes`. The following scopes should be added:`iam:ds:groups`, `corpds:ds:username`, `corpds:ds:firstName`, `corpds:ds:lastName`, `corpds:ds:email`, `corpds:ds:uidNumber`, `iam:ds:explicitgroups`.",
"type": "string"
},
- "slice_id": {
- "nullable": true,
- "type": "integer"
- },
- "user": {
- "$ref": "#/components/schemas/LogRestApi.get.User"
- },
- "user_id": {
+ "refresh_token": {
+ "description": "IAS refresh token. This can be requested by adding `offline` to `scopes`. To be able to refresh the token, the IAS `client_id` and `client_secret` need to be added, as the same client needs to be used for refreshing as logging in.",
"nullable": true,
- "type": "integer"
+ "type": "string"
}
},
+ "required": ["id_token"],
"type": "object"
},
- "LogRestApi.get.User": {
+ "IASLoginTokenResponseSchema": {
"properties": {
- "username": {
- "maxLength": 64,
+ "access_token": {
+ "description": "Access that can be used access the Superset API",
+ "type": "string"
+ },
+ "refresh_token": {
+ "description": "Refresh token that can be used to refresh the `access_token`",
"type": "string"
}
},
- "required": ["username"],
+ "required": ["access_token"],
"type": "object"
},
- "LogRestApi.get_list": {
+ "IASProfileResponse": {
"properties": {
- "action": {
- "maxLength": 512,
- "nullable": true,
- "type": "string"
- },
- "dashboard_id": {
- "nullable": true,
- "type": "integer"
- },
- "dttm": {
- "format": "date-time",
- "nullable": true,
+ "client_id": {
+ "description": "The client id",
"type": "string"
},
- "duration_ms": {
- "nullable": true,
- "type": "integer"
- },
- "json": {
- "nullable": true,
+ "profile": {
+ "description": "The IAS profile",
"type": "string"
},
- "referrer": {
- "maxLength": 1024,
- "nullable": true,
+ "scope": {
+ "description": "The scope of the client",
"type": "string"
- },
- "slice_id": {
- "nullable": true,
- "type": "integer"
- },
- "user": {
- "$ref": "#/components/schemas/LogRestApi.get_list.User"
- },
- "user_id": {
- "nullable": true,
- "type": "integer"
}
},
+ "required": ["client_id", "profile"],
"type": "object"
},
- "LogRestApi.get_list.User": {
+ "IASProfilesResponseSchema": {
"properties": {
- "username": {
- "maxLength": 64,
- "type": "string"
- }
- },
- "required": ["username"],
- "type": "object"
- },
- "LogRestApi.post": {
- "properties": {
- "id": {
- "type": "integer"
+ "result": {
+ "description": "A list of all available IAS profiles",
+ "items": {
+ "$ref": "#/components/schemas/IASProfileResponse"
+ },
+ "type": "array"
}
},
"type": "object"
},
- "LogRestApi.put": {
+ "IASTokenResponse": {
"properties": {
- "action": {
- "maxLength": 512,
- "nullable": true,
+ "access_token": {
+ "description": "The access token",
"type": "string"
},
- "dttm": {
- "format": "date-time",
- "nullable": true,
- "type": "string"
+ "has_client_credentials": {
+ "description": "Are the original client credentials available or not",
+ "type": "boolean"
},
- "json": {
- "nullable": true,
+ "has_refresh_token": {
+ "description": "Is there a refresh token available or not",
+ "type": "boolean"
+ },
+ "ias_profile": {
+ "description": "The IAS profile",
"type": "string"
},
- "user": {
- "nullable": true
+ "id_token": {
+ "description": "The id token",
+ "type": "string"
}
},
+ "required": [
+ "has_client_credentials",
+ "has_refresh_token",
+ "ias_profile",
+ "id_token"
+ ],
"type": "object"
},
- "QueryExecutionResponseSchema": {
+ "IASTokensResponseSchema": {
"properties": {
- "columns": {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "data": {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "expanded_columns": {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "query": {
- "$ref": "#/components/schemas/QueryResult"
- },
- "query_id": {
- "type": "integer"
- },
- "selected_columns": {
+ "result": {
+ "description": "A list of all requested tokens",
"items": {
- "type": "object"
+ "$ref": "#/components/schemas/IASTokenResponse"
},
"type": "array"
- },
- "status": {
- "type": "string"
}
},
"type": "object"
},
- "QueryRestApi.get": {
+ "ImportV1Database": {
"properties": {
- "changed_on": {
- "format": "date-time",
- "nullable": true,
- "type": "string"
+ "allow_csv_upload": {
+ "type": "boolean"
},
- "client_id": {
- "maxLength": 11,
- "type": "string"
+ "allow_ctas": {
+ "type": "boolean"
},
- "database": {
- "$ref": "#/components/schemas/QueryRestApi.get.Database"
+ "allow_cvas": {
+ "type": "boolean"
},
- "end_result_backend_time": {
- "nullable": true,
- "type": "number"
+ "allow_dml": {
+ "type": "boolean"
},
- "end_time": {
- "nullable": true,
- "type": "number"
+ "allow_run_async": {
+ "type": "boolean"
},
- "error_message": {
+ "cache_timeout": {
"nullable": true,
+ "type": "integer"
+ },
+ "database_name": {
"type": "string"
},
- "executed_sql": {
+ "expose_in_sqllab": {
+ "type": "boolean"
+ },
+ "external_url": {
"nullable": true,
"type": "string"
},
- "id": {
- "type": "integer"
+ "extra": {
+ "$ref": "#/components/schemas/ImportV1DatabaseExtra"
},
- "limit": {
- "nullable": true,
- "type": "integer"
+ "impersonate_user": {
+ "type": "boolean"
},
- "progress": {
+ "is_managed_externally": {
"nullable": true,
- "type": "integer"
+ "type": "boolean"
},
- "results_key": {
- "maxLength": 64,
+ "password": {
"nullable": true,
"type": "string"
},
- "rows": {
- "nullable": true,
- "type": "integer"
+ "sqlalchemy_uri": {
+ "type": "string"
},
- "schema": {
- "maxLength": 256,
- "nullable": true,
+ "ssh_tunnel": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/DatabaseSSHTunnel"
+ }
+ ],
+ "nullable": true
+ },
+ "uuid": {
+ "format": "uuid",
"type": "string"
},
- "select_as_cta": {
- "nullable": true,
+ "version": {
+ "type": "string"
+ }
+ },
+ "required": ["database_name", "sqlalchemy_uri", "uuid", "version"],
+ "type": "object"
+ },
+ "ImportV1DatabaseExtra": {
+ "properties": {
+ "allow_multi_catalog": {
"type": "boolean"
},
- "select_as_cta_used": {
- "nullable": true,
+ "allows_virtual_table_explore": {
"type": "boolean"
},
- "select_sql": {
- "nullable": true,
- "type": "string"
+ "cancel_query_on_windows_unload": {
+ "type": "boolean"
},
- "sql": {
- "nullable": true,
- "type": "string"
+ "cost_estimate_enabled": {
+ "type": "boolean"
},
- "sql_editor_id": {
- "maxLength": 256,
- "nullable": true,
- "type": "string"
+ "disable_data_preview": {
+ "type": "boolean"
},
- "start_running_time": {
- "nullable": true,
- "type": "number"
+ "disable_drill_to_detail": {
+ "type": "boolean"
},
- "start_time": {
- "nullable": true,
- "type": "number"
+ "engine_params": {
+ "additionalProperties": {},
+ "type": "object"
},
- "status": {
- "maxLength": 16,
- "nullable": true,
- "type": "string"
+ "metadata_cache_timeout": {
+ "additionalProperties": {
+ "type": "integer"
+ },
+ "type": "object"
},
- "tab_name": {
- "maxLength": 256,
- "nullable": true,
- "type": "string"
+ "metadata_params": {
+ "additionalProperties": {},
+ "type": "object"
},
- "tmp_schema_name": {
- "maxLength": 256,
- "nullable": true,
- "type": "string"
+ "schemas_allowed_for_csv_upload": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
},
- "tmp_table_name": {
- "maxLength": 256,
+ "version": {
"nullable": true,
"type": "string"
- },
- "tracking_url": {
- "readOnly": true
}
},
- "required": ["client_id", "database"],
"type": "object"
},
- "QueryRestApi.get.Database": {
+ "LakehouseCatalog": {
"properties": {
- "id": {
+ "database_id": {
+ "description": "The numerical id of the database",
"type": "integer"
- }
- },
- "type": "object"
- },
- "QueryRestApi.get_list": {
- "properties": {
- "changed_on": {
- "format": "date-time",
- "type": "string"
- },
- "database": {
- "$ref": "#/components/schemas/Database1"
- },
- "end_time": {
- "type": "number"
},
- "executed_sql": {
+ "database_name": {
+ "description": "The name of the database",
"type": "string"
},
"id": {
+ "description": "The numerical id of the catalog",
"type": "integer"
},
- "rows": {
- "type": "integer"
- },
- "schema": {
+ "name": {
+ "description": "The name of the catalog",
"type": "string"
},
- "sql": {
+ "sqlalchemy_uri": {
+ "description": "The SQLAlchemy URI",
"type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "LakehouseConnectRequestSchema": {
+ "properties": {
+ "catalogs": {
+ "description": "A list of catalogs to connect to. If empty or undefined, connect all available catalogs.",
+ "example": ["my_catalog"],
+ "items": {
+ "type": "string"
+ },
+ "nullable": true,
+ "type": "array"
},
- "sql_tables": {
- "readOnly": true
+ "database_names": {
+ "description": "Custom catalog-database name mappings. If undefined, the default naming convention will be used",
+ "example": {
+ "my_catalog": "my_database"
+ },
+ "nullable": true,
+ "type": "object"
},
- "start_time": {
- "type": "number"
+ "dry_run": {
+ "description": "Should the task be executed in dry run mode. Useful for testing.",
+ "example": false,
+ "type": "boolean"
},
- "status": {
+ "engine_type": {
+ "description": "The type of the engine (only trino is currently supported)",
+ "enum": ["trino"],
+ "example": "trino",
"type": "string"
},
- "tab_name": {
+ "engine_url": {
+ "description": "The URL to the engine",
+ "example": "https://myengine.corp.apple.com",
"type": "string"
},
- "tmp_table_name": {
+ "environment": {
+ "description": "Prod or Int",
+ "enum": ["int", "prod"],
+ "example": "int",
"type": "string"
},
- "tracking_url": {
+ "name": {
+ "description": "The name of the Lakehouse (subject to change over time). If left undefined, use lakehouse id",
+ "example": "My Lakehouse",
+ "nullable": true,
"type": "string"
},
- "user": {
- "$ref": "#/components/schemas/User"
+ "superset_url": {
+ "description": "The URL of the Superset instance connecting to",
+ "example": "http://localhost:8088",
+ "type": "string"
}
},
+ "required": [
+ "engine_type",
+ "engine_url",
+ "environment",
+ "superset_url"
+ ],
"type": "object"
},
- "QueryRestApi.post": {
+ "LakehouseConnectResponseSchema": {
"properties": {
- "id": {
- "type": "integer"
+ "task_id": {
+ "description": "The id of the connection task",
+ "type": "string"
}
},
"type": "object"
},
- "QueryRestApi.put": {
+ "LakehouseConnectResultResponseSchema": {
"properties": {
- "id": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "QueryResult": {
- "properties": {
- "changed_on": {
- "format": "date-time",
- "type": "string"
+ "existing_catalogs": {
+ "description": "A list of connected catalogs before the connect operation",
+ "items": {
+ "description": "Catalogs",
+ "items": {
+ "$ref": "#/components/schemas/LakehouseCatalog"
+ },
+ "type": "array"
+ },
+ "type": "array"
},
- "ctas": {
- "type": "boolean"
+ "lakehouse": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/LakehouseGetResponseSchema"
+ }
+ ],
+ "description": "The connected Lakehouse",
+ "nullable": true
},
- "db": {
+ "message": {
+ "description": "A message to provide additional context on what has happened",
"type": "string"
},
- "dbId": {
- "type": "integer"
- },
- "endDttm": {
- "type": "number"
- },
- "errorMessage": {
- "nullable": true,
- "type": "string"
+ "new_catalogs": {
+ "description": "A list of newly connected catalogs after the connect operation",
+ "items": {
+ "description": "Catalogs",
+ "items": {
+ "$ref": "#/components/schemas/LakehouseCatalog"
+ },
+ "type": "array"
+ },
+ "type": "array"
},
- "executedSql": {
+ "status": {
+ "description": "The status of the task",
+ "enum": [
+ "scheduled",
+ "running",
+ "completed",
+ "failed",
+ "reconnect_failed",
+ "cancelled"
+ ],
"type": "string"
- },
- "extra": {
- "type": "object"
- },
- "id": {
+ }
+ },
+ "required": ["lakehouse"],
+ "type": "object"
+ },
+ "LakehouseConnectStatusResponseSchema": {
+ "properties": {
+ "message": {
+ "description": "A message to provide additional context on what has happened",
"type": "string"
},
- "limit": {
- "type": "integer"
- },
- "limitingFactor": {
+ "status": {
+ "description": "The status of the task",
+ "enum": [
+ "scheduled",
+ "running",
+ "completed",
+ "failed",
+ "reconnect_failed",
+ "cancelled"
+ ],
"type": "string"
- },
- "progress": {
- "type": "integer"
- },
- "queryId": {
- "type": "integer"
- },
- "resultsKey": {
+ }
+ },
+ "type": "object"
+ },
+ "LakehouseDatasetListResponseSchema": {
+ "properties": {
+ "name": {
+ "description": "The name of the dataset",
"type": "string"
},
- "rows": {
- "type": "integer"
- },
"schema": {
+ "description": "The schema",
+ "nullable": true,
"type": "string"
},
- "serverId": {
- "type": "integer"
- },
"sql": {
+ "description": "The virtual dataset query",
"type": "string"
- },
- "sqlEditorId": {
- "type": "string"
- },
- "startDttm": {
- "type": "number"
- },
- "state": {
+ }
+ },
+ "required": ["name", "sql"],
+ "type": "object"
+ },
+ "LakehouseDatasetRequestSchema": {
+ "properties": {
+ "catalog": {
+ "description": "The catalog. If left empty, uses an arbitrary connected catalog.",
+ "nullable": true,
"type": "string"
},
- "tab": {
+ "lakehouse_id": {
+ "description": "Deprecated, not used for anything",
"type": "string"
},
- "tempSchema": {
- "nullable": true,
+ "name": {
+ "description": "The name of the dataset to be created",
"type": "string"
},
- "tempTable": {
- "nullable": true,
- "type": "string"
+ "overwrite": {
+ "default": false,
+ "description": "Should the virtual dataset be overwritten if it already exists",
+ "type": "boolean"
},
- "trackingUrl": {
+ "schema": {
+ "description": "The schema",
"nullable": true,
"type": "string"
},
- "user": {
+ "sql": {
+ "description": "The virtual dataset query",
"type": "string"
- },
- "userId": {
- "type": "integer"
}
},
+ "required": ["name", "sql"],
"type": "object"
},
- "RLSRestApi.get": {
+ "LakehouseDatasetResponseSchema": {
"properties": {
- "clause": {
- "description": "clause_description",
- "type": "string"
- },
- "description": {
- "description": "description_description",
- "type": "string"
- },
- "filter_type": {
- "description": "filter_type_description",
- "enum": ["Regular", "Base"],
+ "url": {
+ "description": "The url for exploring the virtual dataset",
"type": "string"
+ }
+ },
+ "required": ["url"],
+ "type": "object"
+ },
+ "LakehouseDisconnectResponseSchema": {
+ "properties": {
+ "lakehouse": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/LakehouseGetResponseSchema"
+ }
+ ],
+ "description": "A list of disconnected lakehouses"
+ }
+ },
+ "type": "object"
+ },
+ "LakehouseGetListResponseSchema": {
+ "properties": {
+ "lakehouses": {
+ "description": "A list of connected lakehouses",
+ "items": {
+ "$ref": "#/components/schemas/LakehouseGetResponseSchema"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "LakehouseGetResponseSchema": {
+ "properties": {
+ "catalogs": {
+ "description": "A list of connected catalogs",
+ "items": {
+ "description": "Catalogs",
+ "items": {
+ "$ref": "#/components/schemas/LakehouseCatalog"
+ },
+ "type": "array"
+ },
+ "type": "array"
},
- "group_key": {
- "description": "group_key_description",
+ "engine_url": {
+ "description": "The URL uf the engine",
"type": "string"
},
"id": {
- "description": "id_description",
- "type": "integer"
+ "description": "The unique id of the Lakehouse",
+ "type": "string"
},
"name": {
- "description": "name_description",
"type": "string"
},
- "roles": {
- "items": {
- "$ref": "#/components/schemas/Roles1"
- },
- "type": "array"
- },
- "tables": {
- "items": {
- "$ref": "#/components/schemas/Tables"
- },
- "type": "array"
+ "superset_url": {
+ "description": "The URL uf the Superset instance",
+ "type": "string"
}
},
"type": "object"
},
- "RLSRestApi.get_list": {
+ "LogRestApi.get": {
"properties": {
- "changed_on_delta_humanized": {
- "readOnly": true
- },
- "clause": {
- "description": "clause_description",
+ "action": {
+ "maxLength": 512,
+ "nullable": true,
"type": "string"
},
- "description": {
- "description": "description_description",
+ "dashboard_id": {
+ "nullable": true,
+ "type": "integer"
+ },
+ "dttm": {
+ "format": "date-time",
+ "nullable": true,
"type": "string"
},
- "filter_type": {
- "description": "filter_type_description",
- "enum": ["Regular", "Base"],
+ "duration_ms": {
+ "nullable": true,
+ "type": "integer"
+ },
+ "json": {
+ "nullable": true,
"type": "string"
},
- "group_key": {
- "description": "group_key_description",
+ "referrer": {
+ "maxLength": 1024,
+ "nullable": true,
"type": "string"
},
- "id": {
- "description": "id_description",
+ "slice_id": {
+ "nullable": true,
"type": "integer"
},
- "name": {
- "description": "name_description",
- "type": "string"
- },
- "roles": {
- "items": {
- "$ref": "#/components/schemas/Roles1"
- },
- "type": "array"
+ "user": {
+ "$ref": "#/components/schemas/LogRestApi.get.AppleUser"
},
- "tables": {
- "items": {
- "$ref": "#/components/schemas/Tables"
- },
- "type": "array"
+ "user_id": {
+ "nullable": true,
+ "type": "integer"
}
},
"type": "object"
},
- "RLSRestApi.post": {
+ "LogRestApi.get.AppleUser": {
"properties": {
- "clause": {
- "description": "clause_description",
+ "username": {
+ "maxLength": 64,
"type": "string"
- },
- "description": {
- "description": "description_description",
+ }
+ },
+ "required": ["username"],
+ "type": "object"
+ },
+ "LogRestApi.get_list": {
+ "properties": {
+ "action": {
+ "maxLength": 512,
"nullable": true,
"type": "string"
},
- "filter_type": {
- "description": "filter_type_description",
- "enum": ["Regular", "Base"],
- "type": "string"
+ "dashboard_id": {
+ "nullable": true,
+ "type": "integer"
},
- "group_key": {
- "description": "group_key_description",
+ "dttm": {
+ "format": "date-time",
"nullable": true,
"type": "string"
},
- "name": {
- "description": "name_description",
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "roles": {
- "description": "roles_description",
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "tables": {
- "description": "tables_description",
- "items": {
- "type": "integer"
- },
- "minItems": 1,
- "type": "array"
- }
- },
- "required": ["clause", "filter_type", "name", "roles", "tables"],
- "type": "object"
- },
- "RLSRestApi.put": {
- "properties": {
- "clause": {
- "description": "clause_description",
- "type": "string"
- },
- "description": {
- "description": "description_description",
+ "duration_ms": {
"nullable": true,
- "type": "string"
+ "type": "integer"
},
- "filter_type": {
- "description": "filter_type_description",
- "enum": ["Regular", "Base"],
+ "json": {
+ "nullable": true,
"type": "string"
},
- "group_key": {
- "description": "group_key_description",
+ "referrer": {
+ "maxLength": 1024,
"nullable": true,
"type": "string"
},
- "name": {
- "description": "name_description",
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
+ "slice_id": {
+ "nullable": true,
+ "type": "integer"
},
- "roles": {
- "description": "roles_description",
- "items": {
- "type": "integer"
- },
- "type": "array"
+ "user": {
+ "$ref": "#/components/schemas/LogRestApi.get_list.AppleUser"
},
- "tables": {
- "description": "tables_description",
- "items": {
- "type": "integer"
- },
- "type": "array"
+ "user_id": {
+ "nullable": true,
+ "type": "integer"
}
},
"type": "object"
},
- "RecentActivity": {
+ "LogRestApi.get_list.AppleUser": {
"properties": {
- "action": {
- "description": "Action taken describing type of activity",
- "type": "string"
- },
- "item_title": {
- "description": "Title of item",
- "type": "string"
- },
- "item_type": {
- "description": "Type of item, e.g. slice or dashboard",
- "type": "string"
- },
- "item_url": {
- "description": "URL to item",
- "type": "string"
- },
- "time": {
- "description": "Time of activity, in epoch milliseconds",
- "type": "number"
- },
- "time_delta_humanized": {
- "description": "Human-readable description of how long ago activity took place.",
+ "username": {
+ "maxLength": 64,
"type": "string"
}
},
+ "required": ["username"],
"type": "object"
},
- "RecentActivityResponseSchema": {
+ "LogRestApi.post": {
"properties": {
- "result": {
- "description": "A list of recent activity objects",
- "items": {
- "$ref": "#/components/schemas/RecentActivity"
- },
- "type": "array"
+ "id": {
+ "type": "integer"
}
},
"type": "object"
},
- "RecentActivitySchema": {
+ "LogRestApi.put": {
"properties": {
"action": {
- "description": "Action taken describing type of activity",
- "type": "string"
- },
- "item_title": {
- "description": "Title of item",
+ "maxLength": 512,
+ "nullable": true,
"type": "string"
},
- "item_type": {
- "description": "Type of item, e.g. slice or dashboard",
+ "dttm": {
+ "format": "date-time",
+ "nullable": true,
"type": "string"
},
- "item_url": {
- "description": "URL to item",
+ "json": {
+ "nullable": true,
"type": "string"
},
- "time": {
- "description": "Time of activity, in epoch milliseconds",
- "type": "number"
- },
- "time_delta_humanized": {
- "description": "Human-readable description of how long ago activity took place.",
- "type": "string"
+ "user": {
+ "nullable": true
}
},
"type": "object"
},
- "RelatedResponseSchema": {
+ "QueryExecutionResponseSchema": {
"properties": {
- "count": {
- "description": "The total number of related values",
- "type": "integer"
+ "columns": {
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
},
- "result": {
+ "data": {
"items": {
- "$ref": "#/components/schemas/RelatedResultResponse"
+ "type": "object"
},
"type": "array"
- }
- },
- "type": "object"
- },
- "RelatedResultResponse": {
- "properties": {
- "extra": {
- "description": "The extra metadata for related item",
- "type": "object"
},
- "text": {
- "description": "The related item string representation",
- "type": "string"
+ "expanded_columns": {
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
},
- "value": {
- "description": "The related item identifier",
+ "query": {
+ "$ref": "#/components/schemas/QueryResult"
+ },
+ "query_id": {
"type": "integer"
+ },
+ "selected_columns": {
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "status": {
+ "type": "string"
}
},
"type": "object"
},
- "ReportExecutionLogRestApi.get": {
+ "QueryRestApi.get": {
"properties": {
- "end_dttm": {
+ "changed_on": {
"format": "date-time",
"nullable": true,
"type": "string"
},
- "error_message": {
- "nullable": true,
- "type": "string"
- },
- "id": {
- "type": "integer"
- },
- "scheduled_dttm": {
- "format": "date-time",
- "type": "string"
- },
- "start_dttm": {
- "format": "date-time",
- "nullable": true,
+ "client_id": {
+ "maxLength": 11,
"type": "string"
},
- "state": {
- "maxLength": 50,
- "type": "string"
+ "database": {
+ "$ref": "#/components/schemas/QueryRestApi.get.Database"
},
- "uuid": {
- "format": "uuid",
+ "end_result_backend_time": {
"nullable": true,
- "type": "string"
+ "type": "number"
},
- "value": {
+ "end_time": {
"nullable": true,
"type": "number"
},
- "value_row_json": {
- "nullable": true,
- "type": "string"
- }
- },
- "required": ["scheduled_dttm", "state"],
- "type": "object"
- },
- "ReportExecutionLogRestApi.get_list": {
- "properties": {
- "end_dttm": {
- "format": "date-time",
+ "error_message": {
"nullable": true,
"type": "string"
},
- "error_message": {
+ "executed_sql": {
"nullable": true,
"type": "string"
},
"id": {
"type": "integer"
},
- "scheduled_dttm": {
- "format": "date-time",
- "type": "string"
- },
- "start_dttm": {
- "format": "date-time",
+ "limit": {
"nullable": true,
- "type": "string"
+ "type": "integer"
},
- "state": {
- "maxLength": 50,
- "type": "string"
+ "progress": {
+ "nullable": true,
+ "type": "integer"
},
- "uuid": {
- "format": "uuid",
+ "results_key": {
+ "maxLength": 64,
"nullable": true,
"type": "string"
},
- "value": {
+ "rows": {
"nullable": true,
- "type": "number"
+ "type": "integer"
},
- "value_row_json": {
+ "schema": {
+ "maxLength": 256,
"nullable": true,
"type": "string"
- }
- },
- "required": ["scheduled_dttm", "state"],
- "type": "object"
- },
- "ReportExecutionLogRestApi.post": {
- "properties": {
- "id": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "ReportExecutionLogRestApi.put": {
- "properties": {
- "id": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "ReportRecipient": {
- "properties": {
- "recipient_config_json": {
- "$ref": "#/components/schemas/ReportRecipientConfigJSON"
},
- "type": {
- "description": "The recipient type, check spec for valid options",
- "enum": ["Email", "Slack"],
- "type": "string"
- }
- },
- "required": ["type"],
- "type": "object"
- },
- "ReportRecipientConfigJSON": {
- "properties": {
- "target": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "ReportScheduleRestApi.get": {
- "properties": {
- "active": {
+ "select_as_cta": {
"nullable": true,
"type": "boolean"
},
- "chart": {
- "$ref": "#/components/schemas/ReportScheduleRestApi.get.Slice"
+ "select_as_cta_used": {
+ "nullable": true,
+ "type": "boolean"
},
- "context_markdown": {
+ "select_sql": {
"nullable": true,
"type": "string"
},
- "creation_method": {
- "maxLength": 255,
+ "sql": {
"nullable": true,
"type": "string"
},
- "crontab": {
- "maxLength": 1000,
+ "sql_editor_id": {
+ "maxLength": 256,
+ "nullable": true,
"type": "string"
},
- "custom_width": {
+ "start_running_time": {
"nullable": true,
- "type": "integer"
- },
- "dashboard": {
- "$ref": "#/components/schemas/ReportScheduleRestApi.get.Dashboard"
+ "type": "number"
},
- "database": {
- "$ref": "#/components/schemas/ReportScheduleRestApi.get.Database"
+ "start_time": {
+ "nullable": true,
+ "type": "number"
},
- "description": {
+ "status": {
+ "maxLength": 16,
"nullable": true,
"type": "string"
},
- "extra": {
- "readOnly": true
+ "tab_name": {
+ "maxLength": 256,
+ "nullable": true,
+ "type": "string"
},
- "force_screenshot": {
+ "tmp_schema_name": {
+ "maxLength": 256,
"nullable": true,
- "type": "boolean"
+ "type": "string"
},
- "grace_period": {
+ "tmp_table_name": {
+ "maxLength": 256,
"nullable": true,
- "type": "integer"
+ "type": "string"
},
+ "tracking_url": {
+ "readOnly": true
+ }
+ },
+ "required": ["client_id", "database"],
+ "type": "object"
+ },
+ "QueryRestApi.get.Database": {
+ "properties": {
"id": {
"type": "integer"
- },
- "last_eval_dttm": {
+ }
+ },
+ "type": "object"
+ },
+ "QueryRestApi.get_list": {
+ "properties": {
+ "changed_on": {
"format": "date-time",
- "nullable": true,
"type": "string"
},
- "last_state": {
- "maxLength": 50,
- "nullable": true,
- "type": "string"
+ "database": {
+ "$ref": "#/components/schemas/Database1"
},
- "last_value": {
- "nullable": true,
+ "end_time": {
"type": "number"
},
- "last_value_row_json": {
- "nullable": true,
+ "executed_sql": {
"type": "string"
},
- "log_retention": {
- "nullable": true,
+ "id": {
"type": "integer"
},
- "name": {
- "maxLength": 150,
- "type": "string"
- },
- "owners": {
- "$ref": "#/components/schemas/ReportScheduleRestApi.get.User"
- },
- "recipients": {
- "$ref": "#/components/schemas/ReportScheduleRestApi.get.ReportRecipients"
+ "rows": {
+ "type": "integer"
},
- "report_format": {
- "maxLength": 50,
- "nullable": true,
+ "schema": {
"type": "string"
},
"sql": {
- "nullable": true,
"type": "string"
},
- "timezone": {
- "maxLength": 100,
+ "sql_tables": {
+ "readOnly": true
+ },
+ "start_time": {
+ "type": "number"
+ },
+ "status": {
"type": "string"
},
- "type": {
- "maxLength": 50,
+ "tab_name": {
"type": "string"
},
- "validator_config_json": {
- "nullable": true,
+ "tmp_table_name": {
"type": "string"
},
- "validator_type": {
- "maxLength": 100,
- "nullable": true,
+ "tracking_url": {
"type": "string"
},
- "working_timeout": {
- "nullable": true,
- "type": "integer"
+ "user": {
+ "$ref": "#/components/schemas/User"
}
},
- "required": ["crontab", "name", "recipients", "type"],
"type": "object"
},
- "ReportScheduleRestApi.get.Dashboard": {
+ "QueryRestApi.post": {
"properties": {
- "dashboard_title": {
- "maxLength": 500,
- "nullable": true,
- "type": "string"
- },
"id": {
"type": "integer"
}
},
"type": "object"
},
- "ReportScheduleRestApi.get.Database": {
+ "QueryRestApi.put": {
"properties": {
- "database_name": {
- "maxLength": 250,
- "type": "string"
- },
"id": {
"type": "integer"
}
},
- "required": ["database_name"],
"type": "object"
},
- "ReportScheduleRestApi.get.ReportRecipients": {
+ "QueryResult": {
"properties": {
- "id": {
- "type": "integer"
- },
- "recipient_config_json": {
- "nullable": true,
+ "changed_on": {
+ "format": "date-time",
"type": "string"
},
- "type": {
- "maxLength": 50,
+ "ctas": {
+ "type": "boolean"
+ },
+ "db": {
"type": "string"
- }
- },
- "required": ["type"],
- "type": "object"
- },
- "ReportScheduleRestApi.get.Slice": {
- "properties": {
- "id": {
+ },
+ "dbId": {
"type": "integer"
},
- "slice_name": {
- "maxLength": 250,
- "nullable": true,
- "type": "string"
+ "endDttm": {
+ "type": "number"
},
- "viz_type": {
- "maxLength": 250,
+ "errorMessage": {
"nullable": true,
"type": "string"
- }
- },
- "type": "object"
- },
- "ReportScheduleRestApi.get.User": {
- "properties": {
- "first_name": {
- "maxLength": 64,
+ },
+ "executedSql": {
"type": "string"
},
- "id": {
- "type": "integer"
+ "extra": {
+ "type": "object"
},
- "last_name": {
- "maxLength": 64,
+ "id": {
"type": "string"
- }
- },
- "required": ["first_name", "last_name"],
- "type": "object"
- },
- "ReportScheduleRestApi.get_list": {
- "properties": {
- "active": {
- "nullable": true,
- "type": "boolean"
},
- "changed_by": {
- "$ref": "#/components/schemas/ReportScheduleRestApi.get_list.User2"
+ "limit": {
+ "type": "integer"
},
- "changed_on": {
- "format": "date-time",
- "nullable": true,
+ "limitingFactor": {
"type": "string"
},
- "changed_on_delta_humanized": {
- "readOnly": true
+ "progress": {
+ "type": "integer"
},
- "chart_id": {
- "nullable": true,
+ "queryId": {
"type": "integer"
},
- "created_by": {
- "$ref": "#/components/schemas/ReportScheduleRestApi.get_list.User"
+ "resultsKey": {
+ "type": "string"
},
- "created_on": {
- "format": "date-time",
- "nullable": true,
- "type": "string"
+ "rows": {
+ "type": "integer"
},
- "creation_method": {
- "maxLength": 255,
- "nullable": true,
+ "schema": {
"type": "string"
},
- "crontab": {
- "maxLength": 1000,
+ "serverId": {
+ "type": "integer"
+ },
+ "sql": {
"type": "string"
},
- "crontab_humanized": {
- "readOnly": true
+ "sqlEditorId": {
+ "type": "string"
},
- "dashboard_id": {
- "nullable": true,
- "type": "integer"
+ "startDttm": {
+ "type": "number"
},
- "description": {
- "nullable": true,
+ "state": {
"type": "string"
},
- "extra": {
- "readOnly": true
- },
- "id": {
- "type": "integer"
+ "tab": {
+ "type": "string"
},
- "last_eval_dttm": {
- "format": "date-time",
+ "tempSchema": {
"nullable": true,
"type": "string"
},
- "last_state": {
- "maxLength": 50,
+ "tempTable": {
"nullable": true,
"type": "string"
},
- "name": {
- "maxLength": 150,
+ "trackingUrl": {
+ "nullable": true,
"type": "string"
},
- "owners": {
- "$ref": "#/components/schemas/ReportScheduleRestApi.get_list.User1"
- },
- "recipients": {
- "$ref": "#/components/schemas/ReportScheduleRestApi.get_list.ReportRecipients"
- },
- "timezone": {
- "maxLength": 100,
+ "user": {
"type": "string"
},
- "type": {
- "maxLength": 50,
- "type": "string"
- }
- },
- "required": ["crontab", "name", "recipients", "type"],
- "type": "object"
- },
- "ReportScheduleRestApi.get_list.ReportRecipients": {
- "properties": {
- "id": {
+ "userId": {
"type": "integer"
- },
- "type": {
- "maxLength": 50,
- "type": "string"
}
},
- "required": ["type"],
"type": "object"
},
- "ReportScheduleRestApi.get_list.User": {
+ "RLSRestApi.get": {
"properties": {
- "first_name": {
- "maxLength": 64,
+ "clause": {
+ "description": "clause_description",
"type": "string"
},
- "last_name": {
- "maxLength": 64,
+ "description": {
+ "description": "description_description",
"type": "string"
- }
- },
- "required": ["first_name", "last_name"],
- "type": "object"
- },
- "ReportScheduleRestApi.get_list.User1": {
- "properties": {
- "first_name": {
- "maxLength": 64,
+ },
+ "filter_type": {
+ "description": "filter_type_description",
+ "enum": ["Regular", "Base"],
+ "type": "string"
+ },
+ "group_key": {
+ "description": "group_key_description",
"type": "string"
},
"id": {
+ "description": "id_description",
"type": "integer"
},
- "last_name": {
- "maxLength": 64,
- "type": "string"
- }
- },
- "required": ["first_name", "last_name"],
- "type": "object"
- },
- "ReportScheduleRestApi.get_list.User2": {
- "properties": {
- "first_name": {
- "maxLength": 64,
+ "name": {
+ "description": "name_description",
"type": "string"
},
- "last_name": {
- "maxLength": 64,
- "type": "string"
+ "roles": {
+ "items": {
+ "$ref": "#/components/schemas/Roles1"
+ },
+ "type": "array"
+ },
+ "tables": {
+ "items": {
+ "$ref": "#/components/schemas/Tables"
+ },
+ "type": "array"
}
},
- "required": ["first_name", "last_name"],
"type": "object"
},
- "ReportScheduleRestApi.post": {
+ "RLSRestApi.get_list": {
"properties": {
- "active": {
- "type": "boolean"
+ "changed_by": {
+ "$ref": "#/components/schemas/User"
},
- "chart": {
- "nullable": true,
- "type": "integer"
+ "changed_on_delta_humanized": {
+ "readOnly": true
},
- "context_markdown": {
- "description": "Markdown description",
- "nullable": true,
+ "clause": {
+ "description": "clause_description",
"type": "string"
},
- "creation_method": {
- "description": "Creation method is used to inform the frontend whether the report/alert was created in the dashboard, chart, or alerts and reports UI.",
- "enum": ["charts", "dashboards", "alerts_reports"]
+ "description": {
+ "description": "description_description",
+ "type": "string"
},
- "crontab": {
- "description": "A CRON expression.[Crontab Guru](https://crontab.guru/) is a helpful resource that can help you craft a CRON expression.",
- "example": "*/5 * * * *",
- "maxLength": 1000,
- "minLength": 1,
+ "filter_type": {
+ "description": "filter_type_description",
+ "enum": ["Regular", "Base"],
"type": "string"
},
- "custom_width": {
- "description": "Custom width of the screenshot in pixels",
- "example": 1000,
- "nullable": true,
- "type": "integer"
+ "group_key": {
+ "description": "group_key_description",
+ "type": "string"
},
- "dashboard": {
- "nullable": true,
+ "id": {
+ "description": "id_description",
"type": "integer"
},
- "database": {
- "type": "integer"
+ "name": {
+ "description": "name_description",
+ "type": "string"
+ },
+ "roles": {
+ "items": {
+ "$ref": "#/components/schemas/Roles1"
+ },
+ "type": "array"
+ },
+ "tables": {
+ "items": {
+ "$ref": "#/components/schemas/Tables"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "RLSRestApi.post": {
+ "properties": {
+ "clause": {
+ "description": "clause_description",
+ "type": "string"
},
"description": {
- "description": "Use a nice description to give context to this Alert/Report",
- "example": "Daily sales dashboard to marketing",
+ "description": "description_description",
"nullable": true,
"type": "string"
},
- "extra": {
- "type": "object"
- },
- "force_screenshot": {
- "type": "boolean"
- },
- "grace_period": {
- "description": "Once an alert is triggered, how long, in seconds, before Superset nags you again. (in seconds)",
- "example": 14400,
- "minimum": 1,
- "type": "integer"
+ "filter_type": {
+ "description": "filter_type_description",
+ "enum": ["Regular", "Base"],
+ "type": "string"
},
- "log_retention": {
- "description": "How long to keep the logs around for this report (in days)",
- "example": 90,
- "minimum": 1,
- "type": "integer"
+ "group_key": {
+ "description": "group_key_description",
+ "nullable": true,
+ "type": "string"
},
"name": {
- "description": "The report schedule name.",
- "example": "Daily dashboard email",
- "maxLength": 150,
+ "description": "name_description",
+ "maxLength": 255,
"minLength": 1,
"type": "string"
},
- "owners": {
+ "roles": {
+ "description": "roles_description",
"items": {
- "description": "Owner are users ids allowed to delete or change this report. If left empty you will be one of the owners of the report.",
"type": "integer"
},
"type": "array"
},
- "recipients": {
+ "tables": {
+ "description": "tables_description",
"items": {
- "$ref": "#/components/schemas/ReportRecipient"
+ "type": "integer"
},
+ "minItems": 1,
"type": "array"
- },
- "report_format": {
- "enum": ["PNG", "CSV", "TEXT"],
+ }
+ },
+ "required": ["clause", "filter_type", "name", "roles", "tables"],
+ "type": "object"
+ },
+ "RLSRestApi.put": {
+ "properties": {
+ "clause": {
+ "description": "clause_description",
"type": "string"
},
- "selected_tabs": {
- "items": {
- "type": "integer"
- },
+ "description": {
+ "description": "description_description",
"nullable": true,
- "type": "array"
+ "type": "string"
},
- "sql": {
- "description": "A SQL statement that defines whether the alert should get triggered or not. The query is expected to return either NULL or a number value.",
- "example": "SELECT value FROM time_series_table",
+ "filter_type": {
+ "description": "filter_type_description",
+ "enum": ["Regular", "Base"],
"type": "string"
},
- "timezone": {
- "description": "A timezone string that represents the location of the timezone.",
- "enum": [
- "Africa/Abidjan",
- "Africa/Accra",
- "Africa/Addis_Ababa",
- "Africa/Algiers",
- "Africa/Asmara",
- "Africa/Asmera",
- "Africa/Bamako",
- "Africa/Bangui",
- "Africa/Banjul",
- "Africa/Bissau",
- "Africa/Blantyre",
- "Africa/Brazzaville",
- "Africa/Bujumbura",
- "Africa/Cairo",
- "Africa/Casablanca",
- "Africa/Ceuta",
- "Africa/Conakry",
- "Africa/Dakar",
- "Africa/Dar_es_Salaam",
- "Africa/Djibouti",
- "Africa/Douala",
- "Africa/El_Aaiun",
- "Africa/Freetown",
- "Africa/Gaborone",
- "Africa/Harare",
- "Africa/Johannesburg",
- "Africa/Juba",
- "Africa/Kampala",
- "Africa/Khartoum",
- "Africa/Kigali",
- "Africa/Kinshasa",
- "Africa/Lagos",
- "Africa/Libreville",
- "Africa/Lome",
- "Africa/Luanda",
- "Africa/Lubumbashi",
- "Africa/Lusaka",
- "Africa/Malabo",
- "Africa/Maputo",
- "Africa/Maseru",
- "Africa/Mbabane",
- "Africa/Mogadishu",
- "Africa/Monrovia",
- "Africa/Nairobi",
- "Africa/Ndjamena",
- "Africa/Niamey",
- "Africa/Nouakchott",
- "Africa/Ouagadougou",
- "Africa/Porto-Novo",
- "Africa/Sao_Tome",
- "Africa/Timbuktu",
- "Africa/Tripoli",
- "Africa/Tunis",
- "Africa/Windhoek",
- "America/Adak",
- "America/Anchorage",
- "America/Anguilla",
- "America/Antigua",
- "America/Araguaina",
- "America/Argentina/Buenos_Aires",
- "America/Argentina/Catamarca",
- "America/Argentina/ComodRivadavia",
- "America/Argentina/Cordoba",
- "America/Argentina/Jujuy",
- "America/Argentina/La_Rioja",
- "America/Argentina/Mendoza",
- "America/Argentina/Rio_Gallegos",
- "America/Argentina/Salta",
- "America/Argentina/San_Juan",
- "America/Argentina/San_Luis",
- "America/Argentina/Tucuman",
- "America/Argentina/Ushuaia",
- "America/Aruba",
- "America/Asuncion",
- "America/Atikokan",
- "America/Atka",
- "America/Bahia",
- "America/Bahia_Banderas",
- "America/Barbados",
- "America/Belem",
- "America/Belize",
- "America/Blanc-Sablon",
- "America/Boa_Vista",
- "America/Bogota",
- "America/Boise",
- "America/Buenos_Aires",
- "America/Cambridge_Bay",
- "America/Campo_Grande",
- "America/Cancun",
- "America/Caracas",
- "America/Catamarca",
- "America/Cayenne",
- "America/Cayman",
- "America/Chicago",
- "America/Chihuahua",
- "America/Coral_Harbour",
- "America/Cordoba",
- "America/Costa_Rica",
- "America/Creston",
- "America/Cuiaba",
- "America/Curacao",
- "America/Danmarkshavn",
- "America/Dawson",
- "America/Dawson_Creek",
- "America/Denver",
- "America/Detroit",
- "America/Dominica",
- "America/Edmonton",
- "America/Eirunepe",
- "America/El_Salvador",
- "America/Ensenada",
- "America/Fort_Nelson",
- "America/Fort_Wayne",
- "America/Fortaleza",
- "America/Glace_Bay",
- "America/Godthab",
- "America/Goose_Bay",
- "America/Grand_Turk",
- "America/Grenada",
- "America/Guadeloupe",
- "America/Guatemala",
- "America/Guayaquil",
- "America/Guyana",
- "America/Halifax",
- "America/Havana",
- "America/Hermosillo",
- "America/Indiana/Indianapolis",
- "America/Indiana/Knox",
- "America/Indiana/Marengo",
- "America/Indiana/Petersburg",
- "America/Indiana/Tell_City",
- "America/Indiana/Vevay",
- "America/Indiana/Vincennes",
- "America/Indiana/Winamac",
- "America/Indianapolis",
- "America/Inuvik",
- "America/Iqaluit",
- "America/Jamaica",
- "America/Jujuy",
- "America/Juneau",
- "America/Kentucky/Louisville",
- "America/Kentucky/Monticello",
- "America/Knox_IN",
- "America/Kralendijk",
- "America/La_Paz",
- "America/Lima",
- "America/Los_Angeles",
- "America/Louisville",
- "America/Lower_Princes",
- "America/Maceio",
- "America/Managua",
- "America/Manaus",
- "America/Marigot",
- "America/Martinique",
- "America/Matamoros",
- "America/Mazatlan",
- "America/Mendoza",
- "America/Menominee",
- "America/Merida",
- "America/Metlakatla",
- "America/Mexico_City",
- "America/Miquelon",
- "America/Moncton",
- "America/Monterrey",
- "America/Montevideo",
- "America/Montreal",
- "America/Montserrat",
- "America/Nassau",
- "America/New_York",
- "America/Nipigon",
- "America/Nome",
- "America/Noronha",
- "America/North_Dakota/Beulah",
- "America/North_Dakota/Center",
- "America/North_Dakota/New_Salem",
- "America/Nuuk",
- "America/Ojinaga",
- "America/Panama",
- "America/Pangnirtung",
- "America/Paramaribo",
- "America/Phoenix",
- "America/Port-au-Prince",
- "America/Port_of_Spain",
- "America/Porto_Acre",
- "America/Porto_Velho",
- "America/Puerto_Rico",
- "America/Punta_Arenas",
- "America/Rainy_River",
- "America/Rankin_Inlet",
- "America/Recife",
- "America/Regina",
- "America/Resolute",
- "America/Rio_Branco",
- "America/Rosario",
- "America/Santa_Isabel",
- "America/Santarem",
- "America/Santiago",
- "America/Santo_Domingo",
- "America/Sao_Paulo",
- "America/Scoresbysund",
- "America/Shiprock",
- "America/Sitka",
- "America/St_Barthelemy",
- "America/St_Johns",
- "America/St_Kitts",
- "America/St_Lucia",
- "America/St_Thomas",
- "America/St_Vincent",
- "America/Swift_Current",
- "America/Tegucigalpa",
- "America/Thule",
- "America/Thunder_Bay",
- "America/Tijuana",
- "America/Toronto",
- "America/Tortola",
- "America/Vancouver",
- "America/Virgin",
- "America/Whitehorse",
- "America/Winnipeg",
- "America/Yakutat",
- "America/Yellowknife",
- "Antarctica/Casey",
- "Antarctica/Davis",
- "Antarctica/DumontDUrville",
- "Antarctica/Macquarie",
- "Antarctica/Mawson",
- "Antarctica/McMurdo",
- "Antarctica/Palmer",
- "Antarctica/Rothera",
- "Antarctica/South_Pole",
- "Antarctica/Syowa",
- "Antarctica/Troll",
- "Antarctica/Vostok",
- "Arctic/Longyearbyen",
- "Asia/Aden",
- "Asia/Almaty",
- "Asia/Amman",
- "Asia/Anadyr",
- "Asia/Aqtau",
- "Asia/Aqtobe",
- "Asia/Ashgabat",
- "Asia/Ashkhabad",
- "Asia/Atyrau",
- "Asia/Baghdad",
- "Asia/Bahrain",
- "Asia/Baku",
- "Asia/Bangkok",
+ "group_key": {
+ "description": "group_key_description",
+ "nullable": true,
+ "type": "string"
+ },
+ "name": {
+ "description": "name_description",
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "roles": {
+ "description": "roles_description",
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "tables": {
+ "description": "tables_description",
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "RecentActivity": {
+ "properties": {
+ "action": {
+ "description": "Action taken describing type of activity",
+ "type": "string"
+ },
+ "item_title": {
+ "description": "Title of item",
+ "type": "string"
+ },
+ "item_type": {
+ "description": "Type of item, e.g. slice or dashboard",
+ "type": "string"
+ },
+ "item_url": {
+ "description": "URL to item",
+ "type": "string"
+ },
+ "time": {
+ "description": "Time of activity, in epoch milliseconds",
+ "type": "number"
+ },
+ "time_delta_humanized": {
+ "description": "Human-readable description of how long ago activity took place.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "RecentActivityResponseSchema": {
+ "properties": {
+ "result": {
+ "description": "A list of recent activity objects",
+ "items": {
+ "$ref": "#/components/schemas/RecentActivity"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "RecentActivitySchema": {
+ "properties": {
+ "action": {
+ "description": "Action taken describing type of activity",
+ "type": "string"
+ },
+ "item_title": {
+ "description": "Title of item",
+ "type": "string"
+ },
+ "item_type": {
+ "description": "Type of item, e.g. slice or dashboard",
+ "type": "string"
+ },
+ "item_url": {
+ "description": "URL to item",
+ "type": "string"
+ },
+ "time": {
+ "description": "Time of activity, in epoch milliseconds",
+ "type": "number"
+ },
+ "time_delta_humanized": {
+ "description": "Human-readable description of how long ago activity took place.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "RelatedResponseSchema": {
+ "properties": {
+ "count": {
+ "description": "The total number of related values",
+ "type": "integer"
+ },
+ "result": {
+ "items": {
+ "$ref": "#/components/schemas/RelatedResultResponse"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "RelatedResultResponse": {
+ "properties": {
+ "extra": {
+ "description": "The extra metadata for related item",
+ "type": "object"
+ },
+ "text": {
+ "description": "The related item string representation",
+ "type": "string"
+ },
+ "value": {
+ "description": "The related item identifier",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "ReportExecutionLogRestApi.get": {
+ "properties": {
+ "end_dttm": {
+ "format": "date-time",
+ "nullable": true,
+ "type": "string"
+ },
+ "error_message": {
+ "nullable": true,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "scheduled_dttm": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "start_dttm": {
+ "format": "date-time",
+ "nullable": true,
+ "type": "string"
+ },
+ "state": {
+ "maxLength": 50,
+ "type": "string"
+ },
+ "uuid": {
+ "format": "uuid",
+ "nullable": true,
+ "type": "string"
+ },
+ "value": {
+ "nullable": true,
+ "type": "number"
+ },
+ "value_row_json": {
+ "nullable": true,
+ "type": "string"
+ }
+ },
+ "required": ["scheduled_dttm", "state"],
+ "type": "object"
+ },
+ "ReportExecutionLogRestApi.get_list": {
+ "properties": {
+ "end_dttm": {
+ "format": "date-time",
+ "nullable": true,
+ "type": "string"
+ },
+ "error_message": {
+ "nullable": true,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "scheduled_dttm": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "start_dttm": {
+ "format": "date-time",
+ "nullable": true,
+ "type": "string"
+ },
+ "state": {
+ "maxLength": 50,
+ "type": "string"
+ },
+ "uuid": {
+ "format": "uuid",
+ "nullable": true,
+ "type": "string"
+ },
+ "value": {
+ "nullable": true,
+ "type": "number"
+ },
+ "value_row_json": {
+ "nullable": true,
+ "type": "string"
+ }
+ },
+ "required": ["scheduled_dttm", "state"],
+ "type": "object"
+ },
+ "ReportExecutionLogRestApi.post": {
+ "properties": {
+ "id": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "ReportExecutionLogRestApi.put": {
+ "properties": {
+ "id": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "ReportRecipient": {
+ "properties": {
+ "recipient_config_json": {
+ "$ref": "#/components/schemas/ReportRecipientConfigJSON"
+ },
+ "type": {
+ "description": "The recipient type, check spec for valid options",
+ "enum": ["Email", "Slack", "SlackV2"],
+ "type": "string"
+ }
+ },
+ "required": ["type"],
+ "type": "object"
+ },
+ "ReportRecipientConfigJSON": {
+ "properties": {
+ "bccTarget": {
+ "type": "string"
+ },
+ "ccTarget": {
+ "type": "string"
+ },
+ "target": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "ReportScheduleRestApi.get": {
+ "properties": {
+ "active": {
+ "nullable": true,
+ "type": "boolean"
+ },
+ "chart": {
+ "$ref": "#/components/schemas/ReportScheduleRestApi.get.Slice"
+ },
+ "context_markdown": {
+ "nullable": true,
+ "type": "string"
+ },
+ "creation_method": {
+ "maxLength": 255,
+ "nullable": true,
+ "type": "string"
+ },
+ "crontab": {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ "custom_width": {
+ "nullable": true,
+ "type": "integer"
+ },
+ "dashboard": {
+ "$ref": "#/components/schemas/ReportScheduleRestApi.get.Dashboard"
+ },
+ "database": {
+ "$ref": "#/components/schemas/ReportScheduleRestApi.get.Database"
+ },
+ "description": {
+ "nullable": true,
+ "type": "string"
+ },
+ "email_subject": {
+ "maxLength": 255,
+ "nullable": true,
+ "type": "string"
+ },
+ "extra": {
+ "readOnly": true
+ },
+ "force_screenshot": {
+ "nullable": true,
+ "type": "boolean"
+ },
+ "grace_period": {
+ "nullable": true,
+ "type": "integer"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "last_eval_dttm": {
+ "format": "date-time",
+ "nullable": true,
+ "type": "string"
+ },
+ "last_state": {
+ "maxLength": 50,
+ "nullable": true,
+ "type": "string"
+ },
+ "last_value": {
+ "nullable": true,
+ "type": "number"
+ },
+ "last_value_row_json": {
+ "nullable": true,
+ "type": "string"
+ },
+ "log_retention": {
+ "nullable": true,
+ "type": "integer"
+ },
+ "name": {
+ "maxLength": 150,
+ "type": "string"
+ },
+ "owners": {
+ "$ref": "#/components/schemas/ReportScheduleRestApi.get.AppleUser"
+ },
+ "recipients": {
+ "$ref": "#/components/schemas/ReportScheduleRestApi.get.ReportRecipients"
+ },
+ "report_format": {
+ "maxLength": 50,
+ "nullable": true,
+ "type": "string"
+ },
+ "sql": {
+ "nullable": true,
+ "type": "string"
+ },
+ "timezone": {
+ "maxLength": 100,
+ "type": "string"
+ },
+ "type": {
+ "maxLength": 50,
+ "type": "string"
+ },
+ "validator_config_json": {
+ "nullable": true,
+ "type": "string"
+ },
+ "validator_type": {
+ "maxLength": 100,
+ "nullable": true,
+ "type": "string"
+ },
+ "working_timeout": {
+ "nullable": true,
+ "type": "integer"
+ }
+ },
+ "required": ["crontab", "name", "recipients", "type"],
+ "type": "object"
+ },
+ "ReportScheduleRestApi.get.AppleUser": {
+ "properties": {
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["first_name", "last_name"],
+ "type": "object"
+ },
+ "ReportScheduleRestApi.get.Dashboard": {
+ "properties": {
+ "dashboard_title": {
+ "maxLength": 500,
+ "nullable": true,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "ReportScheduleRestApi.get.Database": {
+ "properties": {
+ "database_name": {
+ "maxLength": 250,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ }
+ },
+ "required": ["database_name"],
+ "type": "object"
+ },
+ "ReportScheduleRestApi.get.ReportRecipients": {
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "recipient_config_json": {
+ "nullable": true,
+ "type": "string"
+ },
+ "type": {
+ "maxLength": 50,
+ "type": "string"
+ }
+ },
+ "required": ["type"],
+ "type": "object"
+ },
+ "ReportScheduleRestApi.get.Slice": {
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "slice_name": {
+ "maxLength": 250,
+ "nullable": true,
+ "type": "string"
+ },
+ "viz_type": {
+ "maxLength": 250,
+ "nullable": true,
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "ReportScheduleRestApi.get_list": {
+ "properties": {
+ "active": {
+ "nullable": true,
+ "type": "boolean"
+ },
+ "changed_by": {
+ "$ref": "#/components/schemas/ReportScheduleRestApi.get_list.User"
+ },
+ "changed_on": {
+ "format": "date-time",
+ "nullable": true,
+ "type": "string"
+ },
+ "changed_on_delta_humanized": {
+ "readOnly": true
+ },
+ "chart_id": {
+ "nullable": true,
+ "type": "integer"
+ },
+ "created_by": {
+ "$ref": "#/components/schemas/ReportScheduleRestApi.get_list.User1"
+ },
+ "created_on": {
+ "format": "date-time",
+ "nullable": true,
+ "type": "string"
+ },
+ "creation_method": {
+ "maxLength": 255,
+ "nullable": true,
+ "type": "string"
+ },
+ "crontab": {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ "crontab_humanized": {
+ "readOnly": true
+ },
+ "dashboard_id": {
+ "nullable": true,
+ "type": "integer"
+ },
+ "description": {
+ "nullable": true,
+ "type": "string"
+ },
+ "extra": {
+ "readOnly": true
+ },
+ "id": {
+ "type": "integer"
+ },
+ "last_eval_dttm": {
+ "format": "date-time",
+ "nullable": true,
+ "type": "string"
+ },
+ "last_state": {
+ "maxLength": 50,
+ "nullable": true,
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 150,
+ "type": "string"
+ },
+ "owners": {
+ "$ref": "#/components/schemas/ReportScheduleRestApi.get_list.AppleUser"
+ },
+ "recipients": {
+ "$ref": "#/components/schemas/ReportScheduleRestApi.get_list.ReportRecipients"
+ },
+ "timezone": {
+ "maxLength": 100,
+ "type": "string"
+ },
+ "type": {
+ "maxLength": 50,
+ "type": "string"
+ }
+ },
+ "required": ["crontab", "name", "recipients", "type"],
+ "type": "object"
+ },
+ "ReportScheduleRestApi.get_list.AppleUser": {
+ "properties": {
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["first_name", "last_name"],
+ "type": "object"
+ },
+ "ReportScheduleRestApi.get_list.ReportRecipients": {
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "type": {
+ "maxLength": 50,
+ "type": "string"
+ }
+ },
+ "required": ["type"],
+ "type": "object"
+ },
+ "ReportScheduleRestApi.get_list.User": {
+ "properties": {
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["first_name", "last_name"],
+ "type": "object"
+ },
+ "ReportScheduleRestApi.get_list.User1": {
+ "properties": {
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["first_name", "last_name"],
+ "type": "object"
+ },
+ "ReportScheduleRestApi.post": {
+ "properties": {
+ "active": {
+ "type": "boolean"
+ },
+ "chart": {
+ "nullable": true,
+ "type": "integer"
+ },
+ "context_markdown": {
+ "description": "Markdown description",
+ "nullable": true,
+ "type": "string"
+ },
+ "creation_method": {
+ "description": "Creation method is used to inform the frontend whether the report/alert was created in the dashboard, chart, or alerts and reports UI.",
+ "enum": ["charts", "dashboards", "alerts_reports"]
+ },
+ "crontab": {
+ "description": "A CRON expression.[Crontab Guru](https://crontab.guru/) is a helpful resource that can help you craft a CRON expression.",
+ "example": "*/5 * * * *",
+ "maxLength": 1000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "custom_width": {
+ "description": "Custom width of the screenshot in pixels",
+ "example": 1000,
+ "nullable": true,
+ "type": "integer"
+ },
+ "dashboard": {
+ "nullable": true,
+ "type": "integer"
+ },
+ "database": {
+ "type": "integer"
+ },
+ "description": {
+ "description": "Use a nice description to give context to this Alert/Report",
+ "example": "Daily sales dashboard to marketing",
+ "nullable": true,
+ "type": "string"
+ },
+ "email_subject": {
+ "description": "The report schedule subject line",
+ "example": "[Report] Report name: Dashboard or chart name",
+ "nullable": true,
+ "type": "string"
+ },
+ "extra": {
+ "type": "object"
+ },
+ "force_screenshot": {
+ "type": "boolean"
+ },
+ "grace_period": {
+ "description": "Once an alert is triggered, how long, in seconds, before Superset nags you again. (in seconds)",
+ "example": 14400,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "log_retention": {
+ "description": "How long to keep the logs around for this report (in days)",
+ "example": 90,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "name": {
+ "description": "The report schedule name.",
+ "example": "Daily dashboard email",
+ "maxLength": 150,
+ "minLength": 1,
+ "type": "string"
+ },
+ "owners": {
+ "items": {
+ "description": "Owner are users ids allowed to delete or change this report. If left empty you will be one of the owners of the report.",
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "recipients": {
+ "items": {
+ "$ref": "#/components/schemas/ReportRecipient"
+ },
+ "type": "array"
+ },
+ "report_format": {
+ "enum": ["PDF", "PNG", "CSV", "TEXT"],
+ "type": "string"
+ },
+ "selected_tabs": {
+ "items": {
+ "type": "integer"
+ },
+ "nullable": true,
+ "type": "array"
+ },
+ "sql": {
+ "description": "A SQL statement that defines whether the alert should get triggered or not. The query is expected to return either NULL or a number value.",
+ "example": "SELECT value FROM time_series_table",
+ "type": "string"
+ },
+ "timezone": {
+ "description": "A timezone string that represents the location of the timezone.",
+ "enum": [
+ "Africa/Abidjan",
+ "Africa/Accra",
+ "Africa/Addis_Ababa",
+ "Africa/Algiers",
+ "Africa/Asmara",
+ "Africa/Asmera",
+ "Africa/Bamako",
+ "Africa/Bangui",
+ "Africa/Banjul",
+ "Africa/Bissau",
+ "Africa/Blantyre",
+ "Africa/Brazzaville",
+ "Africa/Bujumbura",
+ "Africa/Cairo",
+ "Africa/Casablanca",
+ "Africa/Ceuta",
+ "Africa/Conakry",
+ "Africa/Dakar",
+ "Africa/Dar_es_Salaam",
+ "Africa/Djibouti",
+ "Africa/Douala",
+ "Africa/El_Aaiun",
+ "Africa/Freetown",
+ "Africa/Gaborone",
+ "Africa/Harare",
+ "Africa/Johannesburg",
+ "Africa/Juba",
+ "Africa/Kampala",
+ "Africa/Khartoum",
+ "Africa/Kigali",
+ "Africa/Kinshasa",
+ "Africa/Lagos",
+ "Africa/Libreville",
+ "Africa/Lome",
+ "Africa/Luanda",
+ "Africa/Lubumbashi",
+ "Africa/Lusaka",
+ "Africa/Malabo",
+ "Africa/Maputo",
+ "Africa/Maseru",
+ "Africa/Mbabane",
+ "Africa/Mogadishu",
+ "Africa/Monrovia",
+ "Africa/Nairobi",
+ "Africa/Ndjamena",
+ "Africa/Niamey",
+ "Africa/Nouakchott",
+ "Africa/Ouagadougou",
+ "Africa/Porto-Novo",
+ "Africa/Sao_Tome",
+ "Africa/Timbuktu",
+ "Africa/Tripoli",
+ "Africa/Tunis",
+ "Africa/Windhoek",
+ "America/Adak",
+ "America/Anchorage",
+ "America/Anguilla",
+ "America/Antigua",
+ "America/Araguaina",
+ "America/Argentina/Buenos_Aires",
+ "America/Argentina/Catamarca",
+ "America/Argentina/ComodRivadavia",
+ "America/Argentina/Cordoba",
+ "America/Argentina/Jujuy",
+ "America/Argentina/La_Rioja",
+ "America/Argentina/Mendoza",
+ "America/Argentina/Rio_Gallegos",
+ "America/Argentina/Salta",
+ "America/Argentina/San_Juan",
+ "America/Argentina/San_Luis",
+ "America/Argentina/Tucuman",
+ "America/Argentina/Ushuaia",
+ "America/Aruba",
+ "America/Asuncion",
+ "America/Atikokan",
+ "America/Atka",
+ "America/Bahia",
+ "America/Bahia_Banderas",
+ "America/Barbados",
+ "America/Belem",
+ "America/Belize",
+ "America/Blanc-Sablon",
+ "America/Boa_Vista",
+ "America/Bogota",
+ "America/Boise",
+ "America/Buenos_Aires",
+ "America/Cambridge_Bay",
+ "America/Campo_Grande",
+ "America/Cancun",
+ "America/Caracas",
+ "America/Catamarca",
+ "America/Cayenne",
+ "America/Cayman",
+ "America/Chicago",
+ "America/Chihuahua",
+ "America/Ciudad_Juarez",
+ "America/Coral_Harbour",
+ "America/Cordoba",
+ "America/Costa_Rica",
+ "America/Creston",
+ "America/Cuiaba",
+ "America/Curacao",
+ "America/Danmarkshavn",
+ "America/Dawson",
+ "America/Dawson_Creek",
+ "America/Denver",
+ "America/Detroit",
+ "America/Dominica",
+ "America/Edmonton",
+ "America/Eirunepe",
+ "America/El_Salvador",
+ "America/Ensenada",
+ "America/Fort_Nelson",
+ "America/Fort_Wayne",
+ "America/Fortaleza",
+ "America/Glace_Bay",
+ "America/Godthab",
+ "America/Goose_Bay",
+ "America/Grand_Turk",
+ "America/Grenada",
+ "America/Guadeloupe",
+ "America/Guatemala",
+ "America/Guayaquil",
+ "America/Guyana",
+ "America/Halifax",
+ "America/Havana",
+ "America/Hermosillo",
+ "America/Indiana/Indianapolis",
+ "America/Indiana/Knox",
+ "America/Indiana/Marengo",
+ "America/Indiana/Petersburg",
+ "America/Indiana/Tell_City",
+ "America/Indiana/Vevay",
+ "America/Indiana/Vincennes",
+ "America/Indiana/Winamac",
+ "America/Indianapolis",
+ "America/Inuvik",
+ "America/Iqaluit",
+ "America/Jamaica",
+ "America/Jujuy",
+ "America/Juneau",
+ "America/Kentucky/Louisville",
+ "America/Kentucky/Monticello",
+ "America/Knox_IN",
+ "America/Kralendijk",
+ "America/La_Paz",
+ "America/Lima",
+ "America/Los_Angeles",
+ "America/Louisville",
+ "America/Lower_Princes",
+ "America/Maceio",
+ "America/Managua",
+ "America/Manaus",
+ "America/Marigot",
+ "America/Martinique",
+ "America/Matamoros",
+ "America/Mazatlan",
+ "America/Mendoza",
+ "America/Menominee",
+ "America/Merida",
+ "America/Metlakatla",
+ "America/Mexico_City",
+ "America/Miquelon",
+ "America/Moncton",
+ "America/Monterrey",
+ "America/Montevideo",
+ "America/Montreal",
+ "America/Montserrat",
+ "America/Nassau",
+ "America/New_York",
+ "America/Nipigon",
+ "America/Nome",
+ "America/Noronha",
+ "America/North_Dakota/Beulah",
+ "America/North_Dakota/Center",
+ "America/North_Dakota/New_Salem",
+ "America/Nuuk",
+ "America/Ojinaga",
+ "America/Panama",
+ "America/Pangnirtung",
+ "America/Paramaribo",
+ "America/Phoenix",
+ "America/Port-au-Prince",
+ "America/Port_of_Spain",
+ "America/Porto_Acre",
+ "America/Porto_Velho",
+ "America/Puerto_Rico",
+ "America/Punta_Arenas",
+ "America/Rainy_River",
+ "America/Rankin_Inlet",
+ "America/Recife",
+ "America/Regina",
+ "America/Resolute",
+ "America/Rio_Branco",
+ "America/Rosario",
+ "America/Santa_Isabel",
+ "America/Santarem",
+ "America/Santiago",
+ "America/Santo_Domingo",
+ "America/Sao_Paulo",
+ "America/Scoresbysund",
+ "America/Shiprock",
+ "America/Sitka",
+ "America/St_Barthelemy",
+ "America/St_Johns",
+ "America/St_Kitts",
+ "America/St_Lucia",
+ "America/St_Thomas",
+ "America/St_Vincent",
+ "America/Swift_Current",
+ "America/Tegucigalpa",
+ "America/Thule",
+ "America/Thunder_Bay",
+ "America/Tijuana",
+ "America/Toronto",
+ "America/Tortola",
+ "America/Vancouver",
+ "America/Virgin",
+ "America/Whitehorse",
+ "America/Winnipeg",
+ "America/Yakutat",
+ "America/Yellowknife",
+ "Antarctica/Casey",
+ "Antarctica/Davis",
+ "Antarctica/DumontDUrville",
+ "Antarctica/Macquarie",
+ "Antarctica/Mawson",
+ "Antarctica/McMurdo",
+ "Antarctica/Palmer",
+ "Antarctica/Rothera",
+ "Antarctica/South_Pole",
+ "Antarctica/Syowa",
+ "Antarctica/Troll",
+ "Antarctica/Vostok",
+ "Arctic/Longyearbyen",
+ "Asia/Aden",
+ "Asia/Almaty",
+ "Asia/Amman",
+ "Asia/Anadyr",
+ "Asia/Aqtau",
+ "Asia/Aqtobe",
+ "Asia/Ashgabat",
+ "Asia/Ashkhabad",
+ "Asia/Atyrau",
+ "Asia/Baghdad",
+ "Asia/Bahrain",
+ "Asia/Baku",
+ "Asia/Bangkok",
"Asia/Barnaul",
"Asia/Beirut",
"Asia/Bishkek",
@@ -7592,8 +8578,9 @@
"Europe/Istanbul",
"Europe/Jersey",
"Europe/Kaliningrad",
- "Europe/Kyiv",
+ "Europe/Kiev",
"Europe/Kirov",
+ "Europe/Kyiv",
"Europe/Lisbon",
"Europe/Ljubljana",
"Europe/London",
@@ -7756,7 +8743,7 @@
"type": "string"
},
"working_timeout": {
- "description": "If an alert is staled at a working state, how long until it's state is reseted to error",
+ "description": "If an alert is staled at a working state, how long until it's state is reset to error",
"example": 3600,
"minimum": 1,
"type": "integer"
@@ -7809,6 +8796,12 @@
"nullable": true,
"type": "string"
},
+ "email_subject": {
+ "description": "The report schedule subject line",
+ "example": "[Report] Report name: Dashboard or chart name",
+ "nullable": true,
+ "type": "string"
+ },
"extra": {
"type": "object"
},
@@ -7824,7 +8817,7 @@
"log_retention": {
"description": "How long to keep the logs around for this report (in days)",
"example": 90,
- "minimum": 1,
+ "minimum": 0,
"type": "integer"
},
"name": {
@@ -7847,7 +8840,7 @@
"type": "array"
},
"report_format": {
- "enum": ["PNG", "CSV", "TEXT"],
+ "enum": ["PDF", "PNG", "CSV", "TEXT"],
"type": "string"
},
"sql": {
@@ -7954,6 +8947,7 @@
"America/Cayman",
"America/Chicago",
"America/Chihuahua",
+ "America/Ciudad_Juarez",
"America/Coral_Harbour",
"America/Cordoba",
"America/Costa_Rica",
@@ -8306,8 +9300,9 @@
"Europe/Istanbul",
"Europe/Jersey",
"Europe/Kaliningrad",
- "Europe/Kyiv",
+ "Europe/Kiev",
"Europe/Kirov",
+ "Europe/Kyiv",
"Europe/Lisbon",
"Europe/Ljubljana",
"Europe/London",
@@ -8456,1285 +9451,3199 @@
],
"type": "string"
},
- "type": {
- "description": "The report schedule type",
- "enum": ["Alert", "Report"],
- "type": "string"
+ "type": {
+ "description": "The report schedule type",
+ "enum": ["Alert", "Report"],
+ "type": "string"
+ },
+ "validator_config_json": {
+ "$ref": "#/components/schemas/ValidatorConfigJSON"
+ },
+ "validator_type": {
+ "description": "Determines when to trigger alert based off value from alert query. Alerts will be triggered with these validator types:\n- Not Null - When the return value is Not NULL, Empty, or 0\n- Operator - When `sql_return_value comparison_operator threshold` is True e.g. `50 <= 75`<br>Supports the comparison operators <, <=, >, >=, ==, and !=",
+ "enum": ["not null", "operator"],
+ "nullable": true,
+ "type": "string"
+ },
+ "working_timeout": {
+ "description": "If an alert is staled at a working state, how long until it's state is reset to error",
+ "example": 3600,
+ "minimum": 1,
+ "nullable": true,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "Resource": {
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "type": {
+ "enum": ["dashboard"]
+ }
+ },
+ "required": ["id", "type"],
+ "type": "object"
+ },
+ "RlsRule": {
+ "properties": {
+ "clause": {
+ "type": "string"
+ },
+ "dataset": {
+ "type": "integer"
+ }
+ },
+ "required": ["clause"],
+ "type": "object"
+ },
+ "Roles": {
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "Roles1": {
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SQLLabBootstrapSchema": {
+ "properties": {
+ "active_tab": {
+ "$ref": "#/components/schemas/TabState"
+ },
+ "databases": {
+ "additionalProperties": {
+ "$ref": "#/components/schemas/ImportV1Database"
+ },
+ "type": "object"
+ },
+ "queries": {
+ "additionalProperties": {
+ "$ref": "#/components/schemas/QueryResult"
+ },
+ "type": "object"
+ },
+ "tab_state_ids": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "SavedQueryRestApi.get": {
+ "properties": {
+ "catalog": {
+ "maxLength": 256,
+ "nullable": true,
+ "type": "string"
+ },
+ "changed_by": {
+ "$ref": "#/components/schemas/SavedQueryRestApi.get.User"
+ },
+ "changed_on": {
+ "format": "date-time",
+ "nullable": true,
+ "type": "string"
+ },
+ "changed_on_delta_humanized": {
+ "readOnly": true
+ },
+ "created_by": {
+ "$ref": "#/components/schemas/SavedQueryRestApi.get.User1"
+ },
+ "database": {
+ "$ref": "#/components/schemas/SavedQueryRestApi.get.Database"
+ },
+ "description": {
+ "nullable": true,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "label": {
+ "maxLength": 256,
+ "nullable": true,
+ "type": "string"
+ },
+ "schema": {
+ "maxLength": 128,
+ "nullable": true,
+ "type": "string"
+ },
+ "sql": {
+ "nullable": true,
+ "type": "string"
+ },
+ "sql_tables": {
+ "readOnly": true
+ },
+ "template_parameters": {
+ "nullable": true,
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SavedQueryRestApi.get.Database": {
+ "properties": {
+ "database_name": {
+ "maxLength": 250,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ }
+ },
+ "required": ["database_name"],
+ "type": "object"
+ },
+ "SavedQueryRestApi.get.User": {
+ "properties": {
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["first_name", "last_name"],
+ "type": "object"
+ },
+ "SavedQueryRestApi.get.User1": {
+ "properties": {
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["first_name", "last_name"],
+ "type": "object"
+ },
+ "SavedQueryRestApi.get_list": {
+ "properties": {
+ "catalog": {
+ "maxLength": 256,
+ "nullable": true,
+ "type": "string"
+ },
+ "changed_by": {
+ "$ref": "#/components/schemas/SavedQueryRestApi.get_list.User"
+ },
+ "changed_on": {
+ "format": "date-time",
+ "nullable": true,
+ "type": "string"
+ },
+ "changed_on_delta_humanized": {
+ "readOnly": true
+ },
+ "created_by": {
+ "$ref": "#/components/schemas/SavedQueryRestApi.get_list.User1"
+ },
+ "created_on": {
+ "format": "date-time",
+ "nullable": true,
+ "type": "string"
+ },
+ "database": {
+ "$ref": "#/components/schemas/SavedQueryRestApi.get_list.Database"
+ },
+ "db_id": {
+ "nullable": true,
+ "type": "integer"
+ },
+ "description": {
+ "nullable": true,
+ "type": "string"
+ },
+ "extra": {
+ "readOnly": true
+ },
+ "id": {
+ "type": "integer"
+ },
+ "label": {
+ "maxLength": 256,
+ "nullable": true,
+ "type": "string"
+ },
+ "last_run_delta_humanized": {
+ "readOnly": true
+ },
+ "rows": {
+ "nullable": true,
+ "type": "integer"
+ },
+ "schema": {
+ "maxLength": 128,
+ "nullable": true,
+ "type": "string"
+ },
+ "sql": {
+ "nullable": true,
+ "type": "string"
+ },
+ "sql_tables": {
+ "readOnly": true
+ },
+ "tags": {
+ "$ref": "#/components/schemas/SavedQueryRestApi.get_list.Tag"
+ }
+ },
+ "type": "object"
+ },
+ "SavedQueryRestApi.get_list.Database": {
+ "properties": {
+ "database_name": {
+ "maxLength": 250,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ }
+ },
+ "required": ["database_name"],
+ "type": "object"
+ },
+ "SavedQueryRestApi.get_list.Tag": {
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "maxLength": 250,
+ "nullable": true,
+ "type": "string"
+ },
+ "type": {
+ "enum": [1, 2, 3, 4]
+ }
+ },
+ "type": "object"
+ },
+ "SavedQueryRestApi.get_list.User": {
+ "properties": {
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["first_name", "last_name"],
+ "type": "object"
+ },
+ "SavedQueryRestApi.get_list.User1": {
+ "properties": {
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["first_name", "last_name"],
+ "type": "object"
+ },
+ "SavedQueryRestApi.post": {
+ "properties": {
+ "catalog": {
+ "maxLength": 256,
+ "nullable": true,
+ "type": "string"
+ },
+ "db_id": {
+ "nullable": true,
+ "type": "integer"
+ },
+ "description": {
+ "nullable": true,
+ "type": "string"
+ },
+ "extra_json": {
+ "nullable": true,
+ "type": "string"
+ },
+ "label": {
+ "maxLength": 256,
+ "nullable": true,
+ "type": "string"
+ },
+ "schema": {
+ "maxLength": 128,
+ "nullable": true,
+ "type": "string"
+ },
+ "sql": {
+ "nullable": true,
+ "type": "string"
+ },
+ "template_parameters": {
+ "nullable": true,
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SavedQueryRestApi.put": {
+ "properties": {
+ "catalog": {
+ "maxLength": 256,
+ "nullable": true,
+ "type": "string"
+ },
+ "db_id": {
+ "nullable": true,
+ "type": "integer"
+ },
+ "description": {
+ "nullable": true,
+ "type": "string"
+ },
+ "extra_json": {
+ "nullable": true,
+ "type": "string"
+ },
+ "label": {
+ "maxLength": 256,
+ "nullable": true,
+ "type": "string"
+ },
+ "schema": {
+ "maxLength": 128,
+ "nullable": true,
+ "type": "string"
+ },
+ "sql": {
+ "nullable": true,
+ "type": "string"
+ },
+ "template_parameters": {
+ "nullable": true,
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SchemasResponseSchema": {
+ "properties": {
+ "result": {
+ "items": {
+ "description": "A database schema name",
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "SelectStarResponseSchema": {
+ "properties": {
+ "result": {
+ "description": "SQL select star",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "Slice": {
+ "properties": {
+ "cache_timeout": {
+ "description": "Duration (in seconds) of the caching timeout for this chart.",
+ "type": "integer"
+ },
+ "certification_details": {
+ "description": "Details of the certification.",
+ "type": "string"
+ },
+ "certified_by": {
+ "description": "Person or group that has certified this dashboard.",
+ "type": "string"
+ },
+ "changed_on": {
+ "description": "Timestamp of the last modification.",
+ "format": "date-time",
+ "type": "string"
+ },
+ "changed_on_humanized": {
+ "description": "Timestamp of the last modification in human readable form.",
+ "type": "string"
+ },
+ "datasource": {
+ "description": "Datasource identifier.",
+ "type": "string"
+ },
+ "description": {
+ "description": "Slice description.",
+ "type": "string"
+ },
+ "description_markeddown": {
+ "description": "Sanitized HTML version of the chart description.",
+ "type": "string"
+ },
+ "edit_url": {
+ "description": "The URL for editing the slice.",
+ "type": "string"
+ },
+ "form_data": {
+ "description": "Form data associated with the slice.",
+ "type": "object"
+ },
+ "is_managed_externally": {
+ "description": "If the chart is managed outside externally.",
+ "type": "boolean"
+ },
+ "modified": {
+ "description": "Last modification in human readable form.",
+ "type": "string"
+ },
+ "owners": {
+ "description": "Owners identifiers.",
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "query_context": {
+ "description": "The context associated with the query.",
+ "type": "object"
+ },
+ "slice_id": {
+ "description": "The slice ID.",
+ "type": "integer"
+ },
+ "slice_name": {
+ "description": "The slice name.",
+ "type": "string"
+ },
+ "slice_url": {
+ "description": "The slice URL.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "StopQuerySchema": {
+ "properties": {
+ "client_id": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "Tab": {
+ "properties": {
+ "children": {
+ "items": {
+ "$ref": "#/components/schemas/Tab"
+ },
+ "type": "array"
+ },
+ "parents": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "title": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "TabState": {
+ "properties": {
+ "active": {
+ "type": "boolean"
+ },
+ "autorun": {
+ "type": "boolean"
+ },
+ "database_id": {
+ "type": "integer"
+ },
+ "extra_json": {
+ "type": "object"
+ },
+ "hide_left_bar": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "label": {
+ "type": "string"
+ },
+ "latest_query": {
+ "$ref": "#/components/schemas/QueryResult"
+ },
+ "query_limit": {
+ "type": "integer"
+ },
+ "saved_query": {
+ "nullable": true,
+ "type": "object"
+ },
+ "schema": {
+ "type": "string"
+ },
+ "sql": {
+ "type": "string"
+ },
+ "table_schemas": {
+ "items": {
+ "$ref": "#/components/schemas/Table"
+ },
+ "type": "array"
+ },
+ "user_id": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "Table": {
+ "properties": {
+ "database_id": {
+ "type": "integer"
+ },
+ "description": {
+ "type": "string"
+ },
+ "expanded": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "schema": {
+ "type": "string"
+ },
+ "tab_state_id": {
+ "type": "integer"
+ },
+ "table": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "TableExtraMetadataResponseSchema": {
+ "properties": {
+ "clustering": {
+ "type": "object"
+ },
+ "metadata": {
+ "type": "object"
+ },
+ "partitions": {
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "TableMetadataColumnsResponse": {
+ "properties": {
+ "duplicates_constraint": {
+ "type": "string"
+ },
+ "keys": {
+ "description": "",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "longType": {
+ "description": "The actual backend long type for the column",
+ "type": "string"
+ },
+ "name": {
+ "description": "The column name",
+ "type": "string"
+ },
+ "type": {
+ "description": "The column type",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "TableMetadataForeignKeysIndexesResponse": {
+ "properties": {
+ "column_names": {
+ "items": {
+ "description": "A list of column names that compose the foreign key or index",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "name": {
+ "description": "The name of the foreign key or index",
+ "type": "string"
+ },
+ "options": {
+ "$ref": "#/components/schemas/TableMetadataOptionsResponse"
+ },
+ "referred_columns": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "referred_schema": {
+ "type": "string"
+ },
+ "referred_table": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "TableMetadataOptionsResponse": {
+ "properties": {
+ "deferrable": {
+ "type": "boolean"
+ },
+ "initially": {
+ "type": "boolean"
+ },
+ "match": {
+ "type": "boolean"
+ },
+ "ondelete": {
+ "type": "boolean"
+ },
+ "onupdate": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "TableMetadataPrimaryKeyResponse": {
+ "properties": {
+ "column_names": {
+ "items": {
+ "description": "A list of column names that compose the primary key",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "name": {
+ "description": "The primary key index name",
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "TableMetadataResponseSchema": {
+ "properties": {
+ "columns": {
+ "description": "A list of columns and their metadata",
+ "items": {
+ "$ref": "#/components/schemas/TableMetadataColumnsResponse"
+ },
+ "type": "array"
+ },
+ "foreignKeys": {
+ "description": "A list of foreign keys and their metadata",
+ "items": {
+ "$ref": "#/components/schemas/TableMetadataForeignKeysIndexesResponse"
+ },
+ "type": "array"
+ },
+ "indexes": {
+ "description": "A list of indexes and their metadata",
+ "items": {
+ "$ref": "#/components/schemas/TableMetadataForeignKeysIndexesResponse"
+ },
+ "type": "array"
+ },
+ "name": {
+ "description": "The name of the table",
+ "type": "string"
+ },
+ "primaryKey": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/TableMetadataPrimaryKeyResponse"
+ }
+ ],
+ "description": "Primary keys metadata"
+ },
+ "selectStar": {
+ "description": "SQL select star",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "Tables": {
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "schema": {
+ "type": "string"
+ },
+ "table_name": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "TabsPayloadSchema": {
+ "properties": {
+ "all_tabs": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "tab_tree": {
+ "items": {
+ "$ref": "#/components/schemas/Tab"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "Tag": {
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "enum": [1, 2, 3, 4]
+ }
+ },
+ "type": "object"
+ },
+ "TagGetResponseSchema": {
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "TagObject": {
+ "properties": {
+ "description": {
+ "nullable": true,
+ "type": "string"
+ },
+ "name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "objects_to_tag": {
+ "description": "Objects to tag",
+ "items": {},
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "TagPostBulkResponseObject": {
+ "properties": {
+ "objects_skipped": {
+ "description": "Objects to tag",
+ "items": {},
+ "type": "array"
+ },
+ "objects_tagged": {
+ "description": "Objects to tag",
+ "items": {},
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "TagPostBulkResponseSchema": {
+ "properties": {
+ "result": {
+ "$ref": "#/components/schemas/TagPostBulkResponseObject"
+ }
+ },
+ "type": "object"
+ },
+ "TagPostBulkSchema": {
+ "properties": {
+ "tags": {
+ "items": {
+ "$ref": "#/components/schemas/TagObject"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "TagRestApi.get": {
+ "properties": {
+ "changed_by": {
+ "$ref": "#/components/schemas/TagRestApi.get.User"
+ },
+ "changed_on_delta_humanized": {
+ "readOnly": true
+ },
+ "created_by": {
+ "$ref": "#/components/schemas/TagRestApi.get.User1"
+ },
+ "created_on_delta_humanized": {
+ "readOnly": true
+ },
+ "description": {
+ "nullable": true,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "maxLength": 250,
+ "nullable": true,
+ "type": "string"
+ },
+ "type": {
+ "enum": [1, 2, 3, 4]
+ }
+ },
+ "type": "object"
+ },
+ "TagRestApi.get.User": {
+ "properties": {
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["first_name", "last_name"],
+ "type": "object"
+ },
+ "TagRestApi.get.User1": {
+ "properties": {
+ "active": {
+ "nullable": true,
+ "type": "boolean"
+ },
+ "changed_on": {
+ "format": "date-time",
+ "nullable": true,
+ "type": "string"
+ },
+ "created_on": {
+ "format": "date-time",
+ "nullable": true,
+ "type": "string"
+ },
+ "email": {
+ "maxLength": 320,
+ "type": "string"
+ },
+ "fail_login_count": {
+ "nullable": true,
+ "type": "integer"
+ },
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "last_login": {
+ "format": "date-time",
+ "nullable": true,
+ "type": "string"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "login_count": {
+ "nullable": true,
+ "type": "integer"
+ },
+ "password": {
+ "maxLength": 256,
+ "nullable": true,
+ "type": "string"
+ },
+ "username": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["email", "first_name", "last_name", "username"],
+ "type": "object"
+ },
+ "TagRestApi.get_list": {
+ "properties": {
+ "changed_by": {
+ "$ref": "#/components/schemas/TagRestApi.get_list.User"
+ },
+ "changed_on_delta_humanized": {
+ "readOnly": true
+ },
+ "created_by": {
+ "$ref": "#/components/schemas/TagRestApi.get_list.User1"
+ },
+ "created_on_delta_humanized": {
+ "readOnly": true
+ },
+ "description": {
+ "nullable": true,
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "maxLength": 250,
+ "nullable": true,
+ "type": "string"
+ },
+ "type": {
+ "enum": [1, 2, 3, 4]
+ }
+ },
+ "type": "object"
+ },
+ "TagRestApi.get_list.User": {
+ "properties": {
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["first_name", "last_name"],
+ "type": "object"
+ },
+ "TagRestApi.get_list.User1": {
+ "properties": {
+ "first_name": {
+ "maxLength": 64,
+ "type": "string"
+ },
+ "last_name": {
+ "maxLength": 64,
+ "type": "string"
+ }
+ },
+ "required": ["first_name", "last_name"],
+ "type": "object"
+ },
+ "TagRestApi.post": {
+ "properties": {
+ "description": {
+ "nullable": true,
+ "type": "string"
+ },
+ "name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "objects_to_tag": {
+ "description": "Objects to tag",
+ "items": {},
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "TagRestApi.put": {
+ "properties": {
+ "description": {
+ "nullable": true,
+ "type": "string"
+ },
+ "name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "objects_to_tag": {
+ "description": "Objects to tag",
+ "items": {},
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "TaggedObjectEntityResponseSchema": {
+ "properties": {
+ "changed_on": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "created_by": {
+ "$ref": "#/components/schemas/User"
+ },
+ "creator": {
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "owners": {
+ "items": {
+ "$ref": "#/components/schemas/User1"
+ },
+ "type": "array"
+ },
+ "tags": {
+ "items": {
+ "$ref": "#/components/schemas/TagGetResponseSchema"
+ },
+ "type": "array"
+ },
+ "type": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "TemporaryCachePostSchema": {
+ "properties": {
+ "value": {
+ "description": "Any type of JSON supported text.",
+ "type": "string"
+ }
+ },
+ "required": ["value"],
+ "type": "object"
+ },
+ "TemporaryCachePutSchema": {
+ "properties": {
+ "value": {
+ "description": "Any type of JSON supported text.",
+ "type": "string"
+ }
+ },
+ "required": ["value"],
+ "type": "object"
+ },
+ "UploadFileMetadata": {
+ "properties": {
+ "items": {
+ "items": {
+ "$ref": "#/components/schemas/UploadFileMetadataItem"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "UploadFileMetadataItem": {
+ "properties": {
+ "column_names": {
+ "description": "A list of columns names in the sheet",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "sheet_name": {
+ "description": "The name of the sheet",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "User": {
+ "properties": {
+ "first_name": {
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "last_name": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "User1": {
+ "properties": {
+ "first_name": {
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "last_name": {
+ "type": "string"
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "User2": {
+ "properties": {
+ "first_name": {
+ "type": "string"
+ },
+ "last_name": {
+ "type": "string"
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "UserResponseSchema": {
+ "properties": {
+ "email": {
+ "type": "string"
+ },
+ "first_name": {
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "is_active": {
+ "type": "boolean"
+ },
+ "is_anonymous": {
+ "type": "boolean"
+ },
+ "last_name": {
+ "type": "string"
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "ValidateSQLRequest": {
+ "properties": {
+ "catalog": {
+ "nullable": true,
+ "type": "string"
+ },
+ "schema": {
+ "nullable": true,
+ "type": "string"
+ },
+ "sql": {
+ "description": "SQL statement to validate",
+ "type": "string"
+ },
+ "template_params": {
+ "nullable": true,
+ "type": "object"
+ }
+ },
+ "required": ["sql"],
+ "type": "object"
+ },
+ "ValidateSQLResponse": {
+ "properties": {
+ "end_column": {
+ "type": "integer"
+ },
+ "line_number": {
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "start_column": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "ValidatorConfigJSON": {
+ "properties": {
+ "op": {
+ "description": "The operation to compare with a threshold to apply to the SQL output\n",
+ "enum": ["<", "<=", ">", ">=", "==", "!="],
+ "type": "string"
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "advanced_data_type_convert_schema": {
+ "properties": {
+ "type": {
+ "default": "port",
+ "type": "string"
+ },
+ "values": {
+ "items": {
+ "default": "http"
+ },
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": ["type", "values"],
+ "type": "object"
+ },
+ "database_catalogs_query_schema": {
+ "properties": {
+ "force": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "database_schemas_query_schema": {
+ "properties": {
+ "catalog": {
+ "type": "string"
+ },
+ "force": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "database_tables_query_schema": {
+ "properties": {
+ "catalog_name": {
+ "type": "string"
+ },
+ "force": {
+ "type": "boolean"
+ },
+ "schema_name": {
+ "type": "string"
+ }
+ },
+ "required": ["schema_name"],
+ "type": "object"
+ },
+ "delete_tags_schema": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "get_delete_ids_schema": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "get_export_ids_schema": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "get_fav_star_ids_schema": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "get_info_schema": {
+ "properties": {
+ "add_columns": {
+ "additionalProperties": {
+ "properties": {
+ "page": {
+ "type": "integer"
+ },
+ "page_size": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "type": "object"
+ },
+ "edit_columns": {
+ "additionalProperties": {
+ "properties": {
+ "page": {
+ "type": "integer"
+ },
+ "page_size": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "type": "object"
+ },
+ "keys": {
+ "items": {
+ "enum": [
+ "add_columns",
+ "edit_columns",
+ "filters",
+ "permissions",
+ "add_title",
+ "edit_title",
+ "none"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "get_item_schema": {
+ "properties": {
+ "columns": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "keys": {
+ "items": {
+ "enum": [
+ "show_columns",
+ "description_columns",
+ "label_columns",
+ "show_title",
+ "none"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "get_list_schema": {
+ "properties": {
+ "columns": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
},
- "validator_config_json": {
- "$ref": "#/components/schemas/ValidatorConfigJSON"
+ "filters": {
+ "items": {
+ "properties": {
+ "col": {
+ "type": "string"
+ },
+ "opr": {
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "array"
+ }
+ ]
+ }
+ },
+ "required": ["col", "opr", "value"],
+ "type": "object"
+ },
+ "type": "array"
},
- "validator_type": {
- "description": "Determines when to trigger alert based off value from alert query. Alerts will be triggered with these validator types:\n- Not Null - When the return value is Not NULL, Empty, or 0\n- Operator - When `sql_return_value comparison_operator threshold` is True e.g. `50 <= 75`<br>Supports the comparison operators <, <=, >, >=, ==, and !=",
- "enum": ["not null", "operator"],
- "nullable": true,
+ "keys": {
+ "items": {
+ "enum": [
+ "list_columns",
+ "order_columns",
+ "label_columns",
+ "description_columns",
+ "list_title",
+ "none"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "order_column": {
"type": "string"
},
- "working_timeout": {
- "description": "If an alert is staled at a working state, how long until it's state is reseted to error",
- "example": 3600,
- "minimum": 1,
- "nullable": true,
+ "order_direction": {
+ "enum": ["asc", "desc"],
+ "type": "string"
+ },
+ "page": {
+ "type": "integer"
+ },
+ "page_size": {
"type": "integer"
+ },
+ "select_columns": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
}
},
"type": "object"
},
- "Resource": {
+ "get_recent_activity_schema": {
"properties": {
- "id": {
- "type": "string"
+ "actions": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
},
- "type": {
- "enum": ["dashboard"]
+ "distinct": {
+ "type": "boolean"
+ },
+ "page": {
+ "type": "number"
+ },
+ "page_size": {
+ "type": "number"
}
},
- "required": ["id", "type"],
"type": "object"
},
- "RlsRule": {
+ "get_related_schema": {
"properties": {
- "clause": {
+ "filter": {
"type": "string"
},
- "dataset": {
+ "include_ids": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "page": {
+ "type": "integer"
+ },
+ "page_size": {
"type": "integer"
}
},
- "required": ["clause"],
"type": "object"
},
- "Roles": {
+ "queries_get_updated_since_schema": {
"properties": {
- "id": {
- "type": "integer"
- },
- "name": {
- "type": "string"
+ "last_updated_ms": {
+ "type": "number"
}
},
+ "required": ["last_updated_ms"],
"type": "object"
},
- "Roles1": {
+ "screenshot_query_schema": {
"properties": {
- "id": {
- "type": "integer"
+ "force": {
+ "type": "boolean"
},
- "name": {
- "type": "string"
+ "thumb_size": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "window_size": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
}
},
"type": "object"
},
- "SavedQueryRestApi.get": {
+ "sql_lab_get_results_schema": {
"properties": {
- "changed_on_delta_humanized": {
- "readOnly": true
- },
- "created_by": {
- "$ref": "#/components/schemas/SavedQueryRestApi.get.User"
- },
- "database": {
- "$ref": "#/components/schemas/SavedQueryRestApi.get.Database"
- },
- "description": {
- "nullable": true,
- "type": "string"
- },
- "id": {
- "type": "integer"
- },
- "label": {
- "maxLength": 256,
- "nullable": true,
- "type": "string"
- },
- "schema": {
- "maxLength": 128,
- "nullable": true,
- "type": "string"
- },
- "sql": {
- "nullable": true,
- "type": "string"
- },
- "sql_tables": {
- "readOnly": true
- },
- "template_parameters": {
- "nullable": true,
+ "key": {
"type": "string"
}
},
+ "required": ["key"],
"type": "object"
},
- "SavedQueryRestApi.get.Database": {
+ "thumbnail_query_schema": {
"properties": {
- "database_name": {
- "maxLength": 250,
- "type": "string"
- },
- "id": {
- "type": "integer"
+ "force": {
+ "type": "boolean"
}
},
- "required": ["database_name"],
"type": "object"
+ }
+ },
+ "securitySchemes": {
+ "jwt": {
+ "bearerFormat": "JWT",
+ "scheme": "bearer",
+ "type": "http"
},
- "SavedQueryRestApi.get.User": {
- "properties": {
- "first_name": {
- "maxLength": 64,
- "type": "string"
- },
- "id": {
- "type": "integer"
- },
- "last_name": {
- "maxLength": 64,
- "type": "string"
+ "jwt_refresh": {
+ "bearerFormat": "JWT",
+ "scheme": "bearer",
+ "type": "http"
+ }
+ }
+ },
+ "info": {
+ "description": "Superset",
+ "title": "Superset",
+ "version": "v1"
+ },
+ "openapi": "3.0.2",
+ "paths": {
+ "/api/v1/advanced_data_type/convert": {
+ "get": {
+ "description": "Returns an AdvancedDataTypeResponse object populated with the passed in args.",
+ "parameters": [
+ {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/advanced_data_type_convert_schema"
+ }
+ }
+ },
+ "in": "query",
+ "name": "q"
}
- },
- "required": ["first_name", "last_name"],
- "type": "object"
- },
- "SavedQueryRestApi.get_list": {
- "properties": {
- "changed_on_delta_humanized": {
- "readOnly": true
- },
- "created_by": {
- "$ref": "#/components/schemas/SavedQueryRestApi.get_list.User"
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AdvancedDataTypeSchema"
+ }
+ }
+ },
+ "description": "AdvancedDataTypeResponse object has been returned."
},
- "created_on": {
- "format": "date-time",
- "nullable": true,
- "type": "string"
+ "400": {
+ "$ref": "#/components/responses/400"
},
- "database": {
- "$ref": "#/components/schemas/SavedQueryRestApi.get_list.Database"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "db_id": {
- "nullable": true,
- "type": "integer"
+ "403": {
+ "$ref": "#/components/responses/403"
},
- "description": {
- "nullable": true,
- "type": "string"
+ "404": {
+ "$ref": "#/components/responses/404"
},
- "extra": {
- "readOnly": true
+ "500": {
+ "$ref": "#/components/responses/500"
+ }
+ },
+ "security": [
+ {
+ "jwt": []
+ }
+ ],
+ "summary": "Return an AdvancedDataTypeResponse",
+ "tags": ["Advanced Data Type"]
+ }
+ },
+ "/api/v1/advanced_data_type/types": {
+ "get": {
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "result": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ }
+ }
+ },
+ "description": "a successful return of the available advanced data types has taken place."
},
- "id": {
- "type": "integer"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "label": {
- "maxLength": 256,
- "nullable": true,
- "type": "string"
+ "403": {
+ "$ref": "#/components/responses/403"
},
- "last_run_delta_humanized": {
- "readOnly": true
+ "404": {
+ "$ref": "#/components/responses/404"
},
- "rows": {
- "nullable": true,
- "type": "integer"
+ "500": {
+ "$ref": "#/components/responses/500"
+ }
+ },
+ "security": [
+ {
+ "jwt": []
+ }
+ ],
+ "summary": "Return a list of available advanced data types",
+ "tags": ["Advanced Data Type"]
+ }
+ },
+ "/api/v1/annotation_layer/": {
+ "delete": {
+ "parameters": [
+ {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/get_delete_ids_schema"
+ }
+ }
+ },
+ "in": "query",
+ "name": "q"
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "message": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ }
+ },
+ "description": "CSS templates bulk delete"
},
- "schema": {
- "maxLength": 128,
- "nullable": true,
- "type": "string"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "sql": {
- "nullable": true,
- "type": "string"
+ "404": {
+ "$ref": "#/components/responses/404"
},
- "sql_tables": {
- "readOnly": true
+ "422": {
+ "$ref": "#/components/responses/422"
},
- "tags": {
- "$ref": "#/components/schemas/SavedQueryRestApi.get_list.Tag"
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "type": "object"
- },
- "SavedQueryRestApi.get_list.Database": {
- "properties": {
- "database_name": {
- "maxLength": 250,
- "type": "string"
- },
- "id": {
- "type": "integer"
+ "security": [
+ {
+ "jwt": []
}
- },
- "required": ["database_name"],
- "type": "object"
+ ],
+ "summary": "Delete multiple annotation layers in a bulk operation",
+ "tags": ["Annotation Layers"]
},
- "SavedQueryRestApi.get_list.Tag": {
- "properties": {
- "id": {
- "type": "integer"
+ "get": {
+ "description": "Gets a list of annotation layers, use Rison or JSON query parameters for filtering, sorting, pagination and for selecting specific columns and metadata.",
+ "parameters": [
+ {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/get_list_schema"
+ }
+ }
+ },
+ "in": "query",
+ "name": "q"
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "count": {
+ "description": "The total record count on the backend",
+ "type": "number"
+ },
+ "description_columns": {
+ "properties": {
+ "column_name": {
+ "description": "The description for the column name. Will be translated by babel",
+ "example": "A Nice description for the column",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "ids": {
+ "description": "A list of item ids, useful when you don't know the column id",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "label_columns": {
+ "properties": {
+ "column_name": {
+ "description": "The label for the column name. Will be translated by babel",
+ "example": "A Nice label for the column",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "list_columns": {
+ "description": "A list of columns",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "list_title": {
+ "description": "A title to render. Will be translated by babel",
+ "example": "List Items",
+ "type": "string"
+ },
+ "order_columns": {
+ "description": "A list of allowed columns to sort",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "result": {
+ "description": "The result from the get list query",
+ "items": {
+ "$ref": "#/components/schemas/AnnotationLayerRestApi.get_list"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ }
+ }
+ },
+ "description": "Items from Model"
},
- "name": {
- "maxLength": 250,
- "nullable": true,
- "type": "string"
+ "400": {
+ "$ref": "#/components/responses/400"
},
- "type": {
- "enum": [1, 2, 3, 4]
- }
- },
- "type": "object"
- },
- "SavedQueryRestApi.get_list.User": {
- "properties": {
- "first_name": {
- "maxLength": 64,
- "type": "string"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "id": {
- "type": "integer"
+ "422": {
+ "$ref": "#/components/responses/422"
},
- "last_name": {
- "maxLength": 64,
- "type": "string"
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "required": ["first_name", "last_name"],
- "type": "object"
- },
- "SavedQueryRestApi.post": {
- "properties": {
- "db_id": {
- "nullable": true,
- "type": "integer"
- },
- "description": {
- "nullable": true,
- "type": "string"
- },
- "label": {
- "maxLength": 256,
- "nullable": true,
- "type": "string"
- },
- "schema": {
- "maxLength": 128,
- "nullable": true,
- "type": "string"
- },
- "sql": {
- "nullable": true,
- "type": "string"
- },
- "template_parameters": {
- "nullable": true,
- "type": "string"
+ "security": [
+ {
+ "jwt": []
}
- },
- "type": "object"
+ ],
+ "summary": "Get a list of annotation layers",
+ "tags": ["Annotation Layers"]
},
- "SavedQueryRestApi.put": {
- "properties": {
- "db_id": {
- "nullable": true,
- "type": "integer"
+ "post": {
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AnnotationLayerRestApi.post"
+ }
+ }
},
- "description": {
- "nullable": true,
- "type": "string"
+ "description": "Annotation Layer schema",
+ "required": true
+ },
+ "responses": {
+ "201": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "result": {
+ "$ref": "#/components/schemas/AnnotationLayerRestApi.post"
+ }
+ },
+ "type": "object"
+ }
+ }
+ },
+ "description": "Annotation added"
},
- "label": {
- "maxLength": 256,
- "nullable": true,
- "type": "string"
+ "400": {
+ "$ref": "#/components/responses/400"
},
- "schema": {
- "maxLength": 128,
- "nullable": true,
- "type": "string"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "sql": {
- "nullable": true,
- "type": "string"
+ "404": {
+ "$ref": "#/components/responses/404"
},
- "template_parameters": {
- "nullable": true,
- "type": "string"
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "type": "object"
- },
- "SchemasResponseSchema": {
- "properties": {
- "result": {
- "items": {
- "description": "A database schema name",
- "type": "string"
- },
- "type": "array"
+ "security": [
+ {
+ "jwt": []
}
- },
- "type": "object"
- },
- "SelectStarResponseSchema": {
- "properties": {
- "result": {
- "description": "SQL select star",
- "type": "string"
+ ],
+ "summary": "Create an annotation layer",
+ "tags": ["Annotation Layers"]
+ }
+ },
+ "/api/v1/annotation_layer/_info": {
+ "get": {
+ "description": "Get metadata information about this API resource",
+ "parameters": [
+ {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/get_info_schema"
+ }
+ }
+ },
+ "in": "query",
+ "name": "q"
}
- },
- "type": "object"
- },
- "Slice": {
- "properties": {
- "cache_timeout": {
- "description": "Duration (in seconds) of the caching timeout for this chart.",
- "type": "integer"
- },
- "certification_details": {
- "description": "Details of the certification.",
- "type": "string"
- },
- "certified_by": {
- "description": "Person or group that has certified this dashboard.",
- "type": "string"
- },
- "changed_on": {
- "description": "Timestamp of the last modification.",
- "format": "date-time",
- "type": "string"
- },
- "changed_on_humanized": {
- "description": "Timestamp of the last modification in human readable form.",
- "type": "string"
- },
- "datasource": {
- "description": "Datasource identifier.",
- "type": "string"
- },
- "description": {
- "description": "Slice description.",
- "type": "string"
- },
- "description_markeddown": {
- "description": "Sanitized HTML version of the chart description.",
- "type": "string"
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "add_columns": {
+ "type": "object"
+ },
+ "edit_columns": {
+ "type": "object"
+ },
+ "filters": {
+ "properties": {
+ "column_name": {
+ "items": {
+ "properties": {
+ "name": {
+ "description": "The filter name. Will be translated by babel",
+ "type": "string"
+ },
+ "operator": {
+ "description": "The filter operation key to use on list filters",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "permissions": {
+ "description": "The user permissions for this API resource",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ }
+ }
+ },
+ "description": "Item from Model"
},
- "edit_url": {
- "description": "The URL for editing the slice.",
- "type": "string"
+ "400": {
+ "$ref": "#/components/responses/400"
},
- "form_data": {
- "description": "Form data associated with the slice.",
- "type": "object"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "is_managed_externally": {
- "description": "If the chart is managed outside externally.",
- "type": "boolean"
+ "422": {
+ "$ref": "#/components/responses/422"
},
- "modified": {
- "description": "Last modification in human readable form.",
- "type": "string"
+ "500": {
+ "$ref": "#/components/responses/500"
+ }
+ },
+ "security": [
+ {
+ "jwt": []
+ }
+ ],
+ "summary": "Get metadata information about this API resource",
+ "tags": ["Annotation Layers"]
+ }
+ },
+ "/api/v1/annotation_layer/related/{column_name}": {
+ "get": {
+ "parameters": [
+ {
+ "in": "path",
+ "name": "column_name",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
},
- "owners": {
- "description": "Owners identifiers.",
- "items": {
- "type": "integer"
+ {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/get_related_schema"
+ }
+ }
},
- "type": "array"
+ "in": "query",
+ "name": "q"
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/RelatedResponseSchema"
+ }
+ }
+ },
+ "description": "Related column data"
},
- "query_context": {
- "description": "The context associated with the query.",
- "type": "object"
+ "400": {
+ "$ref": "#/components/responses/400"
},
- "slice_id": {
- "description": "The slice ID.",
- "type": "integer"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "slice_name": {
- "description": "The slice name.",
- "type": "string"
+ "404": {
+ "$ref": "#/components/responses/404"
},
- "slice_url": {
- "description": "The slice URL.",
- "type": "string"
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "type": "object"
- },
- "StopQuerySchema": {
- "properties": {
- "client_id": {
- "type": "string"
+ "security": [
+ {
+ "jwt": []
}
- },
- "type": "object"
- },
- "TableExtraMetadataResponseSchema": {
- "properties": {
- "clustering": {
- "type": "object"
- },
- "metadata": {
- "type": "object"
- },
- "partitions": {
- "type": "object"
+ ],
+ "summary": "Get related fields data",
+ "tags": ["Annotation Layers"]
+ }
+ },
+ "/api/v1/annotation_layer/{pk}": {
+ "delete": {
+ "parameters": [
+ {
+ "description": "The annotation layer pk for this annotation",
+ "in": "path",
+ "name": "pk",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
}
- },
- "type": "object"
- },
- "TableMetadataColumnsResponse": {
- "properties": {
- "duplicates_constraint": {
- "type": "string"
- },
- "keys": {
- "description": "",
- "items": {
- "type": "string"
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "message": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ }
},
- "type": "array"
+ "description": "Item deleted"
},
- "longType": {
- "description": "The actual backend long type for the column",
- "type": "string"
+ "404": {
+ "$ref": "#/components/responses/404"
},
- "name": {
- "description": "The column name",
- "type": "string"
+ "422": {
+ "$ref": "#/components/responses/422"
},
- "type": {
- "description": "The column type",
- "type": "string"
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "type": "object"
+ "security": [
+ {
+ "jwt": []
+ }
+ ],
+ "summary": "Delete annotation layer",
+ "tags": ["Annotation Layers"]
},
- "TableMetadataForeignKeysIndexesResponse": {
- "properties": {
- "column_names": {
- "items": {
- "description": "A list of column names that compose the foreign key or index",
- "type": "string"
- },
- "type": "array"
+ "get": {
+ "description": "Get an item model",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "pk",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
},
- "name": {
- "description": "The name of the foreign key or index",
- "type": "string"
+ {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/get_item_schema"
+ }
+ }
+ },
+ "in": "query",
+ "name": "q"
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "description_columns": {
+ "properties": {
+ "column_name": {
+ "description": "The description for the column name. Will be translated by babel",
+ "example": "A Nice description for the column",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "id": {
+ "description": "The item id",
+ "type": "string"
+ },
+ "label_columns": {
+ "properties": {
+ "column_name": {
+ "description": "The label for the column name. Will be translated by babel",
+ "example": "A Nice label for the column",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "result": {
+ "$ref": "#/components/schemas/AnnotationLayerRestApi.get"
+ },
+ "show_columns": {
+ "description": "A list of columns",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "show_title": {
+ "description": "A title to render. Will be translated by babel",
+ "example": "Show Item Details",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ }
+ },
+ "description": "Item from Model"
},
- "options": {
- "$ref": "#/components/schemas/TableMetadataOptionsResponse"
+ "400": {
+ "$ref": "#/components/responses/400"
},
- "referred_columns": {
- "items": {
- "type": "string"
- },
- "type": "array"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "referred_schema": {
- "type": "string"
+ "404": {
+ "$ref": "#/components/responses/404"
},
- "referred_table": {
- "type": "string"
+ "422": {
+ "$ref": "#/components/responses/422"
},
- "type": {
- "type": "string"
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "type": "object"
+ "security": [
+ {
+ "jwt": []
+ }
+ ],
+ "summary": "Get an annotation layer",
+ "tags": ["Annotation Layers"]
},
- "TableMetadataOptionsResponse": {
- "properties": {
- "deferrable": {
- "type": "boolean"
- },
- "initially": {
- "type": "boolean"
- },
- "match": {
- "type": "boolean"
- },
- "ondelete": {
- "type": "boolean"
- },
- "onupdate": {
- "type": "boolean"
+ "put": {
+ "parameters": [
+ {
+ "description": "The annotation layer pk for this annotation",
+ "in": "path",
+ "name": "pk",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
}
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AnnotationLayerRestApi.put"
+ }
+ }
+ },
+ "description": "Annotation schema",
+ "required": true
},
- "type": "object"
- },
- "TableMetadataPrimaryKeyResponse": {
- "properties": {
- "column_names": {
- "items": {
- "description": "A list of column names that compose the primary key",
- "type": "string"
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "result": {
+ "$ref": "#/components/schemas/AnnotationLayerRestApi.put"
+ }
+ },
+ "type": "object"
+ }
+ }
},
- "type": "array"
+ "description": "Annotation changed"
},
- "name": {
- "description": "The primary key index name",
- "type": "string"
+ "400": {
+ "$ref": "#/components/responses/400"
},
- "type": {
- "type": "string"
+ "401": {
+ "$ref": "#/components/responses/401"
+ },
+ "404": {
+ "$ref": "#/components/responses/404"
+ },
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "type": "object"
- },
- "TableMetadataResponseSchema": {
- "properties": {
- "columns": {
- "description": "A list of columns and their metadata",
- "items": {
- "$ref": "#/components/schemas/TableMetadataColumnsResponse"
- },
- "type": "array"
+ "security": [
+ {
+ "jwt": []
+ }
+ ],
+ "summary": "Update an annotation layer",
+ "tags": ["Annotation Layers"]
+ }
+ },
+ "/api/v1/annotation_layer/{pk}/annotation/": {
+ "delete": {
+ "parameters": [
+ {
+ "description": "The annotation layer pk for this annotation",
+ "in": "path",
+ "name": "pk",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
},
- "foreignKeys": {
- "description": "A list of foreign keys and their metadata",
- "items": {
- "$ref": "#/components/schemas/TableMetadataForeignKeysIndexesResponse"
+ {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/get_delete_ids_schema"
+ }
+ }
},
- "type": "array"
- },
- "indexes": {
- "description": "A list of indexes and their metadata",
- "items": {
- "$ref": "#/components/schemas/TableMetadataForeignKeysIndexesResponse"
+ "in": "query",
+ "name": "q"
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "message": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ }
},
- "type": "array"
+ "description": "Annotations bulk delete"
},
- "name": {
- "description": "The name of the table",
- "type": "string"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "primaryKey": {
- "allOf": [
- {
- "$ref": "#/components/schemas/TableMetadataPrimaryKeyResponse"
- }
- ],
- "description": "Primary keys metadata"
+ "404": {
+ "$ref": "#/components/responses/404"
},
- "selectStar": {
- "description": "SQL select star",
- "type": "string"
+ "422": {
+ "$ref": "#/components/responses/422"
+ },
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "type": "object"
+ "security": [
+ {
+ "jwt": []
+ }
+ ],
+ "summary": "Bulk delete annotation layers",
+ "tags": ["Annotation Layers"]
},
- "Tables": {
- "properties": {
- "id": {
- "type": "integer"
+ "get": {
+ "description": "Gets a list of annotation layers, use Rison or JSON query parameters for filtering, sorting, pagination and for selecting specific columns and metadata.",
+ "parameters": [
+ {
+ "description": "The annotation layer id for this annotation",
+ "in": "path",
+ "name": "pk",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/get_list_schema"
+ }
+ }
+ },
+ "in": "query",
+ "name": "q"
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "count": {
+ "description": "The total record count on the backend",
+ "type": "number"
+ },
+ "ids": {
+ "description": "A list of annotation ids",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "result": {
+ "description": "The result from the get list query",
+ "items": {
+ "$ref": "#/components/schemas/AnnotationRestApi.get_list"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ }
+ }
+ },
+ "description": "Items from Annotations"
},
- "schema": {
- "type": "string"
+ "400": {
+ "$ref": "#/components/responses/400"
},
- "table_name": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "Tag": {
- "properties": {
- "id": {
- "type": "integer"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "name": {
- "type": "string"
+ "422": {
+ "$ref": "#/components/responses/422"
},
- "type": {
- "enum": [1, 2, 3, 4]
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "type": "object"
- },
- "Tag1": {
- "properties": {
- "id": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "type": {
- "enum": [1, 2, 3, 4]
+ "security": [
+ {
+ "jwt": []
}
- },
- "type": "object"
+ ],
+ "summary": "Get a list of annotation layers",
+ "tags": ["Annotation Layers"]
},
- "TagGetResponseSchema": {
- "properties": {
- "id": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "type": {
- "type": "string"
+ "post": {
+ "parameters": [
+ {
+ "description": "The annotation layer pk for this annotation",
+ "in": "path",
+ "name": "pk",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
}
- },
- "type": "object"
- },
- "TagRestApi.get": {
- "properties": {
- "changed_by": {
- "$ref": "#/components/schemas/TagRestApi.get.User1"
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AnnotationRestApi.post"
+ }
+ }
},
- "changed_on_delta_humanized": {
- "readOnly": true
+ "description": "Annotation schema",
+ "required": true
+ },
+ "responses": {
+ "201": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "result": {
+ "$ref": "#/components/schemas/AnnotationRestApi.post"
+ }
+ },
+ "type": "object"
+ }
+ }
+ },
+ "description": "Annotation added"
},
- "created_by": {
- "$ref": "#/components/schemas/TagRestApi.get.User"
+ "400": {
+ "$ref": "#/components/responses/400"
},
- "id": {
- "type": "integer"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "name": {
- "maxLength": 250,
- "nullable": true,
- "type": "string"
+ "404": {
+ "$ref": "#/components/responses/404"
},
- "type": {
- "enum": [1, 2, 3, 4]
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "type": "object"
- },
- "TagRestApi.get.User": {
- "properties": {
- "active": {
- "nullable": true,
- "type": "boolean"
- },
- "changed_on": {
- "format": "date-time",
- "nullable": true,
- "type": "string"
- },
- "created_on": {
- "format": "date-time",
- "nullable": true,
- "type": "string"
- },
- "email": {
- "maxLength": 64,
- "type": "string"
- },
- "fail_login_count": {
- "nullable": true,
- "type": "integer"
- },
- "first_name": {
- "maxLength": 64,
- "type": "string"
- },
- "id": {
- "type": "integer"
- },
- "last_login": {
- "format": "date-time",
- "nullable": true,
- "type": "string"
+ "security": [
+ {
+ "jwt": []
+ }
+ ],
+ "summary": "Create an annotation layer",
+ "tags": ["Annotation Layers"]
+ }
+ },
+ "/api/v1/annotation_layer/{pk}/annotation/{annotation_id}": {
+ "delete": {
+ "parameters": [
+ {
+ "description": "The annotation layer pk for this annotation",
+ "in": "path",
+ "name": "pk",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
},
- "last_name": {
- "maxLength": 64,
- "type": "string"
+ {
+ "description": "The annotation pk for this annotation",
+ "in": "path",
+ "name": "annotation_id",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "message": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ }
+ },
+ "description": "Item deleted"
},
- "login_count": {
- "nullable": true,
- "type": "integer"
+ "404": {
+ "$ref": "#/components/responses/404"
},
- "password": {
- "maxLength": 256,
- "nullable": true,
- "type": "string"
+ "422": {
+ "$ref": "#/components/responses/422"
},
- "username": {
- "maxLength": 64,
- "type": "string"
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "required": ["email", "first_name", "last_name", "username"],
- "type": "object"
+ "security": [
+ {
+ "jwt": []
+ }
+ ],
+ "summary": "Delete annotation layer",
+ "tags": ["Annotation Layers"]
},
- "TagRestApi.get.User1": {
- "properties": {
- "first_name": {
- "maxLength": 64,
- "type": "string"
+ "get": {
+ "parameters": [
+ {
+ "description": "The annotation layer pk for this annotation",
+ "in": "path",
+ "name": "pk",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
},
- "last_name": {
- "maxLength": 64,
- "type": "string"
+ {
+ "description": "The annotation pk",
+ "in": "path",
+ "name": "annotation_id",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/get_item_schema"
+ }
+ }
+ },
+ "in": "query",
+ "name": "q"
}
- },
- "required": ["first_name", "last_name"],
- "type": "object"
- },
- "TagRestApi.get_list": {
- "properties": {
- "changed_by": {
- "$ref": "#/components/schemas/TagRestApi.get_list.User1"
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "id": {
+ "description": "The item id",
+ "type": "string"
+ },
+ "result": {
+ "$ref": "#/components/schemas/AnnotationRestApi.get"
+ }
+ },
+ "type": "object"
+ }
+ }
+ },
+ "description": "Item from Model"
},
- "changed_on_delta_humanized": {
- "readOnly": true
+ "400": {
+ "$ref": "#/components/responses/400"
},
- "created_by": {
- "$ref": "#/components/schemas/TagRestApi.get_list.User"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "id": {
- "type": "integer"
+ "404": {
+ "$ref": "#/components/responses/404"
},
- "name": {
- "maxLength": 250,
- "nullable": true,
- "type": "string"
+ "422": {
+ "$ref": "#/components/responses/422"
},
- "type": {
- "enum": [1, 2, 3, 4]
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "type": "object"
- },
- "TagRestApi.get_list.User": {
- "properties": {
- "first_name": {
- "maxLength": 64,
- "type": "string"
- },
- "last_name": {
- "maxLength": 64,
- "type": "string"
+ "security": [
+ {
+ "jwt": []
}
- },
- "required": ["first_name", "last_name"],
- "type": "object"
+ ],
+ "summary": "Get an annotation layer",
+ "tags": ["Annotation Layers"]
},
- "TagRestApi.get_list.User1": {
- "properties": {
- "first_name": {
- "maxLength": 64,
- "type": "string"
+ "put": {
+ "parameters": [
+ {
+ "description": "The annotation layer pk for this annotation",
+ "in": "path",
+ "name": "pk",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
},
- "last_name": {
- "maxLength": 64,
- "type": "string"
+ {
+ "description": "The annotation pk for this annotation",
+ "in": "path",
+ "name": "annotation_id",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
}
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AnnotationRestApi.put"
+ }
+ }
+ },
+ "description": "Annotation schema",
+ "required": true
},
- "required": ["first_name", "last_name"],
- "type": "object"
- },
- "TagRestApi.post": {
- "properties": {
- "tags": {
- "items": {
- "type": "string"
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "result": {
+ "$ref": "#/components/schemas/AnnotationRestApi.put"
+ }
+ },
+ "type": "object"
+ }
+ }
},
- "type": "array"
- }
- },
- "type": "object"
- },
- "TagRestApi.put": {
- "properties": {
- "id": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "TaggedObjectEntityResponseSchema": {
- "properties": {
- "changed_on": {
- "format": "date-time",
- "type": "string"
- },
- "created_by": {
- "$ref": "#/components/schemas/User"
- },
- "creator": {
- "type": "string"
+ "description": "Annotation changed"
},
- "id": {
- "type": "integer"
+ "400": {
+ "$ref": "#/components/responses/400"
},
- "name": {
- "type": "string"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "type": {
- "type": "string"
+ "404": {
+ "$ref": "#/components/responses/404"
},
- "url": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "TemporaryCachePostSchema": {
- "properties": {
- "value": {
- "description": "Any type of JSON supported text.",
- "type": "string"
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "required": ["value"],
- "type": "object"
- },
- "TemporaryCachePutSchema": {
- "properties": {
- "value": {
- "description": "Any type of JSON supported text.",
- "type": "string"
+ "security": [
+ {
+ "jwt": []
}
- },
- "required": ["value"],
- "type": "object"
- },
- "User": {
- "properties": {
- "first_name": {
- "type": "string"
+ ],
+ "summary": "Update an annotation layer",
+ "tags": ["Annotation Layers"]
+ }
+ },
+ "/api/v1/apple/health": {
+ "get": {
+ "description": "Endpoint for checking the health status of the metastore and cache",
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AppleHealthResponseSchema"
+ }
+ }
+ },
+ "description": "The"
},
- "id": {
- "type": "integer"
+ "400": {
+ "$ref": "#/components/responses/400"
},
- "last_name": {
- "type": "string"
+ "401": {
+ "$ref": "#/components/responses/401"
+ },
+ "403": {
+ "$ref": "#/components/responses/403"
+ },
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "type": "object"
- },
- "User1": {
- "properties": {
- "first_name": {
- "type": "string"
+ "summary": "Get the health status of the metastore and cache",
+ "tags": ["Apple"]
+ }
+ },
+ "/api/v1/assets/export/": {
+ "get": {
+ "description": "Gets a ZIP file with all the Superset assets (databases, datasets, charts, dashboards, saved queries) as YAML files.",
+ "responses": {
+ "200": {
+ "content": {
+ "application/zip": {
+ "schema": {
+ "format": "binary",
+ "type": "string"
+ }
+ }
+ },
+ "description": "ZIP file"
},
- "id": {
- "type": "integer"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "last_name": {
- "type": "string"
+ "404": {
+ "$ref": "#/components/responses/404"
},
- "username": {
- "type": "string"
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "type": "object"
- },
- "User2": {
- "properties": {
- "first_name": {
- "type": "string"
- },
- "last_name": {
- "type": "string"
- },
- "username": {
- "type": "string"
+ "security": [
+ {
+ "jwt": []
}
- },
- "type": "object"
- },
- "UserResponseSchema": {
- "properties": {
- "email": {
- "type": "string"
- },
- "first_name": {
- "type": "string"
+ ],
+ "summary": "Export all assets",
+ "tags": ["Import/export"]
+ }
+ },
+ "/api/v1/assets/import/": {
+ "post": {
+ "requestBody": {
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "properties": {
+ "bundle": {
+ "description": "upload file (ZIP or JSON)",
+ "format": "binary",
+ "type": "string"
+ },
+ "passwords": {
+ "description": "JSON map of passwords for each featured database in the ZIP file. If the ZIP includes a database config in the path `databases/MyDatabase.yaml`, the password should be provided in the following format: `{\"databases/MyDatabase.yaml\": \"my_password\"}`.",
+ "type": "string"
+ },
+ "ssh_tunnel_passwords": {
+ "description": "JSON map of passwords for each ssh_tunnel associated to a featured database in the ZIP file. If the ZIP includes a ssh_tunnel config in the path `databases/MyDatabase.yaml`, the password should be provided in the following format: `{\"databases/MyDatabase.yaml\": \"my_password\"}`.",
+ "type": "string"
+ },
+ "ssh_tunnel_private_key_passwords": {
+ "description": "JSON map of private_key_passwords for each ssh_tunnel associated to a featured database in the ZIP file. If the ZIP includes a ssh_tunnel config in the path `databases/MyDatabase.yaml`, the private_key should be provided in the following format: `{\"databases/MyDatabase.yaml\": \"my_private_key_password\"}`.",
+ "type": "string"
+ },
+ "ssh_tunnel_private_keys": {
+ "description": "JSON map of private_keys for each ssh_tunnel associated to a featured database in the ZIP file. If the ZIP includes a ssh_tunnel config in the path `databases/MyDatabase.yaml`, the private_key should be provided in the following format: `{\"databases/MyDatabase.yaml\": \"my_private_key\"}`.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ }
},
- "id": {
- "type": "integer"
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "message": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ }
+ },
+ "description": "Assets import result"
},
- "is_active": {
- "type": "boolean"
+ "400": {
+ "$ref": "#/components/responses/400"
},
- "is_anonymous": {
- "type": "boolean"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "last_name": {
- "type": "string"
+ "422": {
+ "$ref": "#/components/responses/422"
},
- "username": {
- "type": "string"
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "type": "object"
- },
- "ValidateSQLRequest": {
- "properties": {
- "schema": {
- "nullable": true,
- "type": "string"
- },
- "sql": {
- "description": "SQL statement to validate",
- "type": "string"
- },
- "template_params": {
- "nullable": true,
- "type": "object"
+ "security": [
+ {
+ "jwt": []
}
- },
- "required": ["sql"],
- "type": "object"
- },
- "ValidateSQLResponse": {
- "properties": {
- "end_column": {
- "type": "integer"
- },
- "line_number": {
- "type": "integer"
+ ],
+ "summary": "Import multiple assets",
+ "tags": ["Import/export"]
+ }
+ },
+ "/api/v1/async_event/": {
+ "get": {
+ "description": "Reads off of the Redis events stream, using the user's JWT token and optional query params for last event received.",
+ "parameters": [
+ {
+ "description": "Last ID received by the client",
+ "in": "query",
+ "name": "last_id",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "result": {
+ "items": {
+ "properties": {
+ "channel_id": {
+ "type": "string"
+ },
+ "errors": {
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "id": {
+ "type": "string"
+ },
+ "job_id": {
+ "type": "string"
+ },
+ "result_url": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ },
+ "user_id": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ }
+ }
+ },
+ "description": "Async event results"
},
- "message": {
- "type": "string"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "start_column": {
- "type": "integer"
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "type": "object"
- },
- "ValidatorConfigJSON": {
- "properties": {
- "op": {
- "description": "The operation to compare with a threshold to apply to the SQL output\n",
- "enum": ["<", "<=", ">", ">=", "==", "!="],
- "type": "string"
- },
- "threshold": {
- "type": "number"
+ "security": [
+ {
+ "jwt": []
}
- },
- "type": "object"
- },
- "advanced_data_type_convert_schema": {
- "properties": {
- "type": {
- "default": "port",
- "type": "string"
- },
- "values": {
- "items": {
- "default": "http"
+ ],
+ "summary": "Read off of the Redis events stream",
+ "tags": ["AsyncEventsRestApi"]
+ }
+ },
+ "/api/v1/available_domains/": {
+ "get": {
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "result": {
+ "$ref": "#/components/schemas/AvailableDomainsSchema"
+ }
+ },
+ "type": "object"
+ }
+ }
},
- "minItems": 1,
- "type": "array"
+ "description": "a list of available domains"
+ },
+ "401": {
+ "$ref": "#/components/responses/401"
+ },
+ "403": {
+ "$ref": "#/components/responses/403"
}
},
- "required": ["type", "values"],
- "type": "object"
- },
- "database_schemas_query_schema": {
- "properties": {
- "force": {
- "type": "boolean"
+ "security": [
+ {
+ "jwt": []
}
+ ],
+ "summary": "Get all available domains",
+ "tags": ["Available Domains"]
+ }
+ },
+ "/api/v1/cachekey/invalidate": {
+ "post": {
+ "description": "Takes a list of datasources, finds and invalidates the associated cache records and removes the database records.",
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CacheInvalidationRequestSchema"
+ }
+ }
+ },
+ "description": "A list of datasources uuid or the tuples of database and datasource names",
+ "required": true
},
- "type": "object"
- },
- "database_tables_query_schema": {
- "properties": {
- "force": {
- "type": "boolean"
+ "responses": {
+ "201": {
+ "description": "cache was successfully invalidated"
},
- "schema_name": {
- "type": "string"
+ "400": {
+ "$ref": "#/components/responses/400"
+ },
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "required": ["schema_name"],
- "type": "object"
- },
- "delete_tags_schema": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "get_delete_ids_schema": {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "get_export_ids_schema": {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "get_fav_star_ids_schema": {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "get_info_schema": {
- "properties": {
- "add_columns": {
- "additionalProperties": {
- "properties": {
- "page": {
- "type": "integer"
- },
- "page_size": {
- "type": "integer"
+ "security": [
+ {
+ "jwt": []
+ }
+ ],
+ "summary": "Invalidate cache records and remove the database records",
+ "tags": ["CacheRestApi"]
+ }
+ },
+ "/api/v1/chart/": {
+ "delete": {
+ "parameters": [
+ {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/get_delete_ids_schema"
}
- },
- "type": "object"
+ }
},
- "type": "object"
- },
- "edit_columns": {
- "additionalProperties": {
- "properties": {
- "page": {
- "type": "integer"
- },
- "page_size": {
- "type": "integer"
+ "in": "query",
+ "name": "q"
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "message": {
+ "type": "string"
+ }
+ },
+ "type": "object"
}
- },
- "type": "object"
+ }
},
- "type": "object"
+ "description": "Charts bulk delete"
},
- "keys": {
- "items": {
- "enum": [
- "add_columns",
- "edit_columns",
- "filters",
- "permissions",
- "add_title",
- "edit_title",
- "none"
- ],
- "type": "string"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "get_item_schema": {
- "properties": {
- "columns": {
- "items": {
- "type": "string"
- },
- "type": "array"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "keys": {
- "items": {
- "enum": [
- "show_columns",
- "description_columns",
- "label_columns",
- "show_title",
- "none"
- ],
- "type": "string"
- },
- "type": "array"
+ "403": {
+ "$ref": "#/components/responses/403"
+ },
+ "404": {
+ "$ref": "#/components/responses/404"
+ },
+ "422": {
+ "$ref": "#/components/responses/422"
+ },
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "type": "object"
+ "security": [
+ {
+ "jwt": []
+ }
+ ],
+ "summary": "Bulk delete charts",
+ "tags": ["Charts"]
},
- "get_list_schema": {
- "properties": {
- "columns": {
- "items": {
- "type": "string"
+ "get": {
+ "description": "Gets a list of charts, use Rison or JSON query parameters for filtering, sorting, pagination and for selecting specific columns and metadata.",
+ "parameters": [
+ {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/get_list_schema"
+ }
+ }
},
- "type": "array"
- },
- "filters": {
- "items": {
- "properties": {
- "col": {
- "type": "string"
- },
- "opr": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
+ "in": "query",
+ "name": "q"
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "count": {
+ "description": "The total record count on the backend",
"type": "number"
},
- {
+ "description_columns": {
+ "properties": {
+ "column_name": {
+ "description": "The description for the column name. Will be translated by babel",
+ "example": "A Nice description for the column",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "ids": {
+ "description": "A list of item ids, useful when you don't know the column id",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "label_columns": {
+ "properties": {
+ "column_name": {
+ "description": "The label for the column name. Will be translated by babel",
+ "example": "A Nice label for the column",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "list_columns": {
+ "description": "A list of columns",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "list_title": {
+ "description": "A title to render. Will be translated by babel",
+ "example": "List Items",
"type": "string"
},
- {
- "type": "boolean"
+ "order_columns": {
+ "description": "A list of allowed columns to sort",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
},
- {
+ "result": {
+ "description": "The result from the get list query",
+ "items": {
+ "$ref": "#/components/schemas/ChartRestApi.get_list"
+ },
"type": "array"
}
- ]
+ },
+ "type": "object"
}
- },
- "required": ["col", "opr", "value"],
- "type": "object"
- },
- "type": "array"
- },
- "keys": {
- "items": {
- "enum": [
- "list_columns",
- "order_columns",
- "label_columns",
- "description_columns",
- "list_title",
- "none"
- ],
- "type": "string"
+ }
},
- "type": "array"
+ "description": "Items from Model"
},
- "order_column": {
- "type": "string"
+ "400": {
+ "$ref": "#/components/responses/400"
},
- "order_direction": {
- "enum": ["asc", "desc"],
- "type": "string"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "page": {
- "type": "integer"
+ "422": {
+ "$ref": "#/components/responses/422"
},
- "page_size": {
- "type": "integer"
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "type": "object"
- },
- "get_recent_activity_schema": {
- "properties": {
- "actions": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "distinct": {
- "type": "boolean"
- },
- "page": {
- "type": "number"
- },
- "page_size": {
- "type": "number"
+ "security": [
+ {
+ "jwt": []
}
- },
- "type": "object"
+ ],
+ "summary": "Get a list of charts",
+ "tags": ["Charts"]
},
- "get_related_schema": {
- "properties": {
- "filter": {
- "type": "string"
+ "post": {
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ChartRestApi.post"
+ }
+ }
},
- "include_ids": {
- "items": {
- "type": "integer"
+ "description": "Chart schema",
+ "required": true
+ },
+ "responses": {
+ "201": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "result": {
+ "$ref": "#/components/schemas/ChartRestApi.post"
+ }
+ },
+ "type": "object"
+ }
+ }
},
- "type": "array"
+ "description": "Chart added"
},
- "page": {
- "type": "integer"
+ "400": {
+ "$ref": "#/components/responses/400"
},
- "page_size": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "queries_get_updated_since_schema": {
- "properties": {
- "last_updated_ms": {
- "type": "number"
- }
- },
- "required": ["last_updated_ms"],
- "type": "object"
- },
- "screenshot_query_schema": {
- "properties": {
- "force": {
- "type": "boolean"
+ "401": {
+ "$ref": "#/components/responses/401"
},
- "thumb_size": {
- "items": {
- "type": "integer"
- },
- "type": "array"
+ "403": {
+ "$ref": "#/components/responses/403"
},
- "window_size": {
- "items": {
- "type": "integer"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "sql_lab_get_results_schema": {
- "properties": {
- "key": {
- "type": "string"
+ "422": {
+ "$ref": "#/components/responses/422"
+ },
+ "500": {
+ "$ref": "#/components/responses/500"
}
},
- "required": ["key"],
- "type": "object"
- },
- "thumbnail_query_schema": {
- "properties": {
- "force": {
- "type": "boolean"
+ "security": [
+ {
+ "jwt": []
}
- },
- "type": "object"
+ ],
+ "summary": "Create a new chart",
+ "tags": ["Charts"]
}
},
- "securitySchemes": {
- "jwt": {
- "bearerFormat": "JWT",
- "scheme": "bearer",
- "type": "http"
- },
- "jwt_refresh": {
- "bearerFormat": "JWT",
- "scheme": "bearer",
- "type": "http"
- }
- }
- },
- "info": {
- "description": "Superset",
- "title": "Superset",
- "version": "v1"
- },
- "openapi": "3.0.2",
- "paths": {
- "/api/v1/advanced_data_type/convert": {
+ "/api/v1/chart/_info": {
"get": {
+ "description": "Get metadata information about this API resource",
"parameters": [
{
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/advanced_data_type_convert_schema"
+ "$ref": "#/components/schemas/get_info_schema"
}
}
},
@@ -9747,11 +12656,47 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/AdvancedDataTypeSchema"
+ "properties": {
+ "add_columns": {
+ "type": "object"
+ },
+ "edit_columns": {
+ "type": "object"
+ },
+ "filters": {
+ "properties": {
+ "column_name": {
+ "items": {
+ "properties": {
+ "name": {
+ "description": "The filter name. Will be translated by babel",
+ "type": "string"
+ },
+ "operator": {
+ "description": "The filter operation key to use on list filters",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "permissions": {
+ "description": "The user permissions for this API resource",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
}
}
},
- "description": "AdvancedDataTypeResponse object has been returned."
+ "description": "Item from Model"
},
"400": {
"$ref": "#/components/responses/400"
@@ -9759,8 +12704,8 @@
"401": {
"$ref": "#/components/responses/401"
},
- "404": {
- "$ref": "#/components/responses/404"
+ "422": {
+ "$ref": "#/components/responses/422"
},
"500": {
"$ref": "#/components/responses/500"
@@ -9771,38 +12716,51 @@
"jwt": []
}
],
- "summary": "Returns a AdvancedDataTypeResponse object populated with the passed in args.",
- "tags": ["Advanced Data Type"]
+ "summary": "Get metadata information about this API resource",
+ "tags": ["Charts"]
}
},
- "/api/v1/advanced_data_type/types": {
- "get": {
- "description": "Returns a list of available advanced data types.",
+ "/api/v1/chart/data": {
+ "post": {
+ "description": "Takes a query context constructed in the client and returns payload data response for the given query.",
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ChartDataQueryContextSchema"
+ }
+ }
+ },
+ "description": "A query context consists of a datasource from which to fetch data and one or many query objects.",
+ "required": true
+ },
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
- "properties": {
- "result": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "type": "object"
+ "$ref": "#/components/schemas/ChartDataResponseSchema"
}
}
},
- "description": "a successful return of the available advanced data types has taken place."
+ "description": "Query result"
+ },
+ "202": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ChartDataAsyncResponseSchema"
+ }
+ }
+ },
+ "description": "Async job details"
+ },
+ "400": {
+ "$ref": "#/components/responses/400"
},
"401": {
"$ref": "#/components/responses/401"
},
- "404": {
- "$ref": "#/components/responses/404"
- },
"500": {
"$ref": "#/components/responses/500"
}
@@ -9812,23 +12770,21 @@
"jwt": []
}
],
- "tags": ["Advanced Data Type"]
+ "summary": "Return payload data response for the given query",
+ "tags": ["Charts"]
}
},
- "/api/v1/annotation_layer/": {
- "delete": {
- "description": "Deletes multiple annotation layers in a bulk operation.",
+ "/api/v1/chart/data/{cache_key}": {
+ "get": {
+ "description": "Takes a query context cache key and returns payload data response for the given query.",
"parameters": [
{
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/get_delete_ids_schema"
- }
- }
- },
- "in": "query",
- "name": "q"
+ "in": "path",
+ "name": "cache_key",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -9836,16 +12792,14 @@
"content": {
"application/json": {
"schema": {
- "properties": {
- "message": {
- "type": "string"
- }
- },
- "type": "object"
+ "$ref": "#/components/schemas/ChartDataResponseSchema"
}
}
},
- "description": "CSS templates bulk delete"
+ "description": "Query result"
+ },
+ "400": {
+ "$ref": "#/components/responses/400"
},
"401": {
"$ref": "#/components/responses/401"
@@ -9865,16 +12819,18 @@
"jwt": []
}
],
- "tags": ["Annotation Layers"]
- },
+ "summary": "Return payload data response for the given query",
+ "tags": ["Charts"]
+ }
+ },
+ "/api/v1/chart/export/": {
"get": {
- "description": "Get a list of Annotation layers, use Rison or JSON query parameters for filtering, sorting, pagination and for selecting specific columns and metadata.",
"parameters": [
{
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/get_list_schema"
+ "$ref": "#/components/schemas/get_export_ids_schema"
}
}
},
@@ -9885,72 +12841,14 @@
"responses": {
"200": {
"content": {
- "application/json": {
+ "application/zip": {
"schema": {
- "properties": {
- "count": {
- "description": "The total record count on the backend",
- "type": "number"
- },
- "description_columns": {
- "properties": {
- "column_name": {
- "description": "The description for the column name. Will be translated by babel",
- "example": "A Nice description for the column",
- "type": "string"
- }
- },
- "type": "object"
- },
- "ids": {
- "description": "A list of item ids, useful when you don't know the column id",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "label_columns": {
- "properties": {
- "column_name": {
- "description": "The label for the column name. Will be translated by babel",
- "example": "A Nice label for the column",
- "type": "string"
- }
- },
- "type": "object"
- },
- "list_columns": {
- "description": "A list of columns",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "list_title": {
- "description": "A title to render. Will be translated by babel",
- "example": "List Items",
- "type": "string"
- },
- "order_columns": {
- "description": "A list of allowed columns to sort",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "result": {
- "description": "The result from the get list query",
- "items": {
- "$ref": "#/components/schemas/AnnotationLayerRestApi.get_list"
- },
- "type": "array"
- }
- },
- "type": "object"
+ "format": "binary",
+ "type": "string"
}
}
},
- "description": "Items from Model"
+ "description": "A zip file with chart(s), dataset(s) and database(s) as YAML"
},
"400": {
"$ref": "#/components/responses/400"
@@ -9958,8 +12856,8 @@
"401": {
"$ref": "#/components/responses/401"
},
- "422": {
- "$ref": "#/components/responses/422"
+ "404": {
+ "$ref": "#/components/responses/404"
},
"500": {
"$ref": "#/components/responses/500"
@@ -9970,39 +12868,35 @@
"jwt": []
}
],
- "tags": ["Annotation Layers"]
- },
- "post": {
- "description": "Create an Annotation layer",
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/AnnotationLayerRestApi.post"
+ "summary": "Download multiple charts as YAML files",
+ "tags": ["Charts"]
+ }
+ },
+ "/api/v1/chart/favorite_status/": {
+ "get": {
+ "parameters": [
+ {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/get_fav_star_ids_schema"
+ }
}
- }
- },
- "description": "Annotation Layer schema",
- "required": true
- },
+ },
+ "in": "query",
+ "name": "q"
+ }
+ ],
"responses": {
- "201": {
+ "200": {
"content": {
"application/json": {
"schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "result": {
- "$ref": "#/components/schemas/AnnotationLayerRestApi.post"
- }
- },
- "type": "object"
+ "$ref": "#/components/schemas/GetFavStarIdsSchema"
}
}
},
- "description": "Annotation added"
+ "description": "None"
},
"400": {
"$ref": "#/components/responses/400"
@@ -10022,71 +12916,64 @@
"jwt": []
}
],
- "tags": ["Annotation Layers"]
+ "summary": "Check favorited charts for current user",
+ "tags": ["Charts"]
}
},
- "/api/v1/annotation_layer/_info": {
- "get": {
- "description": "Get metadata information about this API resource",
- "parameters": [
- {
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/get_info_schema"
- }
- }
- },
- "in": "query",
- "name": "q"
- }
- ],
+ "/api/v1/chart/import/": {
+ "post": {
+ "requestBody": {
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "properties": {
+ "formData": {
+ "description": "upload file (ZIP)",
+ "format": "binary",
+ "type": "string"
+ },
+ "overwrite": {
+ "description": "overwrite existing charts?",
+ "type": "boolean"
+ },
+ "passwords": {
+ "description": "JSON map of passwords for each featured database in the ZIP file. If the ZIP includes a database config in the path `databases/MyDatabase.yaml`, the password should be provided in the following format: `{\"databases/MyDatabase.yaml\": \"my_password\"}`.",
+ "type": "string"
+ },
+ "ssh_tunnel_passwords": {
+ "description": "JSON map of passwords for each ssh_tunnel associated to a featured database in the ZIP file. If the ZIP includes a ssh_tunnel config in the path `databases/MyDatabase.yaml`, the password should be provided in the following format: `{\"databases/MyDatabase.yaml\": \"my_password\"}`.",
+ "type": "string"
+ },
+ "ssh_tunnel_private_key_passwords": {
+ "description": "JSON map of private_key_passwords for each ssh_tunnel associated to a featured database in the ZIP file. If the ZIP includes a ssh_tunnel config in the path `databases/MyDatabase.yaml`, the private_key should be provided in the following format: `{\"databases/MyDatabase.yaml\": \"my_private_key_password\"}`.",
+ "type": "string"
+ },
+ "ssh_tunnel_private_keys": {
+ "description": "JSON map of private_keys for each ssh_tunnel associated to a featured database in the ZIP file. If the ZIP includes a ssh_tunnel config in the path `databases/MyDatabase.yaml`, the private_key should be provided in the following format: `{\"databases/MyDatabase.yaml\": \"my_private_key\"}`.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ }
+ },
+ "required": true
+ },
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
- "add_columns": {
- "type": "object"
- },
- "edit_columns": {
- "type": "object"
- },
- "filters": {
- "properties": {
- "column_name": {
- "items": {
- "properties": {
- "name": {
- "description": "The filter name. Will be translated by babel",
- "type": "string"
- },
- "operator": {
- "description": "The filter operation key to use on list filters",
- "type": "string"
- }
- },
- "type": "object"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "permissions": {
- "description": "The user permissions for this API resource",
- "items": {
- "type": "string"
- },
- "type": "array"
+ "message": {
+ "type": "string"
}
},
"type": "object"
}
}
},
- "description": "Item from Model"
+ "description": "Chart import result"
},
"400": {
"$ref": "#/components/responses/400"
@@ -10106,11 +12993,13 @@
"jwt": []
}
],
- "tags": ["Annotation Layers"]
+ "summary": "Import chart(s) with associated datasets and databases",
+ "tags": ["Charts"]
}
},
- "/api/v1/annotation_layer/related/{column_name}": {
+ "/api/v1/chart/related/{column_name}": {
"get": {
+ "description": "Get a list of all possible owners for a chart. Use `owners` has the `column_name` parameter",
"parameters": [
{
"in": "path",
@@ -10161,15 +13050,58 @@
"jwt": []
}
],
- "tags": ["Annotation Layers"]
+ "summary": "Get related fields data",
+ "tags": ["Charts"]
}
},
- "/api/v1/annotation_layer/{pk}": {
+ "/api/v1/chart/warm_up_cache": {
+ "put": {
+ "description": "Warms up the cache for the chart. Note for slices a force refresh occurs. In terms of the `extra_filters` these can be obtained from records in the JSON encoded `logs.json` column associated with the `explore_json` action.",
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ChartCacheWarmUpRequestSchema"
+ }
+ }
+ },
+ "description": "Identifies the chart to warm up cache for, and any additional dashboard or filter context to use.",
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ChartCacheWarmUpResponseSchema"
+ }
+ }
+ },
+ "description": "Each chart's warmup status"
+ },
+ "400": {
+ "$ref": "#/components/responses/400"
+ },
+ "404": {
+ "$ref": "#/components/responses/404"
+ },
+ "500": {
+ "$ref": "#/components/responses/500"
+ }
+ },
+ "security": [
+ {
+ "jwt": []
+ }
+ ],
+ "summary": "Warm up the cache for the chart",
+ "tags": ["Charts"]
+ }
+ },
+ "/api/v1/chart/{pk}": {
"delete": {
- "description": "Delete Annotation layer",
"parameters": [
{
- "description": "The annotation layer pk for this annotation",
"in": "path",
"name": "pk",
"required": true,
@@ -10192,7 +13124,13 @@
}
}
},
- "description": "Item deleted"
+ "description": "Chart delete"
+ },
+ "401": {
+ "$ref": "#/components/responses/401"
+ },
+ "403": {
+ "$ref": "#/components/responses/403"
},
"404": {
"$ref": "#/components/responses/404"
@@ -10209,10 +13147,11 @@
"jwt": []
}
],
- "tags": ["Annotation Layers"]
+ "summary": "Delete a chart",
+ "tags": ["Charts"]
},
"get": {
- "description": "Get an Annotation layer",
+ "description": "Get an item model",
"parameters": [
{
"in": "path",
@@ -10265,7 +13204,7 @@
"type": "object"
},
"result": {
- "$ref": "#/components/schemas/AnnotationLayerRestApi.get"
+ "$ref": "#/components/schemas/ChartRestApi.get"
},
"show_columns": {
"description": "A list of columns",
@@ -10307,13 +13246,12 @@
"jwt": []
}
],
- "tags": ["Annotation Layers"]
+ "summary": "Get a chart detail information",
+ "tags": ["Charts"]
},
"put": {
- "description": "Update an Annotation layer",
"parameters": [
{
- "description": "The annotation layer pk for this annotation",
"in": "path",
"name": "pk",
"required": true,
@@ -10326,11 +13264,11 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/AnnotationLayerRestApi.put"
+ "$ref": "#/components/schemas/ChartRestApi.put"
}
}
},
- "description": "Annotation schema",
+ "description": "Chart schema",
"required": true
},
"responses": {
@@ -10343,14 +13281,157 @@
"type": "number"
},
"result": {
- "$ref": "#/components/schemas/AnnotationLayerRestApi.put"
+ "$ref": "#/components/schemas/ChartRestApi.put"
}
},
"type": "object"
}
}
},
- "description": "Annotation changed"
+ "description": "Chart changed"
+ },
+ "400": {
+ "$ref": "#/components/responses/400"
+ },
+ "401": {
+ "$ref": "#/components/responses/401"
+ },
+ "403": {
+ "$ref": "#/components/responses/403"
+ },
+ "404": {
+ "$ref": "#/components/responses/404"
+ },
+ "422": {
+ "$ref": "#/components/responses/422"
+ },
+ "500": {
+ "$ref": "#/components/responses/500"
+ }
+ },
+ "security": [
+ {
+ "jwt": []
+ }
+ ],
+ "summary": "Update a chart",
+ "tags": ["Charts"]
+ }
+ },
+ "/api/v1/chart/{pk}/cache_screenshot/": {
+ "get": {
+ "parameters": [
+ {
+ "in": "path",
+ "name": "pk",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/screenshot_query_schema"
+ }
+ }
+ },
+ "in": "query",
+ "name": "q"
+ }
+ ],
+ "responses": {
+ "202": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ChartCacheScreenshotResponseSchema"
+ }
+ }
+ },
+ "description": "Chart async result"
+ },
+ "400": {
+ "$ref": "#/components/responses/400"
+ },
+ "401": {
+ "$ref": "#/components/responses/401"
+ },
+ "404": {
+ "$ref": "#/components/responses/404"
+ },
+ "500": {
+ "$ref": "#/components/responses/500"
+ }
+ },
+ "security": [
+ {
+ "jwt": []
+ }
+ ],
+ "summary": "Compute and cache a screenshot",
+ "tags": ["Charts"]
+ }
+ },
+ "/api/v1/chart/{pk}/data/": {
+ "get": {
+ "description": "Takes a chart ID and uses the query context stored when the chart was saved to return payload data response.",
+ "parameters": [
+ {
+ "description": "The chart ID",
+ "in": "path",
+ "name": "pk",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ }
+ },
+ {
+ "description": "The format in which the data should be returned",
+ "in": "query",
+ "name": "format",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "description": "The type in which the data should be returned",
+ "in": "query",
+ "name": "type",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "description": "Should the queries be forced to load from the source",
+ "in": "query",
+ "name": "force",
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ChartDataResponseSchema"
+ }
+ }
+ },
+ "description": "Query result"
+ },
+ "202": {
+ "content": {
... 10271 lines suppressed ...