namespace ZB.MOM.WW.MxGateway.Server.Metrics;
///
/// Bounded classification of an alarm-provider switch, used as the low-cardinality
/// reason tag on the mxgateway.alarms.provider_switches counter. The
/// worker supplies a free-text reason (e.g. "primary PollOnce failed") that
/// stays in the structured log; only this bounded value reaches the metric tag so the
/// time series cannot fan out on operation-specific text.
///
public enum AlarmProviderSwitchReason
{
/// The switch direction could not be classified.
Unknown = 0,
/// Switched from the primary (alarmmgr) provider to the subtag standby — degraded.
Failover = 1,
/// Switched back from the subtag standby to the primary (alarmmgr) provider — recovered.
Failback = 2,
}