Source code for archiver_test.fail_reasons

from enum import Enum


[docs] class Reason(Enum): """Possible reasons the data from two archivers for the same PV are different."""
[docs] CapacityFull = "PV fills up buffer capacity"
[docs] SamplingMethod = "Sampling method different"
[docs] SamplingPeriod = "Sampling period different"
[docs] CapacityAdjustment = "Capacity adjustment constant different"
[docs] NoEventsTime = "No events in time period"
[docs] NotArchiving = "PV not being archived in one archiver"
[docs] DifferentType = "The PVs have different types"
[docs] ProtocolDifference = "Protocol Differences"
[docs] Unknown = "Unknown"
[docs] symptoms = { "estimated event rate different": { "sampling method different", "sampling period different", "capacityy adjustment constant different", "capacity full", }, "large number of dropped events to total events but event rate similar": { "sampling method different", "sampling period different", "capacityy adjustment constant different", "capacity full", }, "single event where timestamp not in time period": {}, }