Class Sample
Values, timestamp and status of a sample.
Inheritance
Namespace: MESL.SqlRace.Domain.Infrastructure.DataPipeline
Assembly: MESL.SqlRace.Domain.dll
Syntax
public sealed class Sample : ValueType
Constructors
Sample(Int64, Double, DataStatusType)
Initializes a new instance of the Sample struct for use as a Sample.
Declaration
public Sample(long timestamp, double value, DataStatusType status)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | timestamp | The timestamp. |
System.Double | value | The value. |
DataStatusType | status | The status. |
Sample(Int64, Double, Double, DataStatusType)
Initializes a new instance of the Sample struct for use as a Min Max Sample.
Declaration
public Sample(long timestamp, double minimumValue, double maximumValue, DataStatusType status)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | timestamp | The timestamp. |
System.Double | minimumValue | The minimum value. |
System.Double | maximumValue | The maximum value. |
DataStatusType | status | The status. |
Sample(Int64, Double, Double, Double, DataStatusType)
Initializes a new instance of the Sample struct for use as a Min Max Mean Sample.
Declaration
public Sample(long timestamp, double minimumValue, double maximumValue, double meanValue, DataStatusType status)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | timestamp | The timestamp. |
System.Double | minimumValue | The minimum value. |
System.Double | maximumValue | The maximum value. |
System.Double | meanValue | The mean value. |
DataStatusType | status | The status. |
Sample(Int64, Double, Double, Double, Double, DataStatusType)
Initializes a new instance of the Sample struct for use as a Min Max Mean Sample.
Declaration
public Sample(long timestamp, double first, double minimumValue, double maximumValue, double meanValue, DataStatusType status)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | timestamp | The timestamp. |
System.Double | first | The first. |
System.Double | minimumValue | The minimum value. |
System.Double | maximumValue | The maximum value. |
System.Double | meanValue | The mean value. |
DataStatusType | status | The status. |
Fields
FirstValue
First value of sample.
Declaration
public double FirstValue
Field Value
Type | Description |
---|---|
System.Double |
MaximumValue
Maximum value of sample.
Declaration
public double MaximumValue
Field Value
Type | Description |
---|---|
System.Double |
MinimumValue
Minimum value of sample.
Declaration
public double MinimumValue
Field Value
Type | Description |
---|---|
System.Double |
Status
Status of sample.
Declaration
public DataStatusType Status
Field Value
Type | Description |
---|---|
DataStatusType |
Timestamp
Timestamp of sample.
Declaration
public long Timestamp
Field Value
Type | Description |
---|---|
System.Int64 |
Value
Value of sample (mean).
Declaration
public double Value
Field Value
Type | Description |
---|---|
System.Double |
Methods
IsSample()
Is this a valid sample?
Declaration
public bool IsSample()
Returns
Type | Description |
---|---|
System.Boolean | True if a valid sample. |
MarkAsIncomplete()
Mark sample as incomplete.
Declaration
public void MarkAsIncomplete()
ToString()
Convert sample to a string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | Sample as a string. |