Skip to content

Commit c638b11

Browse files
This release adds a new API GetContactMetrics for Amazon Connect.
1 parent ee761a7 commit c638b11

File tree

59 files changed

+3471
-887
lines changed

Some content is hidden

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

59 files changed

+3471
-887
lines changed

generator/ServiceModels/connect/connect-2017-08-08.api.json

Lines changed: 80 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2027,6 +2027,23 @@
20272027
{"shape":"InternalServiceException"}
20282028
]
20292029
},
2030+
"GetContactMetrics":{
2031+
"name":"GetContactMetrics",
2032+
"http":{
2033+
"method":"POST",
2034+
"requestUri":"/metrics/contact"
2035+
},
2036+
"input":{"shape":"GetContactMetricsRequest"},
2037+
"output":{"shape":"GetContactMetricsResponse"},
2038+
"errors":[
2039+
{"shape":"InvalidRequestException"},
2040+
{"shape":"InvalidParameterException"},
2041+
{"shape":"ResourceNotFoundException"},
2042+
{"shape":"ThrottlingException"},
2043+
{"shape":"AccessDeniedException"},
2044+
{"shape":"InternalServiceException"}
2045+
]
2046+
},
20302047
"GetCurrentMetricData":{
20312048
"name":"GetCurrentMetricData",
20322049
"http":{
@@ -5912,7 +5929,8 @@
59125929
"CommonAttributeAndCondition":{
59135930
"type":"structure",
59145931
"members":{
5915-
"TagConditions":{"shape":"TagAndConditionList"}
5932+
"TagConditions":{"shape":"TagAndConditionList"},
5933+
"HierarchyGroupCondition":{"shape":"HierarchyGroupCondition"}
59165934
}
59175935
},
59185936
"CommonAttributeOrConditionList":{
@@ -6360,6 +6378,44 @@
63606378
"FLOW"
63616379
]
63626380
},
6381+
"ContactMetricInfo":{
6382+
"type":"structure",
6383+
"required":["Name"],
6384+
"members":{
6385+
"Name":{"shape":"ContactMetricName"}
6386+
}
6387+
},
6388+
"ContactMetricName":{
6389+
"type":"string",
6390+
"enum":["POSITION_IN_QUEUE"]
6391+
},
6392+
"ContactMetricResult":{
6393+
"type":"structure",
6394+
"required":[
6395+
"Name",
6396+
"Value"
6397+
],
6398+
"members":{
6399+
"Name":{"shape":"ContactMetricName"},
6400+
"Value":{"shape":"ContactMetricValue"}
6401+
}
6402+
},
6403+
"ContactMetricResults":{
6404+
"type":"list",
6405+
"member":{"shape":"ContactMetricResult"}
6406+
},
6407+
"ContactMetricValue":{
6408+
"type":"structure",
6409+
"members":{
6410+
"Number":{"shape":"Double"}
6411+
},
6412+
"union":true
6413+
},
6414+
"ContactMetrics":{
6415+
"type":"list",
6416+
"member":{"shape":"ContactMetricInfo"},
6417+
"min":1
6418+
},
63636419
"ContactNotFoundException":{
63646420
"type":"structure",
63656421
"members":{
@@ -10371,6 +10427,27 @@
1037110427
"Attributes":{"shape":"Attributes"}
1037210428
}
1037310429
},
10430+
"GetContactMetricsRequest":{
10431+
"type":"structure",
10432+
"required":[
10433+
"InstanceId",
10434+
"ContactId",
10435+
"Metrics"
10436+
],
10437+
"members":{
10438+
"InstanceId":{"shape":"InstanceIdOrArn"},
10439+
"ContactId":{"shape":"InstanceIdOrArn"},
10440+
"Metrics":{"shape":"ContactMetrics"}
10441+
}
10442+
},
10443+
"GetContactMetricsResponse":{
10444+
"type":"structure",
10445+
"members":{
10446+
"MetricResults":{"shape":"ContactMetricResults"},
10447+
"Id":{"shape":"ContactId"},
10448+
"Arn":{"shape":"ARN"}
10449+
}
10450+
},
1037410451
"GetCurrentMetricDataRequest":{
1037510452
"type":"structure",
1037610453
"required":[
@@ -19005,7 +19082,8 @@
1900519082
"members":{
1900619083
"OrConditions":{"shape":"UserHierarchyGroupSearchConditionList"},
1900719084
"AndConditions":{"shape":"UserHierarchyGroupSearchConditionList"},
19008-
"StringCondition":{"shape":"StringCondition"}
19085+
"StringCondition":{"shape":"StringCondition"},
19086+
"HierarchyGroupCondition":{"shape":"HierarchyGroupCondition"}
1900919087
}
1901019088
},
1901119089
"UserHierarchyGroupSearchFilter":{

generator/ServiceModels/connect/connect-2017-08-08.docs.json

Lines changed: 97 additions & 44 deletions
Large diffs are not rendered by default.

generator/ServiceModels/connect/connect-2017-08-08.normal.json

Lines changed: 158 additions & 46 deletions
Large diffs are not rendered by default.

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,6 +1514,23 @@
15141514
<min>1</min>
15151515
<max>100</max>
15161516
</property-value-rule>
1517+
<property-value-rule>
1518+
<property>Amazon.Connect.Model.GetContactMetricsRequest.ContactId</property>
1519+
<min>1</min>
1520+
<max>250</max>
1521+
<pattern>^(arn:(aws|aws-us-gov):connect:[a-z]{2}-[a-z]+-[0-9]{1}:[0-9]{1,20}:instance/)?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$</pattern>
1522+
</property-value-rule>
1523+
<property-value-rule>
1524+
<property>Amazon.Connect.Model.GetContactMetricsRequest.InstanceId</property>
1525+
<min>1</min>
1526+
<max>250</max>
1527+
<pattern>^(arn:(aws|aws-us-gov):connect:[a-z]{2}-[a-z]+-[0-9]{1}:[0-9]{1,20}:instance/)?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$</pattern>
1528+
</property-value-rule>
1529+
<property-value-rule>
1530+
<property>Amazon.Connect.Model.GetContactMetricsResponse.Id</property>
1531+
<min>1</min>
1532+
<max>256</max>
1533+
</property-value-rule>
15171534
<property-value-rule>
15181535
<property>Amazon.Connect.Model.GetCurrentMetricDataRequest.InstanceId</property>
15191536
<min>1</min>

sdk/src/Services/Connect/Generated/Model/AssociateQueueQuickConnectsRequest.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,7 @@ namespace Amazon.Connect.Model
3131
{
3232
/// <summary>
3333
/// Container for the parameters to the AssociateQueueQuickConnects operation.
34-
/// This API is in preview release for Amazon Connect and is subject to change.
35-
///
36-
///
37-
/// <para>
3834
/// Associates a set of quick connects with a queue.
39-
/// </para>
4035
/// </summary>
4136
public partial class AssociateQueueQuickConnectsRequest : AmazonConnectRequest
4237
{

sdk/src/Services/Connect/Generated/Model/CommonAttributeAndCondition.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,24 @@ namespace Amazon.Connect.Model
3434
/// </summary>
3535
public partial class CommonAttributeAndCondition
3636
{
37+
private HierarchyGroupCondition _hierarchyGroupCondition;
3738
private List<TagCondition> _tagConditions = AWSConfigs.InitializeCollections ? new List<TagCondition>() : null;
3839

40+
/// <summary>
41+
/// Gets and sets the property HierarchyGroupCondition.
42+
/// </summary>
43+
public HierarchyGroupCondition HierarchyGroupCondition
44+
{
45+
get { return this._hierarchyGroupCondition; }
46+
set { this._hierarchyGroupCondition = value; }
47+
}
48+
49+
// Check to see if HierarchyGroupCondition property is set
50+
internal bool IsSetHierarchyGroupCondition()
51+
{
52+
return this._hierarchyGroupCondition != null;
53+
}
54+
3955
/// <summary>
4056
/// Gets and sets the property TagConditions.
4157
/// <para>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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 connect-2017-08-08.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+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.Connect.Model
31+
{
32+
/// <summary>
33+
/// The object that contains information about metric being requested.
34+
/// </summary>
35+
public partial class ContactMetricInfo
36+
{
37+
private ContactMetricName _name;
38+
39+
/// <summary>
40+
/// Gets and sets the property Name.
41+
/// <para>
42+
/// The name of the metric being retrieved in type String.
43+
/// </para>
44+
/// </summary>
45+
[AWSProperty(Required=true)]
46+
public ContactMetricName Name
47+
{
48+
get { return this._name; }
49+
set { this._name = value; }
50+
}
51+
52+
// Check to see if Name property is set
53+
internal bool IsSetName()
54+
{
55+
return this._name != null;
56+
}
57+
58+
}
59+
}
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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 connect-2017-08-08.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+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.Connect.Model
31+
{
32+
/// <summary>
33+
/// Object containing information about metric requested for the contact.
34+
/// </summary>
35+
public partial class ContactMetricResult
36+
{
37+
private ContactMetricName _name;
38+
private ContactMetricValue _value;
39+
40+
/// <summary>
41+
/// Gets and sets the property Name.
42+
/// <para>
43+
/// The name of the metric being retrieved in type String.
44+
/// </para>
45+
/// </summary>
46+
[AWSProperty(Required=true)]
47+
public ContactMetricName Name
48+
{
49+
get { return this._name; }
50+
set { this._name = value; }
51+
}
52+
53+
// Check to see if Name property is set
54+
internal bool IsSetName()
55+
{
56+
return this._name != null;
57+
}
58+
59+
/// <summary>
60+
/// Gets and sets the property Value.
61+
/// <para>
62+
/// Object result associated with the metric received.
63+
/// </para>
64+
/// </summary>
65+
[AWSProperty(Required=true)]
66+
public ContactMetricValue Value
67+
{
68+
get { return this._value; }
69+
set { this._value = value; }
70+
}
71+
72+
// Check to see if Value property is set
73+
internal bool IsSetValue()
74+
{
75+
return this._value != null;
76+
}
77+
78+
}
79+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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 connect-2017-08-08.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+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.Connect.Model
31+
{
32+
/// <summary>
33+
/// Object which contains the number.
34+
/// </summary>
35+
public partial class ContactMetricValue
36+
{
37+
private double? _number;
38+
39+
/// <summary>
40+
/// Gets and sets the property Number.
41+
/// <para>
42+
/// The number of type Double. This number is the contact's position in queue.
43+
/// </para>
44+
/// </summary>
45+
public double? Number
46+
{
47+
get { return this._number; }
48+
set { this._number = value; }
49+
}
50+
51+
// Check to see if Number property is set
52+
internal bool IsSetNumber()
53+
{
54+
return this._number.HasValue;
55+
}
56+
57+
}
58+
}

sdk/src/Services/Connect/Generated/Model/CreateAgentStatusRequest.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,7 @@ namespace Amazon.Connect.Model
3131
{
3232
/// <summary>
3333
/// Container for the parameters to the CreateAgentStatus operation.
34-
/// This API is in preview release for Amazon Connect and is subject to change.
35-
///
36-
///
37-
/// <para>
3834
/// Creates an agent status for the specified Amazon Connect instance.
39-
/// </para>
4035
/// </summary>
4136
public partial class CreateAgentStatusRequest : AmazonConnectRequest
4237
{

0 commit comments

Comments
 (0)