data_imports

Protocol buffer definition for data_imports

sift/data_imports/v2/data_imports.proto

Ch10Config

FieldTypeLabelDescription
asset_namestring
run_namestring
scale_valuesbool

CreateDataImportFromUploadRequest

FieldTypeLabelDescription
csv_configCsvConfig
ch10_configCh10Config
tdms_configTDMSConfig

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

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.

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

DetectConfigRequest

FieldTypeLabelDescription
databytes

DetectConfigResponse

FieldTypeLabelDescription
csv_configCsvConfig

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

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).

DataImportStatus

NameNumberDescription
DATA_IMPORT_STATUS_UNSPECIFIED0
DATA_IMPORT_STATUS_PENDING1
DATA_IMPORT_STATUS_IN_PROGRESS2
DATA_IMPORT_STATUS_SUCCEEDED3
DATA_IMPORT_STATUS_FAILED4

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