struct TCal::V3API::Alert::Attributes
- TCal::V3API::Alert::Attributes
- Struct
- Value
- Object
Overview
The attributes of an Alert resource.
The active_period
and informed_entity
attributes are remapped to align
with the convention that collections have plural names.
Included Modules
- JSON::Serializable
Defined in:
t_cal/v3_api/alert.crConstructors
Instance Method Summary
- #active_periods : Array(ActivePeriod)
- #created_at : Time
-
#definite_active_periods : Array(TimePeriod)
Returns the
#active_periods
that are valid and have defined end times. -
#description : String | Nil
Normalize DOS-style line breaks found in descriptions.
- #header : String
- #image : String | Nil
- #image_alternative_text : String | Nil
- #informed_entities : Array(InformedEntity)
- #service_effect : String
-
#transient? : Bool
Tries to guess whether this alert is "transient" (represents an unplanned disruption that is not expected to last very long).
- #updated_at : Time
- #url : String | Nil
Constructor Detail
Instance Method Detail
Returns the #active_periods
that are valid and have defined end times.
Tries to guess whether this alert is "transient" (represents an unplanned disruption that is not expected to last very long).
An alert is transient if it has only one active period, with a start time within 1 hour of the alert's creation timestamp, a definite end time, and a duration of less than 12 hours. These are indicators that the alert was likely created in response to a short-term unplanned disruption which was already happening at the time of creation.