Class: Aws::LexModelsV2::Types::AnalyticsUtteranceFilter

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

Overview

Contains fields describing a condition by which to filter the utterances. The expression may be understood as name operator values. For example:

  • LocaleId EQ Book – The locale is the string "en".

  • UtteranceText CO help – The text of the utterance contains the string "help".

The operators that each filter supports are listed below:

  • BotAliasEQ.

  • BotVersionEQ.

  • LocaleIdEQ.

  • ModalityEQ.

  • ChannelEQ.

  • SessionIdEQ.

  • OriginatingRequestIdEQ.

  • UtteranceStateEQ.

  • UtteranceTextEQ, CO.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#nameString

The category by which to filter the utterances. The descriptions for each option are as follows:

  • BotAlias – The name of the bot alias.

  • BotVersion – The version of the bot.

  • LocaleId – The locale of the bot.

  • Modality – The modality of the session with the bot (audio, DTMF, or text).

  • Channel – The channel that the bot is integrated with.

  • SessionId – The identifier of the session with the bot.

  • OriginatingRequestId – The identifier of the first request in a session.

  • UtteranceState – The state of the utterance.

  • UtteranceText – The text in the utterance.

Returns:

  • (String)


1308
1309
1310
1311
1312
1313
1314
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 1308

class AnalyticsUtteranceFilter < Struct.new(
  :name,
  :operator,
  :values)
  SENSITIVE = []
  include Aws::Structure
end

#operatorString

The operation by which to filter the category. The following operations are possible:

  • CO – Contains

  • EQ – Equals

  • GT – Greater than

  • LT – Less than

The operators that each filter supports are listed below:

  • BotAliasEQ.

  • BotVersionEQ.

  • LocaleIdEQ.

  • ModalityEQ.

  • ChannelEQ.

  • SessionIdEQ.

  • OriginatingRequestIdEQ.

  • UtteranceStateEQ.

  • UtteranceTextEQ, CO.

Returns:

  • (String)


1308
1309
1310
1311
1312
1313
1314
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 1308

class AnalyticsUtteranceFilter < Struct.new(
  :name,
  :operator,
  :values)
  SENSITIVE = []
  include Aws::Structure
end

#valuesArray<String>

An array containing the values of the category by which to apply the operator to filter the results. You can provide multiple values if the operator is EQ or CO. If you provide multiple values, you filter for results that equal/contain any of the values. For example, if the name, operator, and values fields are Modality, EQ, and [Speech, Text], the operation filters for results where the modality was either Speech or Text.

Returns:

  • (Array<String>)


1308
1309
1310
1311
1312
1313
1314
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 1308

class AnalyticsUtteranceFilter < Struct.new(
  :name,
  :operator,
  :values)
  SENSITIVE = []
  include Aws::Structure
end