List Session Analytics Data
lexmodelsv2_list_session_analytics_data | R Documentation |
Retrieves a list of metadata for individual user sessions with your bot¶
Description¶
Retrieves a list of metadata for individual user sessions with your bot.
The startDateTime
and endDateTime
fields are required. These fields
define a time range for which you want to retrieve results. Of the
optional fields, you can organize the results in the following ways:
-
Use the
filters
field to filter the results and thesortBy
field to specify the values by which to sort the results. -
Use the
maxResults
field to limit the number of results to return in a single response and thenextToken
field to return the next batch of results if the response does not return the full set of results.
Usage¶
lexmodelsv2_list_session_analytics_data(botId, startDateTime,
endDateTime, sortBy, filters, maxResults, nextToken)
Arguments¶
botId |
[required] The identifier for the bot for which you want to retrieve session analytics. |
startDateTime |
[required] The date and time that marks the beginning of the range of time for which you want to see session analytics. |
endDateTime |
[required] The date and time that marks the end of the range of time for which you want to see session analytics. |
sortBy |
An object specifying the measure and method by which to sort the session analytics data. |
filters |
A list of objects, each of which describes a condition by which you want to filter the results. |
maxResults |
The maximum number of results to return in each page of results. If there are fewer results than the maximum page size, only the actual number of results are returned. |
nextToken |
If the response from the ListSessionAnalyticsData operation contains more results than specified in the maxResults parameter, a token is returned in the response. Use the returned token in the nextToken parameter of a ListSessionAnalyticsData request to return the next page of results. For a complete set of results, call the ListSessionAnalyticsData operation until the nextToken returned in the response is null. |
Value¶
A list with the following syntax:
list(
botId = "string",
nextToken = "string",
sessions = list(
list(
botAliasId = "string",
botVersion = "string",
localeId = "string",
channel = "string",
sessionId = "string",
conversationStartTime = as.POSIXct(
"2015-01-01"
),
conversationEndTime = as.POSIXct(
"2015-01-01"
),
conversationDurationSeconds = 123,
conversationEndState = "Success"|"Failure"|"Dropped",
mode = "Speech"|"Text"|"DTMF"|"MultiMode",
numberOfTurns = 123,
invokedIntentSamples = list(
list(
intentName = "string"
)
),
originatingRequestId = "string"
)
)
)
Request syntax¶
svc$list_session_analytics_data(
botId = "string",
startDateTime = as.POSIXct(
"2015-01-01"
),
endDateTime = as.POSIXct(
"2015-01-01"
),
sortBy = list(
name = "ConversationStartTime"|"NumberOfTurns"|"Duration",
order = "Ascending"|"Descending"
),
filters = list(
list(
name = "BotAliasId"|"BotVersion"|"LocaleId"|"Modality"|"Channel"|"Duration"|"ConversationEndState"|"SessionId"|"OriginatingRequestId"|"IntentPath",
operator = "EQ"|"GT"|"LT",
values = list(
"string"
)
)
),
maxResults = 123,
nextToken = "string"
)