p1_parser v0.1.8 P1.Telegram.LongFailureLog

list of failures, when the failure ended and how long it lasted

Example

iex> P1.parse!("1-0:99.97.0(2)(0-0:96.7.19)(101208152415W)(0000000240*s)(101208151004W)(0000000301*s)") |> P1.to_struct
%P1.Telegram.LongFailureLog{
count: 2,
events: [
  %P1.Telegram.LongFailure{
    duration: 240,
    timestamp: "2010-12-08T15:24:15+02:00",
    unit: "s"
  },
  %P1.Telegram.LongFailure{
    duration: 301,
    timestamp: "2010-12-08T15:10:04+02:00",
    unit: "s"
  }
]
}