Struct TelemetryEvent
A structured telemetry event.
public readonly record struct TelemetryEvent : IEquatable<TelemetryEvent>
- Implements
- Inherited Members
Remarks
The code is a stable, short label such as battery.low rather than a
free-form message, so events stay small and group cleanly into counts.
Constructors
TelemetryEvent(TelemetryLevel, string, float?)
A structured telemetry event.
public TelemetryEvent(TelemetryLevel Level, string Code, float? Value = null)
Parameters
LevelTelemetryLevelHow urgent the event is.
CodestringA stable, short identifier for what happened.
Valuefloat?An optional measurement, such as the charge that triggered it.
Remarks
The code is a stable, short label such as battery.low rather than a
free-form message, so events stay small and group cleanly into counts.
Properties
Code
A stable, short identifier for what happened.
public string Code { get; init; }
Property Value
Level
How urgent the event is.
public TelemetryLevel Level { get; init; }
Property Value
Value
An optional measurement, such as the charge that triggered it.
public float? Value { get; init; }