struct

TCal::V3API::Alert::Attributes

Inherits JSON::Serializable < Struct < Value < Object

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.

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

active_periods
Source
created_at
Source
definite_active_periods

Returns the active_periods that are valid and have defined end times.

Source
description

Normalize DOS-style line breaks found in descriptions.

Source
header
Source
image
Source
image_alternative_text
Source
informed_entities
Source
service_effect
Source
transient?

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.

Source
updated_at
Source