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

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

Overview

A range of dates and times that is used by the [EventFilter] and

EntityFilter][2

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`.

[1]: docs.aws.amazon.com/health/latest/APIReference/API_EventFilter.html [2]: docs.aws.amazon.com/health/latest/APIReference/API_EntityFilter.html

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#fromTime

The starting date and time of a time range.

Returns:

  • (Time)


149
150
151
152
153
154
# File 'lib/aws-sdk-health/types.rb', line 149

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

#toTime

The ending date and time of a time range.

Returns:

  • (Time)


149
150
151
152
153
154
# File 'lib/aws-sdk-health/types.rb', line 149

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