Class: Aws::LexModelsV2::Types::RelativeAggregationDuration

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

Overview

Note:

When making an API call, you may pass RelativeAggregationDuration data as a hash:

{
  time_dimension: "Hours", # required, accepts Hours, Days, Weeks
  time_value: 1, # required
}

Specifies the time window that utterance statistics are returned for. The time window is always relative to the last time that the that utterances were aggregated. For example, if the ListAggregatedUtterances operation is called at 1600, the time window is set to 1 hour, and the last refresh time was 1530, only utterances made between 1430 and 1530 are returned.

You can choose the time window that statistics should be returned for.

  • Hours - You can request utterance statistics for 1, 3, 6, 12, or 24 hour time windows. Statistics are refreshed every half hour for 1 hour time windows, and hourly for the other time windows.

  • Days - You can request utterance statistics for 3 days. Statistics are refreshed every 6 hours.

  • Weeks - You can see statistics for one or two weeks. Statistics are refreshed every 12 hours for one week time windows, and once per day for two week time windows.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#time_dimensionString

The type of time period that the timeValue field represents.

Returns:

  • (String)


8239
8240
8241
8242
8243
8244
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 8239

class RelativeAggregationDuration < Struct.new(
  :time_dimension,
  :time_value)
  SENSITIVE = []
  include Aws::Structure
end

#time_valueInteger

The period of the time window to gather statistics for. The valid value depends on the setting of the timeDimension field.

  • Hours - 1/3/6/12/24

  • Days - 3

  • Weeks - 1/2

Returns:

  • (Integer)


8239
8240
8241
8242
8243
8244
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 8239

class RelativeAggregationDuration < Struct.new(
  :time_dimension,
  :time_value)
  SENSITIVE = []
  include Aws::Structure
end