Skip to content

Commit 698c9b9

Browse files
This release adds support for Lex Developers to view analytics for their bots.
1 parent 1a757b7 commit 698c9b9

File tree

127 files changed

+24925
-454
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+24925
-454
lines changed

generator/ServiceModels/models.lex.v2/models.lex.v2-2020-08-07.api.json

Lines changed: 1153 additions & 24 deletions
Large diffs are not rendered by default.

generator/ServiceModels/models.lex.v2/models.lex.v2-2020-08-07.docs.json

Lines changed: 860 additions & 9 deletions
Large diffs are not rendered by default.

generator/ServiceModels/models.lex.v2/models.lex.v2-2020-08-07.normal.json

Lines changed: 1790 additions & 53 deletions
Large diffs are not rendered by default.

generator/ServiceModels/models.lex.v2/models.lex.v2-2020-08-07.paginators.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@
5555
"output_token": "nextToken",
5656
"limit_key": "maxResults"
5757
},
58+
"ListIntentMetrics": {
59+
"input_token": "nextToken",
60+
"output_token": "nextToken",
61+
"limit_key": "maxResults"
62+
},
63+
"ListIntentStageMetrics": {
64+
"input_token": "nextToken",
65+
"output_token": "nextToken",
66+
"limit_key": "maxResults"
67+
},
5868
"ListIntents": {
5969
"input_token": "nextToken",
6070
"output_token": "nextToken",
@@ -65,6 +75,16 @@
6575
"output_token": "nextToken",
6676
"limit_key": "maxResults"
6777
},
78+
"ListSessionAnalyticsData": {
79+
"input_token": "nextToken",
80+
"output_token": "nextToken",
81+
"limit_key": "maxResults"
82+
},
83+
"ListSessionMetrics": {
84+
"input_token": "nextToken",
85+
"output_token": "nextToken",
86+
"limit_key": "maxResults"
87+
},
6888
"ListSlotTypes": {
6989
"input_token": "nextToken",
7090
"output_token": "nextToken",
@@ -94,6 +114,16 @@
94114
"input_token": "nextToken",
95115
"output_token": "nextToken",
96116
"limit_key": "maxResults"
117+
},
118+
"ListUtteranceAnalyticsData": {
119+
"input_token": "nextToken",
120+
"output_token": "nextToken",
121+
"limit_key": "maxResults"
122+
},
123+
"ListUtteranceMetrics": {
124+
"input_token": "nextToken",
125+
"output_token": "nextToken",
126+
"limit_key": "maxResults"
97127
}
98128
}
99129
}

sdk/code-analysis/ServiceAnalysis/LexModelsV2/Generated/PropertyValueRules.xml

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,6 +1596,34 @@
15961596
<max>5</max>
15971597
<pattern>^DRAFT$</pattern>
15981598
</property-value-rule>
1599+
<property-value-rule>
1600+
<property>Amazon.LexModelsV2.Model.ListIntentMetricsRequest.BotId</property>
1601+
<min>10</min>
1602+
<max>10</max>
1603+
<pattern>^[0-9a-zA-Z]+$</pattern>
1604+
</property-value-rule>
1605+
<property-value-rule>
1606+
<property>Amazon.LexModelsV2.Model.ListIntentMetricsRequest.MaxResults</property>
1607+
<min>1</min>
1608+
<max>1000</max>
1609+
</property-value-rule>
1610+
<property-value-rule>
1611+
<property>Amazon.LexModelsV2.Model.ListIntentMetricsResponse.BotId</property>
1612+
<min>10</min>
1613+
<max>10</max>
1614+
<pattern>^[0-9a-zA-Z]+$</pattern>
1615+
</property-value-rule>
1616+
<property-value-rule>
1617+
<property>Amazon.LexModelsV2.Model.ListIntentPathsRequest.BotId</property>
1618+
<min>10</min>
1619+
<max>10</max>
1620+
<pattern>^[0-9a-zA-Z]+$</pattern>
1621+
</property-value-rule>
1622+
<property-value-rule>
1623+
<property>Amazon.LexModelsV2.Model.ListIntentPathsRequest.IntentPath</property>
1624+
<min>1</min>
1625+
<max>1024</max>
1626+
</property-value-rule>
15991627
<property-value-rule>
16001628
<property>Amazon.LexModelsV2.Model.ListIntentsRequest.BotId</property>
16011629
<min>10</min>
@@ -1625,6 +1653,23 @@
16251653
<max>5</max>
16261654
<pattern>^(DRAFT|[0-9]+)$</pattern>
16271655
</property-value-rule>
1656+
<property-value-rule>
1657+
<property>Amazon.LexModelsV2.Model.ListIntentStageMetricsRequest.BotId</property>
1658+
<min>10</min>
1659+
<max>10</max>
1660+
<pattern>^[0-9a-zA-Z]+$</pattern>
1661+
</property-value-rule>
1662+
<property-value-rule>
1663+
<property>Amazon.LexModelsV2.Model.ListIntentStageMetricsRequest.MaxResults</property>
1664+
<min>1</min>
1665+
<max>1000</max>
1666+
</property-value-rule>
1667+
<property-value-rule>
1668+
<property>Amazon.LexModelsV2.Model.ListIntentStageMetricsResponse.BotId</property>
1669+
<min>10</min>
1670+
<max>10</max>
1671+
<pattern>^[0-9a-zA-Z]+$</pattern>
1672+
</property-value-rule>
16281673
<property-value-rule>
16291674
<property>Amazon.LexModelsV2.Model.ListRecommendedIntentsRequest.BotId</property>
16301675
<min>10</min>
@@ -1666,6 +1711,40 @@
16661711
<max>5</max>
16671712
<pattern>^DRAFT$</pattern>
16681713
</property-value-rule>
1714+
<property-value-rule>
1715+
<property>Amazon.LexModelsV2.Model.ListSessionAnalyticsDataRequest.BotId</property>
1716+
<min>10</min>
1717+
<max>10</max>
1718+
<pattern>^[0-9a-zA-Z]+$</pattern>
1719+
</property-value-rule>
1720+
<property-value-rule>
1721+
<property>Amazon.LexModelsV2.Model.ListSessionAnalyticsDataRequest.MaxResults</property>
1722+
<min>1</min>
1723+
<max>1000</max>
1724+
</property-value-rule>
1725+
<property-value-rule>
1726+
<property>Amazon.LexModelsV2.Model.ListSessionAnalyticsDataResponse.BotId</property>
1727+
<min>10</min>
1728+
<max>10</max>
1729+
<pattern>^[0-9a-zA-Z]+$</pattern>
1730+
</property-value-rule>
1731+
<property-value-rule>
1732+
<property>Amazon.LexModelsV2.Model.ListSessionMetricsRequest.BotId</property>
1733+
<min>10</min>
1734+
<max>10</max>
1735+
<pattern>^[0-9a-zA-Z]+$</pattern>
1736+
</property-value-rule>
1737+
<property-value-rule>
1738+
<property>Amazon.LexModelsV2.Model.ListSessionMetricsRequest.MaxResults</property>
1739+
<min>1</min>
1740+
<max>1000</max>
1741+
</property-value-rule>
1742+
<property-value-rule>
1743+
<property>Amazon.LexModelsV2.Model.ListSessionMetricsResponse.BotId</property>
1744+
<min>10</min>
1745+
<max>10</max>
1746+
<pattern>^[0-9a-zA-Z]+$</pattern>
1747+
</property-value-rule>
16691748
<property-value-rule>
16701749
<property>Amazon.LexModelsV2.Model.ListSlotsRequest.BotId</property>
16711750
<min>10</min>
@@ -1773,6 +1852,40 @@
17731852
<min>1</min>
17741853
<max>1000</max>
17751854
</property-value-rule>
1855+
<property-value-rule>
1856+
<property>Amazon.LexModelsV2.Model.ListUtteranceAnalyticsDataRequest.BotId</property>
1857+
<min>10</min>
1858+
<max>10</max>
1859+
<pattern>^[0-9a-zA-Z]+$</pattern>
1860+
</property-value-rule>
1861+
<property-value-rule>
1862+
<property>Amazon.LexModelsV2.Model.ListUtteranceAnalyticsDataRequest.MaxResults</property>
1863+
<min>1</min>
1864+
<max>1000</max>
1865+
</property-value-rule>
1866+
<property-value-rule>
1867+
<property>Amazon.LexModelsV2.Model.ListUtteranceAnalyticsDataResponse.BotId</property>
1868+
<min>10</min>
1869+
<max>10</max>
1870+
<pattern>^[0-9a-zA-Z]+$</pattern>
1871+
</property-value-rule>
1872+
<property-value-rule>
1873+
<property>Amazon.LexModelsV2.Model.ListUtteranceMetricsRequest.BotId</property>
1874+
<min>10</min>
1875+
<max>10</max>
1876+
<pattern>^[0-9a-zA-Z]+$</pattern>
1877+
</property-value-rule>
1878+
<property-value-rule>
1879+
<property>Amazon.LexModelsV2.Model.ListUtteranceMetricsRequest.MaxResults</property>
1880+
<min>1</min>
1881+
<max>1000</max>
1882+
</property-value-rule>
1883+
<property-value-rule>
1884+
<property>Amazon.LexModelsV2.Model.ListUtteranceMetricsResponse.BotId</property>
1885+
<min>10</min>
1886+
<max>10</max>
1887+
<pattern>^[0-9a-zA-Z]+$</pattern>
1888+
</property-value-rule>
17761889
<property-value-rule>
17771890
<property>Amazon.LexModelsV2.Model.SearchAssociatedTranscriptsRequest.BotId</property>
17781891
<min>10</min>
@@ -2488,6 +2601,28 @@
24882601
<min>1</min>
24892602
<max>1024</max>
24902603
</property-value-rule>
2604+
<property-value-rule>
2605+
<property>Amazon.LexModelsV2.Model.AnalyticsIntentNodeSummary.IntentLevel</property>
2606+
<min>0</min>
2607+
<max>100</max>
2608+
</property-value-rule>
2609+
<property-value-rule>
2610+
<property>Amazon.LexModelsV2.Model.AnalyticsIntentNodeSummary.IntentName</property>
2611+
<min>1</min>
2612+
<max>100</max>
2613+
<pattern>^([0-9a-zA-Z][_-]?){1,100}$</pattern>
2614+
</property-value-rule>
2615+
<property-value-rule>
2616+
<property>Amazon.LexModelsV2.Model.AnalyticsIntentNodeSummary.IntentPath</property>
2617+
<min>1</min>
2618+
<max>1024</max>
2619+
</property-value-rule>
2620+
<property-value-rule>
2621+
<property>Amazon.LexModelsV2.Model.AnalyticsUtteranceAttributeResult.LastUsedIntent</property>
2622+
<min>1</min>
2623+
<max>100</max>
2624+
<pattern>^([0-9a-zA-Z][_-]?){1,100}$</pattern>
2625+
</property-value-rule>
24912626
<property-value-rule>
24922627
<property>Amazon.LexModelsV2.Model.AssociatedTranscript.Transcript</property>
24932628
<min>1</min>
@@ -3009,6 +3144,12 @@
30093144
<max>100</max>
30103145
<pattern>^([0-9a-zA-Z][_-]?){1,100}$</pattern>
30113146
</property-value-rule>
3147+
<property-value-rule>
3148+
<property>Amazon.LexModelsV2.Model.InvokedIntentSample.IntentName</property>
3149+
<min>1</min>
3150+
<max>100</max>
3151+
<pattern>^([0-9a-zA-Z][_-]?){1,100}$</pattern>
3152+
</property-value-rule>
30123153
<property-value-rule>
30133154
<property>Amazon.LexModelsV2.Model.KendraConfiguration.KendraIndex</property>
30143155
<min>32</min>
@@ -3151,6 +3292,22 @@
31513292
<min>1</min>
31523293
<max>140</max>
31533294
</property-value-rule>
3295+
<property-value-rule>
3296+
<property>Amazon.LexModelsV2.Model.SessionSpecification.BotAliasId</property>
3297+
<min>10</min>
3298+
<max>10</max>
3299+
<pattern>^(\bTSTALIASID\b|[0-9a-zA-Z]+)$</pattern>
3300+
</property-value-rule>
3301+
<property-value-rule>
3302+
<property>Amazon.LexModelsV2.Model.SessionSpecification.BotVersion</property>
3303+
<min>1</min>
3304+
<max>5</max>
3305+
<pattern>^[0-9]+$</pattern>
3306+
</property-value-rule>
3307+
<property-value-rule>
3308+
<property>Amazon.LexModelsV2.Model.SessionSpecification.SessionId</property>
3309+
<pattern>[0-9a-zA-Z._:-]</pattern>
3310+
</property-value-rule>
31543311
<property-value-rule>
31553312
<property>Amazon.LexModelsV2.Model.SlotDefaultValue.DefaultValue</property>
31563313
<min>1</min>
@@ -3440,4 +3597,38 @@
34403597
<min>1</min>
34413598
<max>200000</max>
34423599
</property-value-rule>
3600+
<property-value-rule>
3601+
<property>Amazon.LexModelsV2.Model.UtteranceSpecification.AssociatedIntentName</property>
3602+
<min>1</min>
3603+
<max>100</max>
3604+
<pattern>^([0-9a-zA-Z][_-]?){1,100}$</pattern>
3605+
</property-value-rule>
3606+
<property-value-rule>
3607+
<property>Amazon.LexModelsV2.Model.UtteranceSpecification.AssociatedSlotName</property>
3608+
<min>1</min>
3609+
<max>100</max>
3610+
<pattern>^([0-9a-zA-Z][_-]?){1,100}$</pattern>
3611+
</property-value-rule>
3612+
<property-value-rule>
3613+
<property>Amazon.LexModelsV2.Model.UtteranceSpecification.BotAliasId</property>
3614+
<min>10</min>
3615+
<max>10</max>
3616+
<pattern>^(\bTSTALIASID\b|[0-9a-zA-Z]+)$</pattern>
3617+
</property-value-rule>
3618+
<property-value-rule>
3619+
<property>Amazon.LexModelsV2.Model.UtteranceSpecification.BotVersion</property>
3620+
<min>1</min>
3621+
<max>5</max>
3622+
<pattern>^[0-9]+$</pattern>
3623+
</property-value-rule>
3624+
<property-value-rule>
3625+
<property>Amazon.LexModelsV2.Model.UtteranceSpecification.SessionId</property>
3626+
<pattern>[0-9a-zA-Z._:-]</pattern>
3627+
</property-value-rule>
3628+
<property-value-rule>
3629+
<property>Amazon.LexModelsV2.Model.UtteranceSpecification.UtteranceRequestId</property>
3630+
<min>10</min>
3631+
<max>10</max>
3632+
<pattern>^[0-9a-zA-Z]+$</pattern>
3633+
</property-value-rule>
34433634
</property-value-rules>
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the models.lex.v2-2020-08-07.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Xml.Serialization;
22+
using System.Text;
23+
using System.IO;
24+
using System.Net;
25+
26+
using Amazon.Runtime;
27+
using Amazon.Runtime.Internal;
28+
29+
namespace Amazon.LexModelsV2.Model
30+
{
31+
/// <summary>
32+
/// Contains the time metric, interval, and method by which to bin the analytics data.
33+
/// </summary>
34+
public partial class AnalyticsBinBySpecification
35+
{
36+
private AnalyticsInterval _interval;
37+
private AnalyticsBinByName _name;
38+
private AnalyticsSortOrder _order;
39+
40+
/// <summary>
41+
/// Gets and sets the property Interval.
42+
/// <para>
43+
/// Specifies the interval of time by which to bin the analytics data.
44+
/// </para>
45+
/// </summary>
46+
[AWSProperty(Required=true)]
47+
public AnalyticsInterval Interval
48+
{
49+
get { return this._interval; }
50+
set { this._interval = value; }
51+
}
52+
53+
// Check to see if Interval property is set
54+
internal bool IsSetInterval()
55+
{
56+
return this._interval != null;
57+
}
58+
59+
/// <summary>
60+
/// Gets and sets the property Name.
61+
/// <para>
62+
/// Specifies the time metric by which to bin the analytics data.
63+
/// </para>
64+
/// </summary>
65+
[AWSProperty(Required=true)]
66+
public AnalyticsBinByName Name
67+
{
68+
get { return this._name; }
69+
set { this._name = value; }
70+
}
71+
72+
// Check to see if Name property is set
73+
internal bool IsSetName()
74+
{
75+
return this._name != null;
76+
}
77+
78+
/// <summary>
79+
/// Gets and sets the property Order.
80+
/// <para>
81+
/// Specifies whether to bin the analytics data in ascending or descending order. If this
82+
/// field is left blank, the default order is by the key of the bin in descending order.
83+
/// </para>
84+
/// </summary>
85+
public AnalyticsSortOrder Order
86+
{
87+
get { return this._order; }
88+
set { this._order = value; }
89+
}
90+
91+
// Check to see if Order property is set
92+
internal bool IsSetOrder()
93+
{
94+
return this._order != null;
95+
}
96+
97+
}
98+
}

0 commit comments

Comments
 (0)