Skip to content

/AWS1/CL_LM2=>LISTINTENTSTAGEMETRICS()

About ListIntentStageMetrics

Retrieves summary metrics for the stages within intents in your bot. The following fields are required:

  • metrics – A list of AnalyticsIntentStageMetric objects. In each object, use the name field to specify the metric to calculate, the statistic field to specify whether to calculate the Sum, Average, or Max number, and the order field to specify whether to sort the results in Ascending or Descending order.

  • startDateTime and endDateTime – 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, the groupBy field to specify categories by which to group the results, and the binBy field to specify time intervals by which to group the results.

  • Use the maxResults field to limit the number of results to return in a single response and the nextToken field to return the next batch of results if the response does not return the full set of results.

Note that an order field exists in both binBy and metrics. You can only specify one order in a given request.

Method Signature

IMPORTING

Required arguments:

IV_BOTID TYPE /AWS1/LM2ID /AWS1/LM2ID

The identifier for the bot for which you want to retrieve intent stage metrics.

IV_STARTDATETIME TYPE /AWS1/LM2TIMESTAMP /AWS1/LM2TIMESTAMP

The date and time that marks the beginning of the range of time for which you want to see intent stage metrics.

IV_ENDDATETIME TYPE /AWS1/LM2TIMESTAMP /AWS1/LM2TIMESTAMP

The date and time that marks the end of the range of time for which you want to see intent stage metrics.

IT_METRICS TYPE /AWS1/CL_LM2ALYSINTENTSTAGEM00=>TT_ANALYTICSINTENTSTAGEMETRICS TT_ANALYTICSINTENTSTAGEMETRICS

A list of objects, each of which contains a metric you want to list, the statistic for the metric you want to return, and the method by which to organize the results.

Optional arguments:

IT_BINBY TYPE /AWS1/CL_LM2ANALYTICSBINBYSPEC=>TT_ANALYTICSBINBYLIST TT_ANALYTICSBINBYLIST

A list of objects, each of which contains specifications for organizing the results by time.

IT_GROUPBY TYPE /AWS1/CL_LM2ALYSINTENTSTAGEG00=>TT_ALYSINTENTSTAGEGROUPBYLIST TT_ALYSINTENTSTAGEGROUPBYLIST

A list of objects, each of which specifies how to group the results. You can group by the following criteria:

  • IntentStageName – The name of the intent stage.

  • SwitchedToIntent – The intent to which the conversation was switched (if any).

IT_FILTERS TYPE /AWS1/CL_LM2ALYSINTENTSTAGEF00=>TT_ANALYTICSINTENTSTAGEFILTERS TT_ANALYTICSINTENTSTAGEFILTERS

A list of objects, each of which describes a condition by which you want to filter the results.

IV_MAXRESULTS TYPE /AWS1/LM2MAXRESULTS /AWS1/LM2MAXRESULTS

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.

IV_NEXTTOKEN TYPE /AWS1/LM2NEXTTOKEN /AWS1/LM2NEXTTOKEN

If the response from the ListIntentStageMetrics 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 ListIntentStageMetrics request to return the next page of results. For a complete set of results, call the ListIntentStageMetrics operation until the nextToken returned in the response is null.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_LM2LSTINTENTSTAGEME01 /AWS1/CL_LM2LSTINTENTSTAGEME01