You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Health::Types::DateTimeRange

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-health/lib/aws-sdk-health/types.rb

Overview

Note:

When making an API call, you may pass DateTimeRange data as a 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.

Instance Attribute Summary collapse

Instance Attribute Details

#fromTime

The starting date and time of a time range.

Returns:

  • (Time)


86
87
88
89
90
# File 'gems/aws-sdk-health/lib/aws-sdk-health/types.rb', line 86

class DateTimeRange < Struct.new(
  :from,
  :to)
  include Aws::Structure
end

#toTime

The ending date and time of a time range.

Returns:

  • (Time)


86
87
88
89
90
# File 'gems/aws-sdk-health/lib/aws-sdk-health/types.rb', line 86

class DateTimeRange < Struct.new(
  :from,
  :to)
  include Aws::Structure
end