Table of Contents

Class FileReaderOptions

Namespace
MES.MQC.DataSourceLibrary.Models.Adapters
Assembly
MES.MQC.DataSourceLibrary.dll

Default AdapterOptions for FileAdapters. Provides configuration to extract information from the file path (ArtifactPath, DataSourceName, MeasurementName, ReportDateTime).

public abstract class FileReaderOptions : AdapterOptions
Inheritance
AdapterOptions
FileReaderOptions
Inherited Members
AdapterOptions.Type

Properties

ArtifactPathFromFilePath

Extract the ArtifactPath from the given file path.

[JsonProperty(Required = Required.DisallowNull, DefaultValueHandling = DefaultValueHandling.Ignore)]
public FileReaderOptions.InputFromFilePath[] ArtifactPathFromFilePath { get; set; }

Property Value

InputFromFilePath[]

DataSourceNameFromFilePath

Extract the DataSourceName from the given file path.

[JsonProperty(Required = Required.DisallowNull, DefaultValueHandling = DefaultValueHandling.Ignore)]
public FileReaderOptions.InputFromFilePath[] DataSourceNameFromFilePath { get; set; }

Property Value

InputFromFilePath[]

HumanReadableFilePaths

Find human readable file paths based on the imported data, usable in string pattern: {DataSourceName}, {ArtifactPath}, {MeasurementName}

[JsonProperty(Required = Required.DisallowNull, DefaultValueHandling = DefaultValueHandling.Ignore)]
public string[] HumanReadableFilePaths { get; set; }

Property Value

string[]

ImportLatestOnlyFileExpressions

Expression for FilePaths, that if there are multiple matches, only the latest (creation date) is imported.

[JsonProperty(Required = Required.DisallowNull, DefaultValueHandling = DefaultValueHandling.Ignore)]
public string[] ImportLatestOnlyFileExpressions { get; set; }

Property Value

string[]

MeasurementNameFromFilePath

Extract the MeasurementName from the given file path.

[JsonProperty(Required = Required.DisallowNull, DefaultValueHandling = DefaultValueHandling.Ignore)]
public FileReaderOptions.InputFromFilePath[] MeasurementNameFromFilePath { get; set; }

Property Value

InputFromFilePath[]

ReportDateTimeFromFilePath

Extract the ReportDateTime from the given file path.

[JsonProperty(Required = Required.DisallowNull, DefaultValueHandling = DefaultValueHandling.Ignore)]
public FileReaderOptions.DateTimeFromFilePath[] ReportDateTimeFromFilePath { get; set; }

Property Value

DateTimeFromFilePath[]