aws-sdk-lexmodelsv2 1.38.0 → 1.40.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -5771,6 +5771,386 @@ module Aws::LexModelsV2
5771
5771
  req.send_request(options)
5772
5772
  end
5773
5773
 
5774
+ # Retrieves summary metrics for the intents in your bot. The following
5775
+ # fields are required:
5776
+ #
5777
+ # * `metrics` – A list of [AnalyticsIntentMetric][1] objects. In each
5778
+ # object, use the `name` field to specify the metric to calculate, the
5779
+ # `statistic` field to specify whether to calculate the `Sum`,
5780
+ # `Average`, or `Max` number, and the `order` field to specify whether
5781
+ # to sort the results in `Ascending` or `Descending` order.
5782
+ #
5783
+ # * `startDateTime` and `endDateTime` – Define a time range for which
5784
+ # you want to retrieve results.
5785
+ #
5786
+ # Of the optional fields, you can organize the results in the following
5787
+ # ways:
5788
+ #
5789
+ # * Use the `filters` field to filter the results, the `groupBy` field
5790
+ # to specify categories by which to group the results, and the `binBy`
5791
+ # field to specify time intervals by which to group the results.
5792
+ #
5793
+ # * Use the `maxResults` field to limit the number of results to return
5794
+ # in a single response and the `nextToken` field to return the next
5795
+ # batch of results if the response does not return the full set of
5796
+ # results.
5797
+ #
5798
+ # Note that an `order` field exists in both `binBy` and `metrics`. You
5799
+ # can specify only one `order` in a given request.
5800
+ #
5801
+ #
5802
+ #
5803
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/APIReference/API_AnalyticsIntentMetric.html
5804
+ #
5805
+ # @option params [required, String] :bot_id
5806
+ # The identifier for the bot for which you want to retrieve intent
5807
+ # metrics.
5808
+ #
5809
+ # @option params [required, Time,DateTime,Date,Integer,String] :start_date_time
5810
+ # The timestamp that marks the beginning of the range of time for which
5811
+ # you want to see intent metrics.
5812
+ #
5813
+ # @option params [required, Time,DateTime,Date,Integer,String] :end_date_time
5814
+ # The date and time that marks the end of the range of time for which
5815
+ # you want to see intent metrics.
5816
+ #
5817
+ # @option params [required, Array<Types::AnalyticsIntentMetric>] :metrics
5818
+ # A list of objects, each of which contains a metric you want to list,
5819
+ # the statistic for the metric you want to return, and the order by
5820
+ # which to organize the results.
5821
+ #
5822
+ # @option params [Array<Types::AnalyticsBinBySpecification>] :bin_by
5823
+ # A list of objects, each of which contains specifications for
5824
+ # organizing the results by time.
5825
+ #
5826
+ # @option params [Array<Types::AnalyticsIntentGroupBySpecification>] :group_by
5827
+ # A list of objects, each of which specifies how to group the results.
5828
+ # You can group by the following criteria:
5829
+ #
5830
+ # * `IntentName` – The name of the intent.
5831
+ #
5832
+ # * `IntentEndState` – The final state of the intent. The possible end
5833
+ # states are detailed in [Key definitions][1] in the user guide.
5834
+ #
5835
+ #
5836
+ #
5837
+ # [1]: https://docs.aws.amazon.com/analytics-key-definitions-intents
5838
+ #
5839
+ # @option params [Array<Types::AnalyticsIntentFilter>] :filters
5840
+ # A list of objects, each of which describes a condition by which you
5841
+ # want to filter the results.
5842
+ #
5843
+ # @option params [Integer] :max_results
5844
+ # The maximum number of results to return in each page of results. If
5845
+ # there are fewer results than the maximum page size, only the actual
5846
+ # number of results are returned.
5847
+ #
5848
+ # @option params [String] :next_token
5849
+ # If the response from the ListIntentMetrics operation contains more
5850
+ # results than specified in the maxResults parameter, a token is
5851
+ # returned in the response.
5852
+ #
5853
+ # Use the returned token in the nextToken parameter of a
5854
+ # ListIntentMetrics request to return the next page of results. For a
5855
+ # complete set of results, call the ListIntentMetrics operation until
5856
+ # the nextToken returned in the response is null.
5857
+ #
5858
+ # @return [Types::ListIntentMetricsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5859
+ #
5860
+ # * {Types::ListIntentMetricsResponse#bot_id #bot_id} => String
5861
+ # * {Types::ListIntentMetricsResponse#results #results} => Array&lt;Types::AnalyticsIntentResult&gt;
5862
+ # * {Types::ListIntentMetricsResponse#next_token #next_token} => String
5863
+ #
5864
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
5865
+ #
5866
+ # @example Request syntax with placeholder values
5867
+ #
5868
+ # resp = client.list_intent_metrics({
5869
+ # bot_id: "Id", # required
5870
+ # start_date_time: Time.now, # required
5871
+ # end_date_time: Time.now, # required
5872
+ # metrics: [ # required
5873
+ # {
5874
+ # name: "Count", # required, accepts Count, Success, Failure, Switched, Dropped
5875
+ # statistic: "Sum", # required, accepts Sum, Avg, Max
5876
+ # order: "Ascending", # accepts Ascending, Descending
5877
+ # },
5878
+ # ],
5879
+ # bin_by: [
5880
+ # {
5881
+ # name: "ConversationStartTime", # required, accepts ConversationStartTime, UtteranceTimestamp
5882
+ # interval: "OneHour", # required, accepts OneHour, OneDay
5883
+ # order: "Ascending", # accepts Ascending, Descending
5884
+ # },
5885
+ # ],
5886
+ # group_by: [
5887
+ # {
5888
+ # name: "IntentName", # required, accepts IntentName, IntentEndState, IntentLevel
5889
+ # },
5890
+ # ],
5891
+ # filters: [
5892
+ # {
5893
+ # name: "BotAliasId", # required, accepts BotAliasId, BotVersion, LocaleId, Modality, Channel, SessionId, OriginatingRequestId, IntentName, IntentEndState
5894
+ # operator: "EQ", # required, accepts EQ, GT, LT
5895
+ # values: ["AnalyticsFilterValue"], # required
5896
+ # },
5897
+ # ],
5898
+ # max_results: 1,
5899
+ # next_token: "NextToken",
5900
+ # })
5901
+ #
5902
+ # @example Response structure
5903
+ #
5904
+ # resp.bot_id #=> String
5905
+ # resp.results #=> Array
5906
+ # resp.results[0].bin_keys #=> Array
5907
+ # resp.results[0].bin_keys[0].name #=> String, one of "ConversationStartTime", "UtteranceTimestamp"
5908
+ # resp.results[0].bin_keys[0].value #=> Integer
5909
+ # resp.results[0].group_by_keys #=> Array
5910
+ # resp.results[0].group_by_keys[0].name #=> String, one of "IntentName", "IntentEndState", "IntentLevel"
5911
+ # resp.results[0].group_by_keys[0].value #=> String
5912
+ # resp.results[0].metrics_results #=> Array
5913
+ # resp.results[0].metrics_results[0].name #=> String, one of "Count", "Success", "Failure", "Switched", "Dropped"
5914
+ # resp.results[0].metrics_results[0].statistic #=> String, one of "Sum", "Avg", "Max"
5915
+ # resp.results[0].metrics_results[0].value #=> Float
5916
+ # resp.next_token #=> String
5917
+ #
5918
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListIntentMetrics AWS API Documentation
5919
+ #
5920
+ # @overload list_intent_metrics(params = {})
5921
+ # @param [Hash] params ({})
5922
+ def list_intent_metrics(params = {}, options = {})
5923
+ req = build_request(:list_intent_metrics, params)
5924
+ req.send_request(options)
5925
+ end
5926
+
5927
+ # Retrieves summary statistics for a path of intents that users take
5928
+ # over sessions with your bot. The following fields are required:
5929
+ #
5930
+ # * `startDateTime` and `endDateTime` – Define a time range for which
5931
+ # you want to retrieve results.
5932
+ #
5933
+ # * `intentPath` – Define an order of intents for which you want to
5934
+ # retrieve metrics. Separate intents in the path with a forward slash.
5935
+ # For example, populate the `intentPath` field with
5936
+ # `/BookCar/BookHotel` to see details about how many times users
5937
+ # invoked the `BookCar` and `BookHotel` intents in that order.
5938
+ #
5939
+ # Use the optional `filters` field to filter the results.
5940
+ #
5941
+ # @option params [required, String] :bot_id
5942
+ # The identifier for the bot for which you want to retrieve intent path
5943
+ # metrics.
5944
+ #
5945
+ # @option params [required, Time,DateTime,Date,Integer,String] :start_date_time
5946
+ # The date and time that marks the beginning of the range of time for
5947
+ # which you want to see intent path metrics.
5948
+ #
5949
+ # @option params [required, Time,DateTime,Date,Integer,String] :end_date_time
5950
+ # The date and time that marks the end of the range of time for which
5951
+ # you want to see intent path metrics.
5952
+ #
5953
+ # @option params [required, String] :intent_path
5954
+ # The intent path for which you want to retrieve metrics. Use a forward
5955
+ # slash to separate intents in the path. For example:
5956
+ #
5957
+ # * /BookCar
5958
+ #
5959
+ # * /BookCar/BookHotel
5960
+ #
5961
+ # * /BookHotel/BookCar
5962
+ #
5963
+ # @option params [Array<Types::AnalyticsPathFilter>] :filters
5964
+ # A list of objects, each describes a condition by which you want to
5965
+ # filter the results.
5966
+ #
5967
+ # @return [Types::ListIntentPathsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5968
+ #
5969
+ # * {Types::ListIntentPathsResponse#node_summaries #node_summaries} => Array&lt;Types::AnalyticsIntentNodeSummary&gt;
5970
+ #
5971
+ # @example Request syntax with placeholder values
5972
+ #
5973
+ # resp = client.list_intent_paths({
5974
+ # bot_id: "Id", # required
5975
+ # start_date_time: Time.now, # required
5976
+ # end_date_time: Time.now, # required
5977
+ # intent_path: "AnalyticsPath", # required
5978
+ # filters: [
5979
+ # {
5980
+ # name: "BotAliasId", # required, accepts BotAliasId, BotVersion, LocaleId, Modality, Channel
5981
+ # operator: "EQ", # required, accepts EQ, GT, LT
5982
+ # values: ["AnalyticsFilterValue"], # required
5983
+ # },
5984
+ # ],
5985
+ # })
5986
+ #
5987
+ # @example Response structure
5988
+ #
5989
+ # resp.node_summaries #=> Array
5990
+ # resp.node_summaries[0].intent_name #=> String
5991
+ # resp.node_summaries[0].intent_path #=> String
5992
+ # resp.node_summaries[0].intent_count #=> Integer
5993
+ # resp.node_summaries[0].intent_level #=> Integer
5994
+ # resp.node_summaries[0].node_type #=> String, one of "Inner", "Exit"
5995
+ #
5996
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListIntentPaths AWS API Documentation
5997
+ #
5998
+ # @overload list_intent_paths(params = {})
5999
+ # @param [Hash] params ({})
6000
+ def list_intent_paths(params = {}, options = {})
6001
+ req = build_request(:list_intent_paths, params)
6002
+ req.send_request(options)
6003
+ end
6004
+
6005
+ # Retrieves summary metrics for the stages within intents in your bot.
6006
+ # The following fields are required:
6007
+ #
6008
+ # * `metrics` – A list of [AnalyticsIntentStageMetric][1] objects. In
6009
+ # each object, use the `name` field to specify the metric to
6010
+ # calculate, the `statistic` field to specify whether to calculate the
6011
+ # `Sum`, `Average`, or `Max` number, and the `order` field to specify
6012
+ # whether to sort the results in `Ascending` or `Descending` order.
6013
+ #
6014
+ # * `startDateTime` and `endDateTime` – Define a time range for which
6015
+ # you want to retrieve results.
6016
+ #
6017
+ # Of the optional fields, you can organize the results in the following
6018
+ # ways:
6019
+ #
6020
+ # * Use the `filters` field to filter the results, the `groupBy` field
6021
+ # to specify categories by which to group the results, and the `binBy`
6022
+ # field to specify time intervals by which to group the results.
6023
+ #
6024
+ # * Use the `maxResults` field to limit the number of results to return
6025
+ # in a single response and the `nextToken` field to return the next
6026
+ # batch of results if the response does not return the full set of
6027
+ # results.
6028
+ #
6029
+ # Note that an `order` field exists in both `binBy` and `metrics`. You
6030
+ # can only specify one `order` in a given request.
6031
+ #
6032
+ #
6033
+ #
6034
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/APIReference/API_AnalyticsIntentStageMetric.html
6035
+ #
6036
+ # @option params [required, String] :bot_id
6037
+ # The identifier for the bot for which you want to retrieve intent stage
6038
+ # metrics.
6039
+ #
6040
+ # @option params [required, Time,DateTime,Date,Integer,String] :start_date_time
6041
+ # The date and time that marks the beginning of the range of time for
6042
+ # which you want to see intent stage metrics.
6043
+ #
6044
+ # @option params [required, Time,DateTime,Date,Integer,String] :end_date_time
6045
+ # The date and time that marks the end of the range of time for which
6046
+ # you want to see intent stage metrics.
6047
+ #
6048
+ # @option params [required, Array<Types::AnalyticsIntentStageMetric>] :metrics
6049
+ # A list of objects, each of which contains a metric you want to list,
6050
+ # the statistic for the metric you want to return, and the method by
6051
+ # which to organize the results.
6052
+ #
6053
+ # @option params [Array<Types::AnalyticsBinBySpecification>] :bin_by
6054
+ # A list of objects, each of which contains specifications for
6055
+ # organizing the results by time.
6056
+ #
6057
+ # @option params [Array<Types::AnalyticsIntentStageGroupBySpecification>] :group_by
6058
+ # A list of objects, each of which specifies how to group the results.
6059
+ # You can group by the following criteria:
6060
+ #
6061
+ # * `IntentStageName` – The name of the intent stage.
6062
+ #
6063
+ # * `SwitchedToIntent` – The intent to which the conversation was
6064
+ # switched (if any).
6065
+ #
6066
+ # @option params [Array<Types::AnalyticsIntentStageFilter>] :filters
6067
+ # A list of objects, each of which describes a condition by which you
6068
+ # want to filter the results.
6069
+ #
6070
+ # @option params [Integer] :max_results
6071
+ # The maximum number of results to return in each page of results. If
6072
+ # there are fewer results than the maximum page size, only the actual
6073
+ # number of results are returned.
6074
+ #
6075
+ # @option params [String] :next_token
6076
+ # If the response from the ListIntentStageMetrics operation contains
6077
+ # more results than specified in the maxResults parameter, a token is
6078
+ # returned in the response.
6079
+ #
6080
+ # Use the returned token in the nextToken parameter of a
6081
+ # ListIntentStageMetrics request to return the next page of results. For
6082
+ # a complete set of results, call the ListIntentStageMetrics operation
6083
+ # until the nextToken returned in the response is null.
6084
+ #
6085
+ # @return [Types::ListIntentStageMetricsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6086
+ #
6087
+ # * {Types::ListIntentStageMetricsResponse#bot_id #bot_id} => String
6088
+ # * {Types::ListIntentStageMetricsResponse#results #results} => Array&lt;Types::AnalyticsIntentStageResult&gt;
6089
+ # * {Types::ListIntentStageMetricsResponse#next_token #next_token} => String
6090
+ #
6091
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6092
+ #
6093
+ # @example Request syntax with placeholder values
6094
+ #
6095
+ # resp = client.list_intent_stage_metrics({
6096
+ # bot_id: "Id", # required
6097
+ # start_date_time: Time.now, # required
6098
+ # end_date_time: Time.now, # required
6099
+ # metrics: [ # required
6100
+ # {
6101
+ # name: "Count", # required, accepts Count, Success, Failed, Dropped, Retry
6102
+ # statistic: "Sum", # required, accepts Sum, Avg, Max
6103
+ # order: "Ascending", # accepts Ascending, Descending
6104
+ # },
6105
+ # ],
6106
+ # bin_by: [
6107
+ # {
6108
+ # name: "ConversationStartTime", # required, accepts ConversationStartTime, UtteranceTimestamp
6109
+ # interval: "OneHour", # required, accepts OneHour, OneDay
6110
+ # order: "Ascending", # accepts Ascending, Descending
6111
+ # },
6112
+ # ],
6113
+ # group_by: [
6114
+ # {
6115
+ # name: "IntentStageName", # required, accepts IntentStageName, SwitchedToIntent
6116
+ # },
6117
+ # ],
6118
+ # filters: [
6119
+ # {
6120
+ # name: "BotAliasId", # required, accepts BotAliasId, BotVersion, LocaleId, Modality, Channel, SessionId, OriginatingRequestId, IntentName, IntentStageName
6121
+ # operator: "EQ", # required, accepts EQ, GT, LT
6122
+ # values: ["AnalyticsFilterValue"], # required
6123
+ # },
6124
+ # ],
6125
+ # max_results: 1,
6126
+ # next_token: "NextToken",
6127
+ # })
6128
+ #
6129
+ # @example Response structure
6130
+ #
6131
+ # resp.bot_id #=> String
6132
+ # resp.results #=> Array
6133
+ # resp.results[0].bin_keys #=> Array
6134
+ # resp.results[0].bin_keys[0].name #=> String, one of "ConversationStartTime", "UtteranceTimestamp"
6135
+ # resp.results[0].bin_keys[0].value #=> Integer
6136
+ # resp.results[0].group_by_keys #=> Array
6137
+ # resp.results[0].group_by_keys[0].name #=> String, one of "IntentStageName", "SwitchedToIntent"
6138
+ # resp.results[0].group_by_keys[0].value #=> String
6139
+ # resp.results[0].metrics_results #=> Array
6140
+ # resp.results[0].metrics_results[0].name #=> String, one of "Count", "Success", "Failed", "Dropped", "Retry"
6141
+ # resp.results[0].metrics_results[0].statistic #=> String, one of "Sum", "Avg", "Max"
6142
+ # resp.results[0].metrics_results[0].value #=> Float
6143
+ # resp.next_token #=> String
6144
+ #
6145
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListIntentStageMetrics AWS API Documentation
6146
+ #
6147
+ # @overload list_intent_stage_metrics(params = {})
6148
+ # @param [Hash] params ({})
6149
+ def list_intent_stage_metrics(params = {}, options = {})
6150
+ req = build_request(:list_intent_stage_metrics, params)
6151
+ req.send_request(options)
6152
+ end
6153
+
5774
6154
  # Get a list of intents that meet the specified criteria.
5775
6155
  #
5776
6156
  # @option params [required, String] :bot_id
@@ -5944,6 +6324,267 @@ module Aws::LexModelsV2
5944
6324
  req.send_request(options)
5945
6325
  end
5946
6326
 
6327
+ # Retrieves a list of metadata for individual user sessions with your
6328
+ # bot. The `startDateTime` and `endDateTime` fields are required. These
6329
+ # fields define a time range for which you want to retrieve results. Of
6330
+ # the optional fields, you can organize the results in the following
6331
+ # ways:
6332
+ #
6333
+ # * Use the `filters` field to filter the results and the `sortBy` field
6334
+ # to specify the values by which to sort the results.
6335
+ #
6336
+ # * Use the `maxResults` field to limit the number of results to return
6337
+ # in a single response and the `nextToken` field to return the next
6338
+ # batch of results if the response does not return the full set of
6339
+ # results.
6340
+ #
6341
+ # @option params [required, String] :bot_id
6342
+ # The identifier for the bot for which you want to retrieve session
6343
+ # analytics.
6344
+ #
6345
+ # @option params [required, Time,DateTime,Date,Integer,String] :start_date_time
6346
+ # The date and time that marks the beginning of the range of time for
6347
+ # which you want to see session analytics.
6348
+ #
6349
+ # @option params [required, Time,DateTime,Date,Integer,String] :end_date_time
6350
+ # The date and time that marks the end of the range of time for which
6351
+ # you want to see session analytics.
6352
+ #
6353
+ # @option params [Types::SessionDataSortBy] :sort_by
6354
+ # An object specifying the measure and method by which to sort the
6355
+ # session analytics data.
6356
+ #
6357
+ # @option params [Array<Types::AnalyticsSessionFilter>] :filters
6358
+ # A list of objects, each of which describes a condition by which you
6359
+ # want to filter the results.
6360
+ #
6361
+ # @option params [Integer] :max_results
6362
+ # The maximum number of results to return in each page of results. If
6363
+ # there are fewer results than the maximum page size, only the actual
6364
+ # number of results are returned.
6365
+ #
6366
+ # @option params [String] :next_token
6367
+ # If the response from the ListSessionAnalyticsData operation contains
6368
+ # more results than specified in the maxResults parameter, a token is
6369
+ # returned in the response.
6370
+ #
6371
+ # Use the returned token in the nextToken parameter of a
6372
+ # ListSessionAnalyticsData request to return the next page of results.
6373
+ # For a complete set of results, call the ListSessionAnalyticsData
6374
+ # operation until the nextToken returned in the response is null.
6375
+ #
6376
+ # @return [Types::ListSessionAnalyticsDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6377
+ #
6378
+ # * {Types::ListSessionAnalyticsDataResponse#bot_id #bot_id} => String
6379
+ # * {Types::ListSessionAnalyticsDataResponse#next_token #next_token} => String
6380
+ # * {Types::ListSessionAnalyticsDataResponse#sessions #sessions} => Array&lt;Types::SessionSpecification&gt;
6381
+ #
6382
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6383
+ #
6384
+ # @example Request syntax with placeholder values
6385
+ #
6386
+ # resp = client.list_session_analytics_data({
6387
+ # bot_id: "Id", # required
6388
+ # start_date_time: Time.now, # required
6389
+ # end_date_time: Time.now, # required
6390
+ # sort_by: {
6391
+ # name: "ConversationStartTime", # required, accepts ConversationStartTime, NumberOfTurns, Duration
6392
+ # order: "Ascending", # required, accepts Ascending, Descending
6393
+ # },
6394
+ # filters: [
6395
+ # {
6396
+ # name: "BotAliasId", # required, accepts BotAliasId, BotVersion, LocaleId, Modality, Channel, Duration, ConversationEndState, SessionId, OriginatingRequestId, IntentPath
6397
+ # operator: "EQ", # required, accepts EQ, GT, LT
6398
+ # values: ["AnalyticsFilterValue"], # required
6399
+ # },
6400
+ # ],
6401
+ # max_results: 1,
6402
+ # next_token: "NextToken",
6403
+ # })
6404
+ #
6405
+ # @example Response structure
6406
+ #
6407
+ # resp.bot_id #=> String
6408
+ # resp.next_token #=> String
6409
+ # resp.sessions #=> Array
6410
+ # resp.sessions[0].bot_alias_id #=> String
6411
+ # resp.sessions[0].bot_version #=> String
6412
+ # resp.sessions[0].locale_id #=> String
6413
+ # resp.sessions[0].channel #=> String
6414
+ # resp.sessions[0].session_id #=> String
6415
+ # resp.sessions[0].conversation_start_time #=> Time
6416
+ # resp.sessions[0].conversation_end_time #=> Time
6417
+ # resp.sessions[0].conversation_duration_seconds #=> Integer
6418
+ # resp.sessions[0].conversation_end_state #=> String, one of "Success", "Failure", "Dropped"
6419
+ # resp.sessions[0].mode #=> String, one of "Speech", "Text", "DTMF", "MultiMode"
6420
+ # resp.sessions[0].number_of_turns #=> Integer
6421
+ # resp.sessions[0].invoked_intent_samples #=> Array
6422
+ # resp.sessions[0].invoked_intent_samples[0].intent_name #=> String
6423
+ # resp.sessions[0].originating_request_id #=> String
6424
+ #
6425
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListSessionAnalyticsData AWS API Documentation
6426
+ #
6427
+ # @overload list_session_analytics_data(params = {})
6428
+ # @param [Hash] params ({})
6429
+ def list_session_analytics_data(params = {}, options = {})
6430
+ req = build_request(:list_session_analytics_data, params)
6431
+ req.send_request(options)
6432
+ end
6433
+
6434
+ # Retrieves summary metrics for the user sessions with your bot. The
6435
+ # following fields are required:
6436
+ #
6437
+ # * `metrics` – A list of [AnalyticsSessionMetric][1] objects. In each
6438
+ # object, use the `name` field to specify the metric to calculate, the
6439
+ # `statistic` field to specify whether to calculate the `Sum`,
6440
+ # `Average`, or `Max` number, and the `order` field to specify whether
6441
+ # to sort the results in `Ascending` or `Descending` order.
6442
+ #
6443
+ # * `startDateTime` and `endDateTime` – Define a time range for which
6444
+ # you want to retrieve results.
6445
+ #
6446
+ # Of the optional fields, you can organize the results in the following
6447
+ # ways:
6448
+ #
6449
+ # * Use the `filters` field to filter the results, the `groupBy` field
6450
+ # to specify categories by which to group the results, and the `binBy`
6451
+ # field to specify time intervals by which to group the results.
6452
+ #
6453
+ # * Use the `maxResults` field to limit the number of results to return
6454
+ # in a single response and the `nextToken` field to return the next
6455
+ # batch of results if the response does not return the full set of
6456
+ # results.
6457
+ #
6458
+ # Note that an `order` field exists in both `binBy` and `metrics`.
6459
+ # Currently, you can specify it in either field, but not in both.
6460
+ #
6461
+ #
6462
+ #
6463
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/APIReference/API_AnalyticsSessionMetric.html
6464
+ #
6465
+ # @option params [required, String] :bot_id
6466
+ # The identifier for the bot for which you want to retrieve session
6467
+ # metrics.
6468
+ #
6469
+ # @option params [required, Time,DateTime,Date,Integer,String] :start_date_time
6470
+ # The date and time that marks the beginning of the range of time for
6471
+ # which you want to see session metrics.
6472
+ #
6473
+ # @option params [required, Time,DateTime,Date,Integer,String] :end_date_time
6474
+ # The date and time that marks the end of the range of time for which
6475
+ # you want to see session metrics.
6476
+ #
6477
+ # @option params [required, Array<Types::AnalyticsSessionMetric>] :metrics
6478
+ # A list of objects, each of which contains a metric you want to list,
6479
+ # the statistic for the metric you want to return, and the method by
6480
+ # which to organize the results.
6481
+ #
6482
+ # @option params [Array<Types::AnalyticsBinBySpecification>] :bin_by
6483
+ # A list of objects, each of which contains specifications for
6484
+ # organizing the results by time.
6485
+ #
6486
+ # @option params [Array<Types::AnalyticsSessionGroupBySpecification>] :group_by
6487
+ # A list of objects, each of which specifies how to group the results.
6488
+ # You can group by the following criteria:
6489
+ #
6490
+ # * `ConversationEndState` – The final state of the conversation. The
6491
+ # possible end states are detailed in [Key definitions][1] in the user
6492
+ # guide.
6493
+ #
6494
+ # * `LocaleId` – The unique identifier of the bot locale.
6495
+ #
6496
+ #
6497
+ #
6498
+ # [1]: https://docs.aws.amazon.com/analytics-key-definitions-conversations
6499
+ #
6500
+ # @option params [Array<Types::AnalyticsSessionFilter>] :filters
6501
+ # A list of objects, each of which describes a condition by which you
6502
+ # want to filter the results.
6503
+ #
6504
+ # @option params [Integer] :max_results
6505
+ # The maximum number of results to return in each page of results. If
6506
+ # there are fewer results than the maximum page size, only the actual
6507
+ # number of results are returned.
6508
+ #
6509
+ # @option params [String] :next_token
6510
+ # If the response from the ListSessionMetrics operation contains more
6511
+ # results than specified in the maxResults parameter, a token is
6512
+ # returned in the response.
6513
+ #
6514
+ # Use the returned token in the nextToken parameter of a
6515
+ # ListSessionMetrics request to return the next page of results. For a
6516
+ # complete set of results, call the ListSessionMetrics operation until
6517
+ # the nextToken returned in the response is null.
6518
+ #
6519
+ # @return [Types::ListSessionMetricsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6520
+ #
6521
+ # * {Types::ListSessionMetricsResponse#bot_id #bot_id} => String
6522
+ # * {Types::ListSessionMetricsResponse#results #results} => Array&lt;Types::AnalyticsSessionResult&gt;
6523
+ # * {Types::ListSessionMetricsResponse#next_token #next_token} => String
6524
+ #
6525
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6526
+ #
6527
+ # @example Request syntax with placeholder values
6528
+ #
6529
+ # resp = client.list_session_metrics({
6530
+ # bot_id: "Id", # required
6531
+ # start_date_time: Time.now, # required
6532
+ # end_date_time: Time.now, # required
6533
+ # metrics: [ # required
6534
+ # {
6535
+ # name: "Count", # required, accepts Count, Success, Failure, Dropped, Duration, TurnsPerConversation, Concurrency
6536
+ # statistic: "Sum", # required, accepts Sum, Avg, Max
6537
+ # order: "Ascending", # accepts Ascending, Descending
6538
+ # },
6539
+ # ],
6540
+ # bin_by: [
6541
+ # {
6542
+ # name: "ConversationStartTime", # required, accepts ConversationStartTime, UtteranceTimestamp
6543
+ # interval: "OneHour", # required, accepts OneHour, OneDay
6544
+ # order: "Ascending", # accepts Ascending, Descending
6545
+ # },
6546
+ # ],
6547
+ # group_by: [
6548
+ # {
6549
+ # name: "ConversationEndState", # required, accepts ConversationEndState, LocaleId
6550
+ # },
6551
+ # ],
6552
+ # filters: [
6553
+ # {
6554
+ # name: "BotAliasId", # required, accepts BotAliasId, BotVersion, LocaleId, Modality, Channel, Duration, ConversationEndState, SessionId, OriginatingRequestId, IntentPath
6555
+ # operator: "EQ", # required, accepts EQ, GT, LT
6556
+ # values: ["AnalyticsFilterValue"], # required
6557
+ # },
6558
+ # ],
6559
+ # max_results: 1,
6560
+ # next_token: "NextToken",
6561
+ # })
6562
+ #
6563
+ # @example Response structure
6564
+ #
6565
+ # resp.bot_id #=> String
6566
+ # resp.results #=> Array
6567
+ # resp.results[0].bin_keys #=> Array
6568
+ # resp.results[0].bin_keys[0].name #=> String, one of "ConversationStartTime", "UtteranceTimestamp"
6569
+ # resp.results[0].bin_keys[0].value #=> Integer
6570
+ # resp.results[0].group_by_keys #=> Array
6571
+ # resp.results[0].group_by_keys[0].name #=> String, one of "ConversationEndState", "LocaleId"
6572
+ # resp.results[0].group_by_keys[0].value #=> String
6573
+ # resp.results[0].metrics_results #=> Array
6574
+ # resp.results[0].metrics_results[0].name #=> String, one of "Count", "Success", "Failure", "Dropped", "Duration", "TurnsPerConversation", "Concurrency"
6575
+ # resp.results[0].metrics_results[0].statistic #=> String, one of "Sum", "Avg", "Max"
6576
+ # resp.results[0].metrics_results[0].value #=> Float
6577
+ # resp.next_token #=> String
6578
+ #
6579
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListSessionMetrics AWS API Documentation
6580
+ #
6581
+ # @overload list_session_metrics(params = {})
6582
+ # @param [Hash] params ({})
6583
+ def list_session_metrics(params = {}, options = {})
6584
+ req = build_request(:list_session_metrics, params)
6585
+ req.send_request(options)
6586
+ end
6587
+
5947
6588
  # Gets a list of slot types that match the specified criteria.
5948
6589
  #
5949
6590
  # @option params [required, String] :bot_id
@@ -6527,6 +7168,324 @@ module Aws::LexModelsV2
6527
7168
  req.send_request(options)
6528
7169
  end
6529
7170
 
7171
+ # <note markdown="1"> To use this API operation, your IAM role must have permissions to
7172
+ # perform the [ListAggregatedUtterances][1] operation, which provides
7173
+ # access to utterance-related analytics. See [Viewing utterance
7174
+ # statistics][2] for the IAM policy to apply to the IAM role.
7175
+ #
7176
+ # </note>
7177
+ #
7178
+ # Retrieves a list of metadata for individual user utterances to your
7179
+ # bot. The following fields are required:
7180
+ #
7181
+ # * `startDateTime` and `endDateTime` – Define a time range for which
7182
+ # you want to retrieve results.
7183
+ #
7184
+ # ^
7185
+ #
7186
+ # Of the optional fields, you can organize the results in the following
7187
+ # ways:
7188
+ #
7189
+ # * Use the `filters` field to filter the results and the `sortBy` field
7190
+ # to specify the values by which to sort the results.
7191
+ #
7192
+ # * Use the `maxResults` field to limit the number of results to return
7193
+ # in a single response and the `nextToken` field to return the next
7194
+ # batch of results if the response does not return the full set of
7195
+ # results.
7196
+ #
7197
+ #
7198
+ #
7199
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/APIReference/API_ListAggregatedUtterances.html
7200
+ # [2]: https://docs.aws.amazon.com/lexv2/latest/dg/monitoring-utterances.html
7201
+ #
7202
+ # @option params [required, String] :bot_id
7203
+ # The identifier for the bot for which you want to retrieve utterance
7204
+ # analytics.
7205
+ #
7206
+ # @option params [required, Time,DateTime,Date,Integer,String] :start_date_time
7207
+ # The date and time that marks the beginning of the range of time for
7208
+ # which you want to see utterance analytics.
7209
+ #
7210
+ # @option params [required, Time,DateTime,Date,Integer,String] :end_date_time
7211
+ # The date and time that marks the end of the range of time for which
7212
+ # you want to see utterance analytics.
7213
+ #
7214
+ # @option params [Types::UtteranceDataSortBy] :sort_by
7215
+ # An object specifying the measure and method by which to sort the
7216
+ # utterance analytics data.
7217
+ #
7218
+ # @option params [Array<Types::AnalyticsUtteranceFilter>] :filters
7219
+ # A list of objects, each of which describes a condition by which you
7220
+ # want to filter the results.
7221
+ #
7222
+ # @option params [Integer] :max_results
7223
+ # The maximum number of results to return in each page of results. If
7224
+ # there are fewer results than the maximum page size, only the actual
7225
+ # number of results are returned.
7226
+ #
7227
+ # @option params [String] :next_token
7228
+ # If the response from the ListUtteranceAnalyticsData operation contains
7229
+ # more results than specified in the maxResults parameter, a token is
7230
+ # returned in the response.
7231
+ #
7232
+ # Use the returned token in the nextToken parameter of a
7233
+ # ListUtteranceAnalyticsData request to return the next page of results.
7234
+ # For a complete set of results, call the ListUtteranceAnalyticsData
7235
+ # operation until the nextToken returned in the response is null.
7236
+ #
7237
+ # @return [Types::ListUtteranceAnalyticsDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7238
+ #
7239
+ # * {Types::ListUtteranceAnalyticsDataResponse#bot_id #bot_id} => String
7240
+ # * {Types::ListUtteranceAnalyticsDataResponse#next_token #next_token} => String
7241
+ # * {Types::ListUtteranceAnalyticsDataResponse#utterances #utterances} => Array&lt;Types::UtteranceSpecification&gt;
7242
+ #
7243
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7244
+ #
7245
+ # @example Request syntax with placeholder values
7246
+ #
7247
+ # resp = client.list_utterance_analytics_data({
7248
+ # bot_id: "Id", # required
7249
+ # start_date_time: Time.now, # required
7250
+ # end_date_time: Time.now, # required
7251
+ # sort_by: {
7252
+ # name: "UtteranceTimestamp", # required, accepts UtteranceTimestamp
7253
+ # order: "Ascending", # required, accepts Ascending, Descending
7254
+ # },
7255
+ # filters: [
7256
+ # {
7257
+ # name: "BotAliasId", # required, accepts BotAliasId, BotVersion, LocaleId, Modality, Channel, SessionId, OriginatingRequestId, UtteranceState, UtteranceText
7258
+ # operator: "EQ", # required, accepts EQ, GT, LT
7259
+ # values: ["AnalyticsFilterValue"], # required
7260
+ # },
7261
+ # ],
7262
+ # max_results: 1,
7263
+ # next_token: "NextToken",
7264
+ # })
7265
+ #
7266
+ # @example Response structure
7267
+ #
7268
+ # resp.bot_id #=> String
7269
+ # resp.next_token #=> String
7270
+ # resp.utterances #=> Array
7271
+ # resp.utterances[0].bot_alias_id #=> String
7272
+ # resp.utterances[0].bot_version #=> String
7273
+ # resp.utterances[0].locale_id #=> String
7274
+ # resp.utterances[0].session_id #=> String
7275
+ # resp.utterances[0].channel #=> String
7276
+ # resp.utterances[0].mode #=> String, one of "Speech", "Text", "DTMF", "MultiMode"
7277
+ # resp.utterances[0].conversation_start_time #=> Time
7278
+ # resp.utterances[0].conversation_end_time #=> Time
7279
+ # resp.utterances[0].utterance #=> String
7280
+ # resp.utterances[0].utterance_timestamp #=> Time
7281
+ # resp.utterances[0].audio_voice_duration_millis #=> Integer
7282
+ # resp.utterances[0].utterance_understood #=> Boolean
7283
+ # resp.utterances[0].input_type #=> String
7284
+ # resp.utterances[0].output_type #=> String
7285
+ # resp.utterances[0].associated_intent_name #=> String
7286
+ # resp.utterances[0].associated_slot_name #=> String
7287
+ # resp.utterances[0].intent_state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting", "FulfillmentInProgress"
7288
+ # resp.utterances[0].dialog_action_type #=> String
7289
+ # resp.utterances[0].bot_response_audio_voice_id #=> String
7290
+ # resp.utterances[0].slots_filled_in_session #=> String
7291
+ # resp.utterances[0].utterance_request_id #=> String
7292
+ # resp.utterances[0].bot_responses #=> Array
7293
+ # resp.utterances[0].bot_responses[0].content #=> String
7294
+ # resp.utterances[0].bot_responses[0].content_type #=> String, one of "PlainText", "CustomPayload", "SSML", "ImageResponseCard"
7295
+ # resp.utterances[0].bot_responses[0].image_response_card.title #=> String
7296
+ # resp.utterances[0].bot_responses[0].image_response_card.subtitle #=> String
7297
+ # resp.utterances[0].bot_responses[0].image_response_card.image_url #=> String
7298
+ # resp.utterances[0].bot_responses[0].image_response_card.buttons #=> Array
7299
+ # resp.utterances[0].bot_responses[0].image_response_card.buttons[0].text #=> String
7300
+ # resp.utterances[0].bot_responses[0].image_response_card.buttons[0].value #=> String
7301
+ #
7302
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListUtteranceAnalyticsData AWS API Documentation
7303
+ #
7304
+ # @overload list_utterance_analytics_data(params = {})
7305
+ # @param [Hash] params ({})
7306
+ def list_utterance_analytics_data(params = {}, options = {})
7307
+ req = build_request(:list_utterance_analytics_data, params)
7308
+ req.send_request(options)
7309
+ end
7310
+
7311
+ # <note markdown="1"> To use this API operation, your IAM role must have permissions to
7312
+ # perform the [ListAggregatedUtterances][1] operation, which provides
7313
+ # access to utterance-related analytics. See [Viewing utterance
7314
+ # statistics][2] for the IAM policy to apply to the IAM role.
7315
+ #
7316
+ # </note>
7317
+ #
7318
+ # Retrieves summary metrics for the utterances in your bot. The
7319
+ # following fields are required:
7320
+ #
7321
+ # * `metrics` – A list of [AnalyticsUtteranceMetric][3] objects. In each
7322
+ # object, use the `name` field to specify the metric to calculate, the
7323
+ # `statistic` field to specify whether to calculate the `Sum`,
7324
+ # `Average`, or `Max` number, and the `order` field to specify whether
7325
+ # to sort the results in `Ascending` or `Descending` order.
7326
+ #
7327
+ # * `startDateTime` and `endDateTime` – Define a time range for which
7328
+ # you want to retrieve results.
7329
+ #
7330
+ # Of the optional fields, you can organize the results in the following
7331
+ # ways:
7332
+ #
7333
+ # * Use the `filters` field to filter the results, the `groupBy` field
7334
+ # to specify categories by which to group the results, and the `binBy`
7335
+ # field to specify time intervals by which to group the results.
7336
+ #
7337
+ # * Use the `maxResults` field to limit the number of results to return
7338
+ # in a single response and the `nextToken` field to return the next
7339
+ # batch of results if the response does not return the full set of
7340
+ # results.
7341
+ #
7342
+ # Note that an `order` field exists in both `binBy` and `metrics`.
7343
+ # Currently, you can specify it in either field, but not in both.
7344
+ #
7345
+ #
7346
+ #
7347
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/APIReference/API_ListAggregatedUtterances.html
7348
+ # [2]: https://docs.aws.amazon.com/lexv2/latest/dg/monitoring-utterances.html
7349
+ # [3]: https://docs.aws.amazon.com/lexv2/latest/APIReference/API_AnalyticsUtteranceMetric.html
7350
+ #
7351
+ # @option params [required, String] :bot_id
7352
+ # The identifier for the bot for which you want to retrieve utterance
7353
+ # metrics.
7354
+ #
7355
+ # @option params [required, Time,DateTime,Date,Integer,String] :start_date_time
7356
+ # The date and time that marks the beginning of the range of time for
7357
+ # which you want to see utterance metrics.
7358
+ #
7359
+ # @option params [required, Time,DateTime,Date,Integer,String] :end_date_time
7360
+ # The date and time that marks the end of the range of time for which
7361
+ # you want to see utterance metrics.
7362
+ #
7363
+ # @option params [required, Array<Types::AnalyticsUtteranceMetric>] :metrics
7364
+ # A list of objects, each of which contains a metric you want to list,
7365
+ # the statistic for the metric you want to return, and the method by
7366
+ # which to organize the results.
7367
+ #
7368
+ # @option params [Array<Types::AnalyticsBinBySpecification>] :bin_by
7369
+ # A list of objects, each of which contains specifications for
7370
+ # organizing the results by time.
7371
+ #
7372
+ # @option params [Array<Types::AnalyticsUtteranceGroupBySpecification>] :group_by
7373
+ # A list of objects, each of which specifies how to group the results.
7374
+ # You can group by the following criteria:
7375
+ #
7376
+ # * `UtteranceText` – The transcription of the utterance.
7377
+ #
7378
+ # * `UtteranceState` – The state of the utterance. The possible states
7379
+ # are detailed in [Key definitions][1] in the user guide.
7380
+ #
7381
+ #
7382
+ #
7383
+ # [1]: https://docs.aws.amazon.com/analytics-key-definitions-utterances
7384
+ #
7385
+ # @option params [Array<Types::AnalyticsUtteranceAttribute>] :attributes
7386
+ # A list containing attributes related to the utterance that you want
7387
+ # the response to return. The following attributes are possible:
7388
+ #
7389
+ # * `LastUsedIntent` – The last used intent at the time of the
7390
+ # utterance.
7391
+ #
7392
+ # ^
7393
+ #
7394
+ # @option params [Array<Types::AnalyticsUtteranceFilter>] :filters
7395
+ # A list of objects, each of which describes a condition by which you
7396
+ # want to filter the results.
7397
+ #
7398
+ # @option params [Integer] :max_results
7399
+ # The maximum number of results to return in each page of results. If
7400
+ # there are fewer results than the maximum page size, only the actual
7401
+ # number of results are returned.
7402
+ #
7403
+ # @option params [String] :next_token
7404
+ # If the response from the ListUtteranceMetrics operation contains more
7405
+ # results than specified in the maxResults parameter, a token is
7406
+ # returned in the response.
7407
+ #
7408
+ # Use the returned token in the nextToken parameter of a
7409
+ # ListUtteranceMetrics request to return the next page of results. For a
7410
+ # complete set of results, call the ListUtteranceMetrics operation until
7411
+ # the nextToken returned in the response is null.
7412
+ #
7413
+ # @return [Types::ListUtteranceMetricsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7414
+ #
7415
+ # * {Types::ListUtteranceMetricsResponse#bot_id #bot_id} => String
7416
+ # * {Types::ListUtteranceMetricsResponse#results #results} => Array&lt;Types::AnalyticsUtteranceResult&gt;
7417
+ # * {Types::ListUtteranceMetricsResponse#next_token #next_token} => String
7418
+ #
7419
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7420
+ #
7421
+ # @example Request syntax with placeholder values
7422
+ #
7423
+ # resp = client.list_utterance_metrics({
7424
+ # bot_id: "Id", # required
7425
+ # start_date_time: Time.now, # required
7426
+ # end_date_time: Time.now, # required
7427
+ # metrics: [ # required
7428
+ # {
7429
+ # name: "Count", # required, accepts Count, Missed, Detected, UtteranceTimestamp
7430
+ # statistic: "Sum", # required, accepts Sum, Avg, Max
7431
+ # order: "Ascending", # accepts Ascending, Descending
7432
+ # },
7433
+ # ],
7434
+ # bin_by: [
7435
+ # {
7436
+ # name: "ConversationStartTime", # required, accepts ConversationStartTime, UtteranceTimestamp
7437
+ # interval: "OneHour", # required, accepts OneHour, OneDay
7438
+ # order: "Ascending", # accepts Ascending, Descending
7439
+ # },
7440
+ # ],
7441
+ # group_by: [
7442
+ # {
7443
+ # name: "UtteranceText", # required, accepts UtteranceText, UtteranceState
7444
+ # },
7445
+ # ],
7446
+ # attributes: [
7447
+ # {
7448
+ # name: "LastUsedIntent", # required, accepts LastUsedIntent
7449
+ # },
7450
+ # ],
7451
+ # filters: [
7452
+ # {
7453
+ # name: "BotAliasId", # required, accepts BotAliasId, BotVersion, LocaleId, Modality, Channel, SessionId, OriginatingRequestId, UtteranceState, UtteranceText
7454
+ # operator: "EQ", # required, accepts EQ, GT, LT
7455
+ # values: ["AnalyticsFilterValue"], # required
7456
+ # },
7457
+ # ],
7458
+ # max_results: 1,
7459
+ # next_token: "NextToken",
7460
+ # })
7461
+ #
7462
+ # @example Response structure
7463
+ #
7464
+ # resp.bot_id #=> String
7465
+ # resp.results #=> Array
7466
+ # resp.results[0].bin_keys #=> Array
7467
+ # resp.results[0].bin_keys[0].name #=> String, one of "ConversationStartTime", "UtteranceTimestamp"
7468
+ # resp.results[0].bin_keys[0].value #=> Integer
7469
+ # resp.results[0].group_by_keys #=> Array
7470
+ # resp.results[0].group_by_keys[0].name #=> String, one of "UtteranceText", "UtteranceState"
7471
+ # resp.results[0].group_by_keys[0].value #=> String
7472
+ # resp.results[0].metrics_results #=> Array
7473
+ # resp.results[0].metrics_results[0].name #=> String, one of "Count", "Missed", "Detected", "UtteranceTimestamp"
7474
+ # resp.results[0].metrics_results[0].statistic #=> String, one of "Sum", "Avg", "Max"
7475
+ # resp.results[0].metrics_results[0].value #=> Float
7476
+ # resp.results[0].attribute_results #=> Array
7477
+ # resp.results[0].attribute_results[0].last_used_intent #=> String
7478
+ # resp.next_token #=> String
7479
+ #
7480
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListUtteranceMetrics AWS API Documentation
7481
+ #
7482
+ # @overload list_utterance_metrics(params = {})
7483
+ # @param [Hash] params ({})
7484
+ def list_utterance_metrics(params = {}, options = {})
7485
+ req = build_request(:list_utterance_metrics, params)
7486
+ req.send_request(options)
7487
+ end
7488
+
6530
7489
  # Search for associated transcripts that meet the specified criteria.
6531
7490
  #
6532
7491
  # @option params [required, String] :bot_id
@@ -8757,7 +9716,7 @@ module Aws::LexModelsV2
8757
9716
  params: params,
8758
9717
  config: config)
8759
9718
  context[:gem_name] = 'aws-sdk-lexmodelsv2'
8760
- context[:gem_version] = '1.38.0'
9719
+ context[:gem_version] = '1.40.0'
8761
9720
  Seahorse::Client::Request.new(handlers, context)
8762
9721
  end
8763
9722