Struct Alert
An alert a reading raised.
public readonly record struct Alert : IEquatable<Alert>
- Implements
- Inherited Members
Remarks
Only the value belonging to Kind is set.
Constructors
Alert(AlertKind, float?, uint?, float?, string?, float?)
An alert a reading raised.
public Alert(AlertKind Kind, float? Reading, uint? Samples, float? Rate, string? Code = null, float? Value = null)
Parameters
KindAlertKindWhich threshold the reading crossed.
Readingfloat?The offending reading, for an out-of-range or invalid-reading alert.
Samplesuint?The samples until empty, for a running-out alert.
Ratefloat?The change since the previous sample, for a changing-fast alert.
CodestringThe condition's name, for a custom alert.
Valuefloat?The measurement behind the condition, for a custom alert.
Remarks
Only the value belonging to Kind is set.
Properties
Code
The condition's name, for a custom alert.
public string? Code { get; init; }
Property Value
Kind
Which threshold the reading crossed.
public AlertKind Kind { get; init; }
Property Value
Rate
The change since the previous sample, for a changing-fast alert.
public float? Rate { get; init; }
Property Value
Reading
The offending reading, for an out-of-range or invalid-reading alert.
public float? Reading { get; init; }
Property Value
Samples
The samples until empty, for a running-out alert.
public uint? Samples { get; init; }
Property Value
- uint?
Value
The measurement behind the condition, for a custom alert.
public float? Value { get; init; }