A basic type to hold reading values from real-world sensors.
More...
|
DateTime | Timestamp [get, protected set] |
| Gets or sets the timestamp. More...
|
|
string | TimestampISO [get] |
| Gets the timestamp in ISO string form. More...
|
|
int | Bucket [get] |
| Gets the bucket, which is the number of the five minute period in which the timestamp falls. There are 12 buckets in an hour, 288 buckets in a day. More...
|
|
int | Offset [get] |
| Gets the offset into the bucket. More...
|
|
MeasurementSource | Source [get, protected set] |
| Gets or sets the source. More...
|
|
MeasurementMapping | Map [get, set] |
| Gets or sets the mapping associated with the measurement. More...
|
|
decimal | Value [get, protected set] |
| Gets (or sets for subclasses) the value of the measurement as received by the source or as modified by the compiler. More...
|
|
byte[] | RawData [get] |
| Gets the raw data used to create this reading (if any). Components providing raw data to readings must also provide a delegate to convert that data into decimal. More...
|
|
A basic type to hold reading values from real-world sensors.
◆ Reading() [1/5]
Apac.Monitoring.Reading.Reading |
( |
| ) |
|
|
inlineprotected |
Initializes a new instance of the Reading class.
◆ Reading() [2/5]
Initializes a new instance of the Reading class.
- Parameters
-
stamp | The stamp. |
source | The source. |
rawData | The raw data. |
handler | The handler. |
◆ Reading() [3/5]
Initializes a new instance of the Reading class.
- Parameters
-
source | The source. |
rawData | The raw data. |
handler | The handler. |
◆ Reading() [4/5]
Initializes a new instance of the Reading class.
- Parameters
-
source | The source. |
value | The value. |
◆ Reading() [5/5]
Apac.Monitoring.Reading.Reading |
( |
SerializationInfo |
info, |
|
|
StreamingContext |
context |
|
) |
| |
|
inlineprotected |
Initializes a new instance of the Reading class.
- Parameters
-
info | The info. |
context | The context. |
◆ Clone()
Reading Apac.Monitoring.Reading.Clone |
( |
| ) |
|
|
inline |
Clones this instance.
- Returns
- Returns a clone of this instance.
◆ GetObjectData()
void Apac.Monitoring.Reading.GetObjectData |
( |
SerializationInfo |
info, |
|
|
StreamingContext |
context |
|
) |
| |
|
inline |
Populates a T:System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
- Parameters
-
info | The T:System.Runtime.Serialization.SerializationInfo to populate with data. |
context | The destination (see T:System.Runtime.Serialization.StreamingContext) for this serialization. |
- Exceptions
-
T:System.Security.SecurityException | The caller does not have the required permission. |
◆ OnClone()
virtual Reading Apac.Monitoring.Reading.OnClone |
( |
| ) |
|
|
inlineprotectedvirtual |
Signals when Clone() has been called..
- Returns
- Returns a clone of this instance.
◆ RawDataHandler()
delegate decimal Apac.Monitoring.Reading.RawDataHandler |
( |
byte[] |
rawData | ) |
|
A delegate used to process binary data from a reading, which comes in the form of a byte[].
- Parameters
-
- Returns
- Returns a processed value of type decimal.
◆ Bucket
int Apac.Monitoring.Reading.Bucket |
|
get |
Gets the bucket, which is the number of the five minute period in which the timestamp falls. There are 12 buckets in an hour, 288 buckets in a day.
◆ Map
Gets or sets the mapping associated with the measurement.
The map.
◆ Offset
int Apac.Monitoring.Reading.Offset |
|
get |
Gets the offset into the bucket.
◆ RawData
byte [] Apac.Monitoring.Reading.RawData |
|
get |
Gets the raw data used to create this reading (if any). Components providing raw data to readings must also provide a delegate to convert that data into decimal.
◆ Source
Gets or sets the source.
The source.
◆ Timestamp
DateTime Apac.Monitoring.Reading.Timestamp |
|
getprotected set |
Gets or sets the timestamp.
The timestamp.
◆ TimestampISO
string Apac.Monitoring.Reading.TimestampISO |
|
get |
Gets the timestamp in ISO string form.
◆ Value
decimal Apac.Monitoring.Reading.Value |
|
getprotected set |
Gets (or sets for subclasses) the value of the measurement as received by the source or as modified by the compiler.
The value.
The documentation for this class was generated from the following file:
- /var/lib/jenkins/workspace/apac/APAC/APACCore/Monitoring/Reading.cs