邮政
//www.jy710.com/api/app/项目//连接器
云提供商无关的参数
connector_type
(字符串枚举):“ S3import”
,,,,“ GCSIMPORT”
压缩
(字符串枚举):“没有任何”
,,,,“ gzip”
data_format
(字符串枚举):“ mixpanel_event”
,,,,“ mixpanel_group”
,,,,“ mixpanel_people”
,,,,“ remap_event”
,,,,“ remap_people”
,,,,“ remap_group”
这就是我们知道要处理哪种类型的数据的方式。请检查样本数据对于每个示例data_format
云提供商特定的参数
S3/gcs_bucket
(字符串):存储桶的名称s3/gcs_prefix
(字符串):要导入的文件的前缀或目录路径。利用“”
(空字符串)以导入存储桶的所有内容。有关前缀的更多详细信息,请检查云导入常见问题解答S3_role
(字符串):S3 IAM(请参考配置访问和权限S3_Region
(字符串):水桶的区域。请参阅S3端点并请参阅列区域以获取可接受的值
每个存储桶类型的模板
{“ connector_type”:“ gcsimport”,“ connector_properties”:{“ gcs_bucket”:“ sample-data”,“ gcs_prefix”:“ cloudimport/event”,},category_properties,“ category_properties”:压缩”:“无”}}
{“ connector_type”:“ s3import”,“ connector_properties”:{“ s3_bucket”:“ sample-data”,“ s3_prefix”:“ cloudimport/event”,“ s3_region”,“ s3_region”,“ s3_region”:“ s3_role”,“ s3_role”,“ s3_role”:aws:“ arn:” arn:“ arn:” arn:“:”::iam :: 485438090326:角色/test-mixpanel”,},“ category_properties”:{“ data_format”:“ mixpanel_event”,“ compression”,“ compression”:“ none”}}}
curl -x post //www.jy710.com/api/app/projects/ {project_id }/connectors/-user“ {svc_account}:{secret}” ---data'{“ connector_type”connector_properties”:{“ gcs_bucket”:“ sample-dataset”,“ gcs_prefix”:“ cloudimport/event”,“ gcs_region”:“ category_properties”,“ category_properties”:“没有任何”}}'
{“状态”:“ OK”,“结果”:{“ Connector_id”:“ 232F40CC-7CCC-4DA3-B9C3-B9C3-D8C1D14142C6”,“ LABEL”:“”,“ CONNECTOR_TYPE”,“ CONNECTOR_TYPE”:“ gcs_bucket”:“ sample-data”,“ gcs_prefix”:“ cloudimport/event”,},“ category_properties”:{“ data_format”:“ mixpanel_event”,“ mixpanel_event”,“ compression”,“ compression”,“ compression”,“ compression”,“ compression”:“ none”},“ none”},“状态”:“,” create_at”:“ 2020-09-17T02:10:33.799738z”,“ create_by”:“”[电子邮件保护]“}}}