You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::Health::Types::DateTimeRange
- Inherits:
-
Struct
- Object
- Struct
- Aws::Health::Types::DateTimeRange
- Defined in:
- (unknown)
Overview
When passing DateTimeRange as input to an Aws::Client method, you can use a vanilla Hash:
{
from: Time.now,
to: Time.now,
}
A range of dates and times that is used by the EventFilter and EntityFilter objects. If from
is set and to
is set: match items where the timestamp (startTime
, endTime
, or lastUpdatedTime
) is between from
and to
inclusive. If from
is set and to
is not set: match items where the timestamp value is equal to or after from
. If from
is not set and to
is set: match items where the timestamp value is equal to or before to
.
Returned by:
Instance Attribute Summary collapse
-
#from ⇒ Time
The starting date and time of a time range.
-
#to ⇒ Time
The ending date and time of a time range.
Instance Attribute Details
#from ⇒ Time
The starting date and time of a time range.
#to ⇒ Time
The ending date and time of a time range.