-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopenapi_superset_v1.3.0.json
14225 lines (14225 loc) · 396 KB
/
openapi_superset_v1.3.0.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"components": {
"responses": {
"400": {
"content": {
"application/json": {
"schema": {
"properties": {
"message": {
"type": "string"
}
},
"type": "object"
}
}
},
"description": "Bad request"
},
"401": {
"content": {
"application/json": {
"schema": {
"properties": {
"message": {
"type": "string"
}
},
"type": "object"
}
}
},
"description": "Unauthorized"
},
"403": {
"content": {
"application/json": {
"schema": {
"properties": {
"message": {
"type": "string"
}
},
"type": "object"
}
}
},
"description": "Forbidden"
},
"404": {
"content": {
"application/json": {
"schema": {
"properties": {
"message": {
"type": "string"
}
},
"type": "object"
}
}
},
"description": "Not found"
},
"422": {
"content": {
"application/json": {
"schema": {
"properties": {
"message": {
"type": "string"
}
},
"type": "object"
}
}
},
"description": "Could not process entity"
},
"500": {
"content": {
"application/json": {
"schema": {
"properties": {
"message": {
"type": "string"
}
},
"type": "object"
}
}
},
"description": "Fatal error"
}
},
"schemas": {
"AnnotationLayer": {
"properties": {
"annotationType": {
"description": "Type of annotation layer",
"enum": [
"FORMULA",
"INTERVAL",
"EVENT",
"TIME_SERIES"
],
"type": "string"
},
"color": {
"description": "Layer color",
"nullable": true,
"type": "string"
},
"descriptionColumns": {
"description": "Columns to use as the description. If none are provided, all will be shown.",
"items": {
"type": "string"
},
"type": "array"
},
"hideLine": {
"description": "Should line be hidden. Only applies to line annotations",
"nullable": true,
"type": "boolean"
},
"intervalEndColumn": {
"description": "Column containing end of interval. Only applies to interval layers",
"nullable": true,
"type": "string"
},
"name": {
"description": "Name of layer",
"type": "string"
},
"opacity": {
"description": "Opacity of layer",
"enum": [
"",
"opacityLow",
"opacityMedium",
"opacityHigh"
],
"nullable": true,
"type": "string"
},
"overrides": {
"additionalProperties": {
"nullable": true
},
"description": "which properties should be overridable",
"nullable": true,
"type": "object"
},
"show": {
"description": "Should the layer be shown",
"type": "boolean"
},
"showMarkers": {
"description": "Should markers be shown. Only applies to line annotations.",
"type": "boolean"
},
"sourceType": {
"description": "Type of source for annotation data",
"enum": [
"",
"line",
"NATIVE",
"table"
],
"type": "string"
},
"style": {
"description": "Line style. Only applies to time-series annotations",
"enum": [
"dashed",
"dotted",
"solid",
"longDashed"
],
"type": "string"
},
"timeColumn": {
"description": "Column with event date or interval start date",
"nullable": true,
"type": "string"
},
"titleColumn": {
"description": "Column with title",
"nullable": true,
"type": "string"
},
"value": {
"description": "For formula annotations, this contains the formula. For other types, this is the primary key of the source object."
},
"width": {
"description": "Width of annotation line",
"format": "float",
"minimum": 0,
"type": "number"
}
},
"required": [
"name",
"show",
"showMarkers",
"value"
],
"type": "object"
},
"AnnotationLayerRestApi.get": {
"properties": {
"descr": {
"nullable": true,
"type": "string"
},
"id": {
"format": "int32",
"type": "integer"
},
"name": {
"maxLength": 250,
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"AnnotationLayerRestApi.get_list": {
"properties": {
"changed_by": {
"$ref": "#/components/schemas/AnnotationLayerRestApi.get_list.User1"
},
"changed_on": {
"format": "date-time",
"nullable": true,
"type": "string"
},
"changed_on_delta_humanized": {
"readOnly": true
},
"created_by": {
"$ref": "#/components/schemas/AnnotationLayerRestApi.get_list.User"
},
"created_on": {
"format": "date-time",
"nullable": true,
"type": "string"
},
"descr": {
"nullable": true,
"type": "string"
},
"id": {
"format": "int32",
"type": "integer"
},
"name": {
"maxLength": 250,
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"AnnotationLayerRestApi.get_list.User": {
"properties": {
"first_name": {
"maxLength": 64,
"type": "string"
},
"last_name": {
"maxLength": 64,
"type": "string"
}
},
"required": [
"first_name",
"last_name"
],
"type": "object"
},
"AnnotationLayerRestApi.get_list.User1": {
"properties": {
"first_name": {
"maxLength": 64,
"type": "string"
},
"last_name": {
"maxLength": 64,
"type": "string"
}
},
"required": [
"first_name",
"last_name"
],
"type": "object"
},
"AnnotationLayerRestApi.post": {
"properties": {
"descr": {
"description": "Give a description for this annotation layer",
"nullable": true,
"type": "string"
},
"name": {
"description": "The annotation layer name",
"maxLength": 250,
"minLength": 1,
"type": "string"
}
},
"type": "object"
},
"AnnotationLayerRestApi.put": {
"properties": {
"descr": {
"description": "Give a description for this annotation layer",
"type": "string"
},
"name": {
"description": "The annotation layer name",
"maxLength": 250,
"minLength": 1,
"type": "string"
}
},
"type": "object"
},
"AnnotationRestApi.get": {
"properties": {
"end_dttm": {
"format": "date-time",
"nullable": true,
"type": "string"
},
"id": {
"format": "int32",
"type": "integer"
},
"json_metadata": {
"nullable": true,
"type": "string"
},
"layer": {
"$ref": "#/components/schemas/AnnotationRestApi.get.AnnotationLayer"
},
"long_descr": {
"nullable": true,
"type": "string"
},
"short_descr": {
"maxLength": 500,
"nullable": true,
"type": "string"
},
"start_dttm": {
"format": "date-time",
"nullable": true,
"type": "string"
}
},
"required": [
"layer"
],
"type": "object"
},
"AnnotationRestApi.get.AnnotationLayer": {
"properties": {
"id": {
"format": "int32",
"type": "integer"
},
"name": {
"maxLength": 250,
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"AnnotationRestApi.get_list": {
"properties": {
"changed_by": {
"$ref": "#/components/schemas/AnnotationRestApi.get_list.User1"
},
"changed_on_delta_humanized": {
"readOnly": true
},
"created_by": {
"$ref": "#/components/schemas/AnnotationRestApi.get_list.User"
},
"end_dttm": {
"format": "date-time",
"nullable": true,
"type": "string"
},
"id": {
"format": "int32",
"type": "integer"
},
"long_descr": {
"nullable": true,
"type": "string"
},
"short_descr": {
"maxLength": 500,
"nullable": true,
"type": "string"
},
"start_dttm": {
"format": "date-time",
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"AnnotationRestApi.get_list.User": {
"properties": {
"first_name": {
"maxLength": 64,
"type": "string"
},
"id": {
"format": "int32",
"type": "integer"
}
},
"required": [
"first_name"
],
"type": "object"
},
"AnnotationRestApi.get_list.User1": {
"properties": {
"first_name": {
"maxLength": 64,
"type": "string"
},
"id": {
"format": "int32",
"type": "integer"
}
},
"required": [
"first_name"
],
"type": "object"
},
"AnnotationRestApi.post": {
"properties": {
"end_dttm": {
"description": "The annotation end date time",
"format": "date-time",
"type": "string"
},
"json_metadata": {
"description": "JSON metadata",
"nullable": true,
"type": "string"
},
"long_descr": {
"description": "A long description",
"nullable": true,
"type": "string"
},
"short_descr": {
"description": "A short description",
"maxLength": 500,
"minLength": 1,
"type": "string"
},
"start_dttm": {
"description": "The annotation start date time",
"format": "date-time",
"type": "string"
}
},
"type": "object"
},
"AnnotationRestApi.put": {
"properties": {
"end_dttm": {
"description": "The annotation end date time",
"format": "date-time",
"type": "string"
},
"json_metadata": {
"description": "JSON metadata",
"type": "string"
},
"long_descr": {
"description": "A long description",
"type": "string"
},
"short_descr": {
"description": "A short description",
"maxLength": 500,
"minLength": 1,
"type": "string"
},
"start_dttm": {
"description": "The annotation start date time",
"format": "date-time",
"type": "string"
}
},
"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` ",
"items": {
"type": "string"
},
"type": "array"
},
"datasources": {
"description": "A list of the data source and database names",
"items": {
"$ref": "#/components/schemas/Datasource"
},
"type": "array"
}
},
"type": "object"
},
"CacheRestApi.get": {
"properties": {
"id": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"CacheRestApi.get_list": {
"properties": {
"id": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"CacheRestApi.post": {
"properties": {
"id": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"CacheRestApi.put": {
"properties": {
"id": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"ChartCacheScreenshotResponseSchema": {
"properties": {
"cache_key": {
"description": "The cache key",
"type": "string"
},
"chart_url": {
"description": "The url to render the chart",
"type": "string"
},
"image_url": {
"description": "The url to fetch the screenshot",
"type": "string"
}
},
"type": "object"
},
"ChartDataAdhocMetricSchema": {
"properties": {
"aggregate": {
"description": "Aggregation operator. Only required for simple expression types.",
"enum": [
"AVG",
"COUNT",
"COUNT_DISTINCT",
"MAX",
"MIN",
"SUM"
],
"type": "string"
},
"column": {
"$ref": "#/components/schemas/ChartDataColumn"
},
"expressionType": {
"description": "Simple or SQL metric",
"enum": [
"SIMPLE",
"SQL"
],
"example": "SQL",
"type": "string"
},
"hasCustomLabel": {
"description": "When false, the label will be automatically generated based on the aggregate expression. When true, a custom label has to be specified.",
"example": true,
"type": "boolean"
},
"isExtra": {
"description": "Indicates if the filter has been added by a filter component as opposed to being a part of the original query.",
"type": "boolean"
},
"label": {
"description": "Label for the metric. Is automatically generated unless hasCustomLabel is true, in which case label must be defined.",
"example": "Weighted observations",
"type": "string"
},
"optionName": {
"description": "Unique identifier. Can be any string value, as long as all metrics have a unique identifier. If undefined, a random name will be generated.",
"example": "metric_aec60732-fac0-4b17-b736-93f1a5c93e30",
"type": "string"
},
"sqlExpression": {
"description": "The metric as defined by a SQL aggregate expression. Only required for SQL expression type.",
"example": "SUM(weight * observations) / SUM(weight)",
"type": "string"
},
"timeGrain": {
"description": "Optional time grain for temporal filters",
"example": "PT1M",
"type": "string"
}
},
"required": [
"expressionType"
],
"type": "object"
},
"ChartDataAggregateOptionsSchema": {
"properties": {
"aggregates": {
"description": "The keys are the name of the aggregate column to be created, and the values specify the details of how to apply the aggregation. If an operator requires additional options, these can be passed here to be unpacked in the operator call. The following numpy operators are supported: average, argmin, argmax, cumsum, cumprod, max, mean, median, nansum, nanmin, nanmax, nanmean, nanmedian, min, percentile, prod, product, std, sum, var. Any options required by the operator can be passed to the `options` object.\n\nIn the example, a new column `first_quantile` is created based on values in the column `my_col` using the `percentile` operator with the `q=0.25` parameter.",
"example": {
"first_quantile": {
"column": "my_col",
"operator": "percentile",
"options": {
"q": 0.25
}
}
},
"type": "object"
}
},
"type": "object"
},
"ChartDataAsyncResponseSchema": {
"properties": {
"channel_id": {
"description": "Unique session async channel ID",
"type": "string"
},
"job_id": {
"description": "Unique async job ID",
"type": "string"
},
"result_url": {
"description": "Unique result URL for fetching async query data",
"type": "string"
},
"status": {
"description": "Status value for async job",
"type": "string"
},
"user_id": {
"description": "Requesting user ID",
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"ChartDataBoxplotOptionsSchema": {
"properties": {
"groupby": {
"items": {
"description": "Columns by which to group the query.",
"type": "string"
},
"nullable": true,
"type": "array"
},
"metrics": {
"description": "Aggregate expressions. Metrics can be passed as both references to datasource metrics (strings), or ad-hoc metricswhich are defined only within the query object. See `ChartDataAdhocMetricSchema` for the structure of ad-hoc metrics.",
"items": {},
"type": "array"
},
"percentiles": {
"description": "Upper and lower percentiles for percentile whisker type.",
"example": [
1,
99
]
},
"whisker_type": {
"description": "Whisker type. Any numpy function will work.",
"enum": [
"tukey",
"min/max",
"percentile"
],
"example": "tukey",
"type": "string"
}
},
"required": [
"whisker_type"
],
"type": "object"
},
"ChartDataColumn": {
"properties": {
"column_name": {
"description": "The name of the target column",
"example": "mycol",
"type": "string"
},
"type": {
"description": "Type of target column",
"example": "BIGINT",
"type": "string"
}
},
"type": "object"
},
"ChartDataContributionOptionsSchema": {
"properties": {
"orientation": {
"description": "Should cell values be calculated across the row or column.",
"enum": [
"row",
"column"
],
"example": "row",
"type": "string"
}
},
"required": [
"orientation"
],
"type": "object"
},
"ChartDataDatasource": {
"properties": {
"id": {
"description": "Datasource id",
"format": "int32",
"type": "integer"
},
"type": {
"description": "Datasource type",
"enum": [
"druid",
"table"
],
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"ChartDataExtras": {
"properties": {
"druid_time_origin": {
"description": "Starting point for time grain counting on legacy Druid datasources. Used to change e.g. Monday/Sunday first-day-of-week.",
"nullable": true,
"type": "string"
},
"having": {
"description": "HAVING clause to be added to aggregate queries using AND operator.",
"type": "string"
},
"having_druid": {
"description": "HAVING filters to be added to legacy Druid datasource queries.",
"items": {
"$ref": "#/components/schemas/ChartDataFilter"
},
"type": "array"
},
"relative_end": {
"description": "End time for relative time deltas. Default: `config[\"DEFAULT_RELATIVE_START_TIME\"]`",
"enum": [
"today",
"now"
],
"type": "string"
},
"relative_start": {
"description": "Start time for relative time deltas. Default: `config[\"DEFAULT_RELATIVE_START_TIME\"]`",
"enum": [
"today",
"now"
],
"type": "string"
},
"time_grain_sqla": {
"description": "To what level of granularity should the temporal column be aggregated. Supports [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) durations.",
"enum": [
"PT1S",
"PT5S",
"PT30S",
"PT1M",
"PT5M",
"PT10M",
"PT15M",
"PT0.5H",
"PT1H",
"PT6H",
"P1D",
"P1W",
"P1M",
"P0.25Y",
"P1Y",
"1969-12-28T00:00:00Z/P1W",
"1969-12-29T00:00:00Z/P1W",
"P1W/1970-01-03T00:00:00Z",
"P1W/1970-01-04T00:00:00Z"
],
"example": "P1D",
"nullable": true,
"type": "string"
},
"time_range_endpoints": {
"items": {},
"type": "array"
},
"where": {
"description": "WHERE clause to be added to queries using AND operator.",
"type": "string"
}
},
"type": "object"
},
"ChartDataFilter": {
"properties": {
"col": {
"description": "The column to filter.",
"example": "country",
"type": "string"
},
"grain": {
"description": "Optional time grain for temporal filters",
"example": "PT1M",
"type": "string"
},
"isExtra": {
"description": "Indicates if the filter has been added by a filter component as opposed to being a part of the original query.",
"type": "boolean"
},
"op": {
"description": "The comparison operator.",
"enum": [
"==",
"!=",
">",
"<",
">=",
"<=",
"LIKE",
"ILIKE",
"IS NULL",
"IS NOT NULL",
"IN",
"NOT IN",
"REGEX",
"IS TRUE",
"IS FALSE"
],
"example": "IN",
"type": "string"
},
"val": {
"description": "The value or values to compare against. Can be a string, integer, decimal or list, depending on the operator.",
"example": [
"China",
"France",
"Japan"
]
}
},
"required": [
"col",
"op"
],
"type": "object"
},
"ChartDataGeodeticParseOptionsSchema": {
"properties": {
"altitude": {
"description": "Name of target column for decoded altitude. If omitted, altitude information in geodetic string is ignored.",
"type": "string"
},
"geodetic": {
"description": "Name of source column containing geodetic point strings",
"type": "string"
},
"latitude": {
"description": "Name of target column for decoded latitude",
"type": "string"
},
"longitude": {
"description": "Name of target column for decoded longitude",
"type": "string"
}
},
"required": [
"geodetic",
"latitude",
"longitude"
],
"type": "object"
},
"ChartDataGeohashDecodeOptionsSchema": {
"properties": {
"geohash": {
"description": "Name of source column containing geohash string",
"type": "string"
},
"latitude": {
"description": "Name of target column for decoded latitude",
"type": "string"
},
"longitude": {
"description": "Name of target column for decoded longitude",
"type": "string"
}
},
"required": [
"geohash",
"latitude",
"longitude"
],
"type": "object"
},
"ChartDataGeohashEncodeOptionsSchema": {
"properties": {
"geohash": {
"description": "Name of target column for encoded geohash string",
"type": "string"
},
"latitude": {
"description": "Name of source latitude column",
"type": "string"
},
"longitude": {
"description": "Name of source longitude column",
"type": "string"
}
},
"required": [
"geohash",
"latitude",
"longitude"
],
"type": "object"
},
"ChartDataPivotOptionsSchema": {
"properties": {
"aggregates": {
"description": "The keys are the name of the aggregate column to be created, and the values specify the details of how to apply the aggregation. If an operator requires additional options, these can be passed here to be unpacked in the operator call. The following numpy operators are supported: average, argmin, argmax, cumsum, cumprod, max, mean, median, nansum, nanmin, nanmax, nanmean, nanmedian, min, percentile, prod, product, std, sum, var. Any options required by the operator can be passed to the `options` object.\n\nIn the example, a new column `first_quantile` is created based on values in the column `my_col` using the `percentile` operator with the `q=0.25` parameter.",
"example": {
"first_quantile": {
"column": "my_col",
"operator": "percentile",
"options": {
"q": 0.25
}
}
},
"type": "object"
},
"column_fill_value": {
"description": "Value to replace missing pivot columns names with.",
"type": "string"
},
"columns": {
"items": {
"description": "Columns to group by on the table columns",
"type": "string"
},
"type": "array"
},
"drop_missing_columns": {
"description": "Do not include columns whose entries are all missing (default: `true`).",