Skip to main content

sift/data_imports/v2/data_imports.proto

Ch10Config

FieldTypeLabelDescription
asset_namestring
run_namestring
scale_valuesbool

CreateDataImportFromUploadRequest

FieldTypeLabelDescription
csv_configCsvConfig
ch10_configCh10Config
tdms_configTDMSConfig
parquet_configParquetConfig

CreateDataImportFromUploadResponse

FieldTypeLabelDescription
upload_urlstring
data_import_idstring

CreateDataImportFromUrlRequest

FieldTypeLabelDescription
urlstringThe url to import. HTTP and S3 urls are supported. If you need to import non-public S3 objects, please contact Sift to set that up.
csv_configCsvConfig
ch10_configCh10Config
tdms_configTDMSConfig
parquet_configParquetConfig

CreateDataImportFromUrlResponse

FieldTypeLabelDescription
data_import_idstring

CsvConfig

FieldTypeLabelDescription
asset_namestring
run_namestring
run_idstringThe id of the run to add this data to. If set, run_name is ignored.
first_data_rowuint32The first row to start reading as data. Can be used to skip header rows. The first row in the file is 1.
time_columnCsvTimeColumnoptional
data_columnsCsvConfig.DataColumnsEntryrepeatedA map from column number (1-indexed) to the channel configuration for that column.
num_rowsuint64optionalThis will be read on upload from the file if not set.

CsvConfig.DataColumnsEntry

FieldTypeLabelDescription
keyuint32
valuesift.common.type.v1.ChannelConfig

CsvTimeColumn

FieldTypeLabelDescription
column_numberuint32The column number (1-indexed) of the time column.
formatTimeFormat
relative_start_timegoogle.protobuf.Timestampoptional

DataImport

FieldTypeLabelDescription
data_import_idstring
source_urlstring
statusDataImportStatus
error_messagestring
created_dategoogle.protobuf.Timestamp
modified_dategoogle.protobuf.Timestamp
csv_configCsvConfig
ch10_configCh10Config
tdms_configTDMSConfig
parquet_configParquetConfig
run_idstringoptionalThe run id will be set if the data import ingests to a run once the run is available.
report_idstringoptionalThe report id will be set if the data import creates a report once the report is available.
asset_idstringoptional
data_start_timegoogle.protobuf.Timestampoptional
data_stop_timegoogle.protobuf.Timestampoptional

DetectConfigRequest

FieldTypeLabelDescription
databytes
typeDataTypeKey

DetectConfigResponse

FieldTypeLabelDescription
csv_configCsvConfig
parquet_configParquetConfig

GetDataImportRequest

FieldTypeLabelDescription
data_import_idstring

GetDataImportResponse

FieldTypeLabelDescription
data_importDataImport

ListDataImportsRequest

FieldTypeLabelDescription
page_sizeuint32The maximum number of data imports to return. The service may return fewer than this value. If unspecified, at most 50 data imports will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. Optional.
page_tokenstringA page token, received from a previous ListDataImports call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListDataImports must match the call that provided the page token. Optional.
filterstringA Common Expression Language (CEL) filter string. Available fields to filter by are data_import_id, source_url, status. For further information about how to use CELs, please refer to this guide.
order_bystringHow to order the retrieved data imports. Formatted as a comma-separated string i.e. “FIELD_NAME[ desc],…”. Available fields to order_by are created_date and modified_date. If left empty, items are ordered by created_date in ascending order (oldest-first). For more information about the format of this field, read this Example: “created_date desc,modified_date”

ListDataImportsResponse

FieldTypeLabelDescription
data_importsDataImportrepeated
next_page_tokenstring

ParquetConfig

FieldTypeLabelDescription
asset_namestring
run_namestring
run_idstringThe id of the run to add this data to. If set, run_name is ignored.
oneof config.flat_datasetParquetFlatDatasetConfig
footer_offsetuint64
footer_lengthuint32
complex_types_import_modeParquetComplexTypesImportMode

ParquetDataColumn

FieldTypeLabelDescription
pathstring
channel_configsift.common.type.v1.ChannelConfig

ParquetFlatDatasetConfig

FieldTypeLabelDescription
time_columnParquetTimeColumn
data_columnsParquetDataColumnrepeated

ParquetTimeColumn

FieldTypeLabelDescription
pathstring
formatTimeFormat
relative_start_timegoogle.protobuf.Timestampoptional

RetryDataImportRequest

FieldTypeLabelDescription
data_import_idstringdata_import_id is the id of the data import to retry. You can only retry an import that is a “url” based import (created with CreateDataImportFromUrl) and is in a failed state.

RetryDataImportResponse

TDMSConfig

FieldTypeLabelDescription
asset_namestring
run_namestring
start_time_overridegoogle.protobuf.TimestampOverride the wf_start_time metadata field for all channels. Useful if your waveform channels have wf_increment but no wf_start_time (Veristand is guilty of this).
file_sizeuint64optionalThe file size in bytes. If the file has truncated chunks, this will be required to pass validation.

DataImportStatus

NameNumberDescription
DATA_IMPORT_STATUS_UNSPECIFIED0
DATA_IMPORT_STATUS_PENDING1
DATA_IMPORT_STATUS_IN_PROGRESS2
DATA_IMPORT_STATUS_SUCCEEDED3
DATA_IMPORT_STATUS_FAILED4

DataTypeKey

NameNumberDescription
DATA_TYPE_KEY_UNSPECIFIED0
DATA_TYPE_KEY_CSV1
DATA_TYPE_KEY_TDMS2
DATA_TYPE_KEY_CH103
DATA_TYPE_KEY_PARQUET_FLATDATASET4

ParquetComplexTypesImportMode

NameNumberDescription
PARQUET_COMPLEX_TYPES_IMPORT_MODE_UNSPECIFIED0
PARQUET_COMPLEX_TYPES_IMPORT_MODE_IGNORE1Ignore complex types and do not ingest them.
PARQUET_COMPLEX_TYPES_IMPORT_MODE_BOTH2Import complex types as both Arrow bytes and JSON strings.
PARQUET_COMPLEX_TYPES_IMPORT_MODE_STRING3Import complex types as only JSON strings.
PARQUET_COMPLEX_TYPES_IMPORT_MODE_BYTES4Import complex types as only Arrow bytes.

TimeFormat

NameNumberDescription
TIME_FORMAT_UNSPECIFIED0
TIME_FORMAT_RELATIVE_NANOSECONDS1
TIME_FORMAT_RELATIVE_MICROSECONDS2
TIME_FORMAT_RELATIVE_MILLISECONDS3
TIME_FORMAT_RELATIVE_SECONDS4
TIME_FORMAT_RELATIVE_MINUTES5
TIME_FORMAT_RELATIVE_HOURS6
TIME_FORMAT_ABSOLUTE_RFC333910
TIME_FORMAT_ABSOLUTE_DATETIME11
TIME_FORMAT_ABSOLUTE_UNIX_SECONDS12
TIME_FORMAT_ABSOLUTE_UNIX_MILLISECONDS13
TIME_FORMAT_ABSOLUTE_UNIX_MICROSECONDS14
TIME_FORMAT_ABSOLUTE_UNIX_NANOSECONDS15

DataImportService

Method NameRequest TypeResponse TypeDescription
CreateDataImportFromUrlCreateDataImportFromUrlRequestCreateDataImportFromUrlResponse
CreateDataImportFromUploadCreateDataImportFromUploadRequestCreateDataImportFromUploadResponse
DetectConfigDetectConfigRequestDetectConfigResponse
ListDataImportsListDataImportsRequestListDataImportsResponse
RetryDataImportRetryDataImportRequestRetryDataImportResponse
GetDataImportGetDataImportRequestGetDataImportResponse