Table of Contents

Struct TelemetryEvent

Namespace
Pamoja.Telemetry
Assembly
Pamoja.Telemetry.dll

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

Level TelemetryLevel

How urgent the event is.

Code string

A stable, short identifier for what happened.

Value float?

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

string

Level

How urgent the event is.

public TelemetryLevel Level { get; init; }

Property Value

TelemetryLevel

Value

An optional measurement, such as the charge that triggered it.

public float? Value { get; init; }

Property Value

float?