-
Notifications
You must be signed in to change notification settings - Fork 100
Expand file tree
/
Copy pathdata-pipelines.openapi.yaml
More file actions
1750 lines (1580 loc) · 56.4 KB
/
data-pipelines.openapi.yaml
File metadata and controls
1750 lines (1580 loc) · 56.4 KB
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
openapi: 3.0.2
x-readme-deploy-id: data-pipelines-api
info:
title: Data Pipelines API
description: Create and manage a continious pipeline with an external warehouse.
license:
name: MIT
url: https://opensource.org/licenses/MIT
version: 1.0.0
contact:
url: https://mixpanel.com/get-support
servers:
- $ref: ./common/export-api.yaml#/server
security:
- ServiceAccount: []
- ProjectSecret: []
tags:
- name: Create Pipelines
description: Operations to add schemas to a project
- name: Delete Pipelines
description: Remove a pipeline from a project
- name: Edit Pipelines
description: Edit the params for a pipeline from a project
- name: Pause Pipelines
description: Pause a running pipeline
- name: Resume Pipelines
description: Resume a paused pipeline
- name: Retrieve Pipelines
description: Get information about Pipelines
paths:
/nessie/pipeline/jobs:
get:
operationId: list-warehouse-pipeline-jobs
tags:
- Retrieve Pipelines
summary: List Pipelines
description: >-
This API endpoint returns the list of all the pipelines scheduled for a
project.
parameters:
- $ref: ./common/parameters.yaml#/query/projectId
responses:
'200':
description: Success
content:
application/json:
examples:
example:
value:
'9876543210':
- name: events-daily-bigquery-monoschema
Dispatcher: backfill
last_dispatched: '2019-02-01 12:00:00 US/Pacific'
frequency: hourly
sync_enabled: 'true'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/nessie/pipeline/create:
post:
tags:
- Create Pipelines
operationId: create-warehouse-pipeline
summary: Create Pipeline
description: ''
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
oneOf:
- $ref: '#/components/schemas/RawGCSPipeline'
- $ref: '#/components/schemas/RawAmazonS3Pipeline'
- $ref: '#/components/schemas/RawAzurePipeline'
- $ref: '#/components/schemas/SchematizedBigQueryPipeline'
- $ref: '#/components/schemas/SchematizedSnowflakePipeline'
- $ref: '#/components/schemas/SchematizedAWSPipeline'
- $ref: '#/components/schemas/SchematizedAzurePipeline'
- $ref: '#/components/schemas/SchematizedGCSPipeline'
discriminator:
propertyName: type
mapping:
gcs-raw: '#/components/schemas/RawGCSPipeline'
s3-raw: '#/components/schemas/RawAmazonS3Pipeline'
azure-raw: '#/components/schemas/RawAzurePipeline'
bigquery: '#/components/schemas/SchematizedBigQueryPipeline'
snowflake: '#/components/schemas/SchematizedSnowflakePipeline'
aws: '#/components/schemas/SchematizedAWSPipeline'
azure-blob: '#/components/schemas/SchematizedAzurePipeline'
gcs-schema: '#/components/schemas/SchematizedGCSPipeline'
responses:
'200':
description: >-
Returns the name of the pipeline created. Use the name of the
pipeline to check the status of or cancel the pipeline.
content:
application/json:
examples:
example:
value:
pipeline_names:
- trial-events-daily-bigquery-monoschema
- trial-people-daily-bigquery-monoschema
bigquery_dataset_name: >-
https://bigquery.cloud.google.com/dataset/mixpanel-prod-1:sample_dataset_name
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/nessie/pipeline/edit:
post:
tags:
- Edit Pipelines
operationId: edit-warehouse-pipeline
summary: Edit Pipeline
description: >
This request edit the params for an export pipeline.
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
oneOf:
- title: Raw GCS Pipeline
$ref: '#/components/schemas/RawEditParams'
- title: Raw Amazon S3 Pipeline
$ref: '#/components/schemas/RawEditParams'
- title: Raw Azure Pipeline
$ref: '#/components/schemas/RawAzureEditParams'
- title: Schematized BigQuery Pipeline
$ref: '#/components/schemas/BigQueryEditParams'
- title: Schematized Snowflake Pipeline
$ref: '#/components/schemas/SchematizedEditParams'
- title: Schematized AWS Pipeline
$ref: '#/components/schemas/SchematizedAWSEditParams'
- title: Schematized Azure Pipeline
$ref: '#/components/schemas/SchematizedAzureEditParams'
- title: Schematized GCS Pipeline
$ref: '#/components/schemas/SchematizedEditParams'
responses:
'200':
description: Success
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/nessie/pipeline/cancel:
post:
tags:
- Delete Pipelines
summary: Delete Pipeline
operationId: cancel-warehouse-pipeline
description: >-
For a given pipeline name, this request deletes the pipeline and stops
any future jobs to be scheduled for the pipeline.
Deleting the pipeline will result in the loss of all its historical data. If you wish to retain the history, it is recommended to pause the pipeline instead.
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
name:
type: string
description: The name that uniquely identifies the pipeline.
project_id:
$ref: '#/components/schemas/ProjectId'
required:
- name
responses:
'200':
description: Success
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/nessie/pipeline/pause:
post:
tags:
- Pause Pipelines
summary: Pause Pipeline
operationId: pause-warehouse-pipeline
description: >-
For a given pipeline name, this request pauses the pipeline which stops the ongoing jobs and
prevents any future jobs to be scheduled for the pipeline
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
name:
type: string
description: The name that uniquely identifies the pipeline.
project_id:
$ref: '#/components/schemas/ProjectId'
required:
- name
responses:
'200':
description: Success
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
/nessie/pipeline/resume:
post:
tags:
- Resume Pipelines
summary: Resume Pipeline
operationId: resume-warehouse-pipeline
description: >-
For a given pipeline name, this request resumes the pipeline if it's paused
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
name:
type: string
description: The name that uniquely identifies the pipeline.
project_id:
$ref: '#/components/schemas/ProjectId'
required:
- name
responses:
'200':
description: Success
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
/nessie/pipeline/status:
get:
operationId: get-warehouse-pipeline-status
summary: Get Pipeline
tags:
- Retrieve Pipelines
description: ''
parameters:
- $ref: ./common/parameters.yaml#/query/projectId
- in: query
name: name
schema:
type: string
description: The name that uniquely identifies the pipeline.
required: true
- in: query
name: summary
schema:
type: string
description: 'Default: `false`. Only lists task count by status and no details.'
- in: query
name: status
schema:
type: array
items:
type: string
description: |
Filters the tasks by the given status. Valid options for status are `pending`, `running`, `retried`, `failed`, `canceled`, and `timed_out`.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/PipelineStatusResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/nessie/pipeline/timeline:
get:
operationId: list-warehouse-pipeline-sync-dates
tags:
- Retrieve Pipelines
summary: List Pipeline Logs
description: This endpoint returns the timestamps of all syncs grouped by date.
parameters:
- $ref: ./common/parameters.yaml#/query/projectId
- in: query
name: name
schema:
type: string
description: The name that uniquely identifies the pipeline.
responses:
'200':
description: Success
content:
application/json:
examples:
example:
value:
day_syncs:
- date: '2019-08-19'
sync_times:
- '2019-08-19 14:27:46.044605 -0700 PDT'
status: synced
- date: '2019-08-20'
sync_times:
- ' 2019-08-20 14:33:09.315098 -0700 PDT'
status: synced
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
components:
securitySchemes:
$ref: ./common/securitySchemes.yaml
schemas:
PipelineType:
type: string
enum:
- gcs-raw
- s3-raw
- azure-raw
- bigquery
- snowflake
- aws
- azure-blob
- gcs-schema
ProjectId:
type: number
description: Your project id (must be specified when using service account based authentication)
RawGCSPipeline:
title: Raw GCS Pipeline
type: object
properties:
project_id:
$ref: '#/components/schemas/ProjectId'
type:
type: string
default: gcs-raw
trial:
type: boolean
default: false
description: >
**Default**: `false`
A trial pipeline will be created if value is true.
The trial exports all of your events and user data for thirty
calendar days, starting from one day before the API call was made. A
trial pipeline has default values for the following parameters:
**data_source**: `events`
**from_date**: `<defaults to previous day>`
**to_date**: `<no value>`
**frequency**: `daily`
**events**: `<no value>`
data_source:
type: string
enum:
- events
default: events
description: >
**Default**: `events`
**data_source** In this type of pipeline it can only be `events` which exports
Mixpanel event data.
from_date:
type: string
format: date
description: >
The starting date of the export window. It is formatted as
`YYYY-MM-DD` and cannot be more than six months in the past.
If **trial** is set to `true` this will default to the previous day;
otherwise, it is a required parameter.
to_date:
type: string
format: date
description: >-
The ending date of the export window. It is formatted as
`YYYY-MM-DD`. The export will continue indefinitely if **to_date**
is empty.
frequency:
type: string
default: daily
enum:
- daily
- hourly
description: >
**Default**: `daily`
**frequency** can be either `hourly` or `daily`. `hourly` exports
the data every hour. `daily` exports the data at midnight (based on
the projects timezone). **frequency** should only be passed if your
export window is indefinite.
events:
type: string
description: |
A whitelist for the event(s) you intend to export. For multiple events, you will need to pass in each event name as separate `events` parameters like so: `--data 'events=event1' \ --data 'events=event2'`
All events in the project will be exported if no events are
specified.
where:
type: string
description: >-
A selector expression used to filter by events data, such as event
properties. Learn more about how to construct event selector
expressions [here](ref:segmentation-expressions).
data_format:
type: string
default: json
enum:
- json
description: >
**Default**: `json`
The file format of the exported data. **data_format** for this pipeline type can be only
`json` .
gcs_bucket:
type: string
description: |
The GCS bucket to export the Mixpanel data to.
gcs_prefix:
type: string
description: |
The GCS path prefix of the bucket.
gcs_region:
type: string
description: |
The GCS region for the bucket.
enum:
- northamerica-northeast1
- us-central1
- us-east1
- us-east4
- us-west1
- us-west2
- southamerica-east1
- europe-north1
- europe-west1
- europe-west2
- europe-west3
- europe-west4
- europe-west6
- asia-east1
- asia-east2
- asia-northeast1
- asia-northeast2
- asia-northeast3
- asia-south1
- asia-southeast1
- australia-southeast1
required:
- type
- from_date
- gcs_bucket
- gcs_region
RawAmazonS3Pipeline:
title: Raw Amazon S3 Pipeline
type: object
properties:
project_id:
$ref: '#/components/schemas/ProjectId'
type:
type: string
default: s3-raw
trial:
type: boolean
default: false
description: >
**Default**: `false`
A trial pipeline will be created if value is true.
The trial exports all of your events and user data for thirty
calendar days, starting from one day before the API call was made. A
trial pipeline has default values for the following parameters:
**data_source**: `events`
**from_date**: `<defaults to previous day>`
**to_date**: `<no value>`
**frequency**: `daily`
**events**: `<no value>`
data_source:
type: string
enum:
- events
default: events
description: >
**Default**: `events`
**data_source** In this type of pipeline it can only be `events` which exports
Mixpanel event data.
from_date:
type: string
format: date
description: >
The starting date of the export window. It is formatted as
`YYYY-MM-DD` and cannot be more than six months in the past.
If **trial** is set to `true` this will default to the previous day;
otherwise, it is a required parameter.
to_date:
type: string
format: date
description: >-
The ending date of the export window. It is formatted as
`YYYY-MM-DD`. The export will continue indefinitely if **to_date**
is empty.
frequency:
type: string
default: daily
enum:
- daily
- hourly
description: >
**Default**: `daily`
**frequency** can be either `hourly` or `daily`. `hourly` exports
the data every hour. `daily` exports the data at midnight (based on
the projects timezone). **frequency** should only be passed if your
export window is indefinite.
events:
type: string
description: |
A whitelist for the event(s) you intend to export. For multiple events, you will need to pass in each event name as separate `events` parameters like so: `--data 'events=event1' \ --data 'events=event2'`
All events in the project will be exported if no events are
specified.
where:
type: string
description: >-
A selector expression used to filter by events data, such as event
properties. Learn more about how to construct event selector
expressions [here](ref:segmentation-expressions).
data_format:
type: string
default: json
enum:
- json
description: >
**Default**: `json`
The file format of the exported data. **data_format** for this pipeline type can be only
`json` .
s3_bucket:
type: string
description: The S3 bucket to which the data needs to be exported.
s3_region:
type: string
enum:
- us-east-1
- us-east-2
- us-west-1
- us-west-2
- ap-northeast-1
- ap-northeast-2
- ap-northeast-3
- ap-southeast-1
- ap-southeast-2
- ap-south-1
- ca-central-1
- cn-north-1
- cn-northwest-1
- eu-central-1
- eu-north-1
- eu-west-1
- eu-west-2
- eu-west-3
- sa-east-1
- me-south-1
description: The valid S3 region for the bucket.
s3_role:
type: string
description: >-
There is no default value. AWS Role the writer should assume when
writing to s3 e.g. arn:aws:iam::<account-id>:role/example-s3-role
s3_prefix:
type: string
description: There is no default value. The path prefix for the export. e.g. example_custom_prefix
s3_encryption:
type: string
default: none
enum:
- none
- aes
- kms
description: >
At rest encryption used by the
s3 bucket.
s3_kms_key_id:
type: string
description: >-
There is no default value. If s3_encryption is set to kms, this can
specify the custom key id you desire to use.
required:
- type
- from_date
- s3_bucket
- s3_region
- s3_role
RawAzurePipeline:
title: Raw Azure Pipeline
type: object
properties:
project_id:
$ref: '#/components/schemas/ProjectId'
type:
type: string
default: azure-raw
trial:
type: boolean
default: false
description: >
**Default**: `false`
A trial pipeline will be created if value is true.
The trial exports all of your events and user data for thirty
calendar days, starting from one day before the API call was made. A
trial pipeline has default values for the following parameters:
**data_source**: `events`
**from_date**: `<defaults to previous day>`
**to_date**: `<no value>`
**frequency**: `daily`
**events**: `<no value>`
data_source:
type: string
enum:
- events
default: events
description: >
**Default**: `events`
**data_source** In this type of pipeline it is `events` which exports
Mixpanel event data.
from_date:
type: string
format: date
description: >
The starting date of the export window. It is formatted as
`YYYY-MM-DD` and cannot be more than six months in the past.
If **trial** is set to `true` this will default to the previous day;
otherwise, it is a required parameter.
to_date:
type: string
format: date
description: >-
The ending date of the export window. It is formatted as
`YYYY-MM-DD`. The export will continue indefinitely if **to_date**
is empty.
frequency:
type: string
default: daily
enum:
- daily
- hourly
description: >
**Default**: `daily`
**frequency** can be either `hourly` or `daily`. `hourly` exports
the data every hour. `daily` exports the data at midnight (based on
the projects timezone). **frequency** should only be passed if your
export window is indefinite.
events:
type: string
description: |
A whitelist for the event(s) you intend to export. For multiple events, you will need to pass in each event name as separate `events` parameters like so: `--data 'events=event1' \ --data 'events=event2'`
All events in the project will be exported if no events are
specified.
where:
type: string
description: >-
A selector expression used to filter by events data, such as event
properties. Learn more about how to construct event selector
expressions [here](ref:segmentation-expressions).
data_format:
type: string
default: json
enum:
- json
description: >
**Default**: `json`
The file format of the exported data. **data_format** for this pipeline type can be only
`json` .
storage_account:
type: string
description: Blob Storage Account where the data will be exported.
container_name:
type: string
description: The Blob Container within the account where data will be exported.
prefix:
type: string
description: A custom prefix for all the data being exported to the container.
client_id:
type: string
description: |
`clientId` from the Service Principal credentials.
client_secret:
type: string
description: |
`clientSecret` from the Service Principal credentials.
tenant_id:
type: string
description: >
`tenantId` from the Service Principal credentials. This is specific
to the Active Directory instance where the Service Principal
resides.
required:
- type
- from_date
- storage_account
- container_name
- client_id
- client_secret
- tenant_id
SchematizedBigQueryPipeline:
title: Schematized BigQuery Pipeline
type: object
properties:
project_id:
$ref: '#/components/schemas/ProjectId'
type:
type: string
default: bigquery
trial:
type: boolean
default: false
description: >
**Default**: `false`
A trial pipeline will be created if value is true.
The trial exports all of your events and user data for thirty
calendar days, starting from one day before the API call was made. A
trial pipeline has default values for the following parameters:
**data_source**: `events and people`
**sync**: `false`
**from_date**: `<defaults to previous day>`
**to_date**: `<no value>`
**frequency**: `daily`
**events**: `<no value>`
schema_type:
type: string
enum:
- monoschema
- multischema
default: monoschema
description: >
**Default**: `monoschema`
Allowed options are `monoschema` and `multischema`. `monoschema`
loads all events into a single table. `multischema` loads every
event into its own dedicated table. All user data is exported as
`monoschema`. This param is not supported for people data_source.
data_source:
type: string
enum:
- events
- people
default: events
description: >
**Default**: `events`
**data_source** can be either `events` or `people`. `events` exports
Mixpanel event data. `people` exports Mixpanel user data.
sync:
type: boolean
enum:
- true
default: true
description: >
A value of `true` updates exported data with any changes that occur
in your Mixpanel dataset. These changes include deletions, late
data, and imports that fall into your export window.
from_date:
type: string
format: date
description: >
The starting date of the export window. It is formatted as
`YYYY-MM-DD` and cannot be more than six months in the past.
If **trial** is set to `true` this will default to the previous day;
otherwise, it is a required parameter.
to_date:
type: string
format: date
description: >-
The ending date of the export window. It is formatted as
`YYYY-MM-DD`. The export will continue indefinitely if **to_date**
is empty.
frequency:
type: string
default: daily
enum:
- daily
- hourly
description: >
**Default**: `daily`
**frequency** can be either `hourly` or `daily`. `hourly` exports
the data every hour. `daily` exports the data at midnight (based on
the projects timezone). **frequency** should only be passed if your
export window is indefinite.
events:
type: string
description: |
A whitelist for the event(s) you intend to export. For multiple events, you will need to pass in each event name as separate `events` parameters like so: `--data 'events=event1' \ --data 'events=event2'`
All events in the project will be exported if no events are
specified.
where:
type: string
description: >-
A selector expression used to filter by events data, such as event
properties. Learn more about how to construct event selector
expressions [here](ref:segmentation-expressions). This parameter is only valid when **data_source**
is `events`.
bq_region:
type: string
enum:
- US
- US_CENTRAL_1
- US_EAST_1
- US_WEST_1
- US_WEST_2
- US_EAST_4
- NORTH_AMERICA_NORTHEAST_1
- SOUTH_AMERICA_EAST_1
- EU
- EUROPE_NORTH_1
- EUROPE_WEST_2
- EUROPE_WEST_3
- EUROPE_WEST_4
- EUROPE_WEST_6
- ASIA_SOUTH_1
- ASIA_EAST_1
- ASIA_EAST_2
- ASIA_NORTHEAST_1
- ASIA_NORTHEAST_2
- ASIA_NORTHEAST_3
- ASIA_SOUTHEAST_1
- ASIA_SOUTHEAST_2
- AUSTRALIA_SOUTHEAST_1
description: The region used for BigQuery.
bq_share_with_group:
type: string
description: Group account email address to share the data-set with if managed by mixpanel. e.g. bq-access-alias@somecompany.com
bq_prefix:
type: string
description: The table prefix to be added to all the tables exported as part of the this pipeline. Only alphanumeric characters and underscores can be used.
gcp_project:
type: string
description: Customer's project id where bigquery dataset is present. If this field isn't provided the default dataset will be created on mixpanel managed bigquery.
bq_dataset_name:
type: string
description: Dataset created by customer on their own gcp project to which mixpanel needs to export data.
required:
- type
- from_date
- bq_region
- sync
- schema_type
SchematizedSnowflakePipeline:
title: Schematized Snowflake Pipeline
type: object
properties:
project_id:
$ref: '#/components/schemas/ProjectId'
type:
type: string
default: snowflake
trial:
type: boolean
default: false
description: >
**Default**: `false`
A trial pipeline will be created if value is true.
The trial exports all of your events and user data for thirty
calendar days, starting from one day before the API call was made. A
trial pipeline has default values for the following parameters:
**data_source**: `events and people`
**sync**: `false`
**from_date**: `<defaults to previous day>`
**to_date**: `<no value>`
**frequency**: `daily`
**events**: `<no value>`
schema_type:
type: string
enum:
- monoschema
- multischema
default: monoschema
description: >
**Default**: `monoschema`
Allowed options are `monoschema` and `multischema`. `monoschema`
loads all events into a single table. `multischema` loads every
event into its own dedicated table. All user data is exported as
`monoschema`. This param is not supported for people data_source.
data_source:
type: string
enum:
- events
- people
default: events
description: >
**Default**: `events`
**data_source** can be either `events` or `people`. `events` exports
Mixpanel event data. `people` exports Mixpanel user data.
sync:
type: boolean
enum:
- true
default: true
description: >
A value of `true` updates exported data with any changes that occur
in your Mixpanel dataset. These changes include deletions, late
data, and imports that fall into your export window.
from_date:
type: string
format: date