stormlog.telemetry_classification

Shared classification helpers for canonical telemetry events.

Functions

event_backend(event)

Return a normalized backend dimension for grouping.

event_severity(event)

Return a normalized severity for alert and marker grouping.

is_alert_event(event)

Return whether a telemetry event should be counted as an alert.

is_collector_degradation_event(event)

Return whether an event indicates collector degradation.

is_oom_event(event)

Return whether an error telemetry event carries OOM marker metadata.

Classes

TelemetryClassifiable(*args, **kwargs)

Telemetry fields required by shared classification helpers.

stormlog.telemetry_classification.event_backend(event)[source]

Return a normalized backend dimension for grouping.

Parameters:

event (TelemetryClassifiable)

Return type:

str

stormlog.telemetry_classification.event_severity(event)[source]

Return a normalized severity for alert and marker grouping.

Parameters:

event (TelemetryClassifiable)

Return type:

str

stormlog.telemetry_classification.is_alert_event(event)[source]

Return whether a telemetry event should be counted as an alert.

Parameters:

event (TelemetryClassifiable)

Return type:

bool

stormlog.telemetry_classification.is_collector_degradation_event(event)[source]

Return whether an event indicates collector degradation.

Parameters:

event (TelemetryClassifiable)

Return type:

bool

stormlog.telemetry_classification.is_oom_event(event)[source]

Return whether an error telemetry event carries OOM marker metadata.

Parameters:

event (TelemetryClassifiable)

Return type:

bool