aws-sdk-connect 1.98.0 → 1.100.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f743495f317c7663c592dc09e1a3c0bada465cfe5a034dde787e7510916a837c
4
- data.tar.gz: 1f3fd412666fec0dd5a6c49f125cb67fcfa19e0817496f23100344150d8268cd
3
+ metadata.gz: 6466cda0d66fccf0693bd20bed3d1385d63f4b18c9d7d0b5855a902bd5040c53
4
+ data.tar.gz: 772ecb8d31e7ead9d5e513d839b4b71285cc2229b4f316123b13dfec73a324ed
5
5
  SHA512:
6
- metadata.gz: b4acdea589c17b8797a288cc4cedeb5ef161bef6f62132a8b5885196bfb8e17e2295f3ccdf1cfd74de4e70e30311244f17c709290a749f249ccaaf4fed28dc91
7
- data.tar.gz: 550cdf5002ddebe73d6da936f5ed3330a38622a509798c3aa0c22f37746b69d460689f9719014f26f9f1e93d86912181478fd3db1675b100a8687dec80df783b
6
+ metadata.gz: 4d3e37c3dc53c114a4ab983cacedbf924187db440e81481389fe51ccd3b05e5cf9b1df3ac3a5887253a841f417c0a6077118e38afa7c6fc25fa5f9760949ec3a
7
+ data.tar.gz: fa737a57a0407cc7cc783038b94014e7ed624202b4f90e11916c084c9ce0de2277fbe470ba3e7af9928c041a34350c7c4454be39b0603a26d9f2c23eb88d65ac
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.100.0 (2023-03-27)
5
+ ------------------
6
+
7
+ * Feature - This release introduces support for RelatedContactId in the StartChatContact API. Interactive message and interactive message response have been added to the list of supported message content types for this API as well.
8
+
9
+ 1.99.0 (2023-03-09)
10
+ ------------------
11
+
12
+ * Feature - This release adds a new API, GetMetricDataV2, which returns metric data for Amazon Connect.
13
+
4
14
  1.98.0 (2023-02-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.98.0
1
+ 1.100.0
@@ -4805,6 +4805,389 @@ module Aws::Connect
4805
4805
  req.send_request(options)
4806
4806
  end
4807
4807
 
4808
+ # Gets metric data from the specified Amazon Connect instance.
4809
+ #
4810
+ # `GetMetricDataV2` offers more features than [GetMetricData][1], the
4811
+ # previous version of this API. It has new metrics, offers filtering at
4812
+ # a metric level, and offers the ability to filter and group data by
4813
+ # channels, queues, routing profiles, agents, and agent hierarchy
4814
+ # levels. It can retrieve historical data for the last 14 days, in
4815
+ # 24-hour intervals.
4816
+ #
4817
+ # For a description of the historical metrics that are supported by
4818
+ # `GetMetricDataV2` and `GetMetricData`, see [Historical metrics
4819
+ # definitions][2] in the *Amazon Connect Administrator's Guide*.
4820
+ #
4821
+ # This API is not available in the Amazon Web Services GovCloud (US)
4822
+ # Regions.
4823
+ #
4824
+ #
4825
+ #
4826
+ # [1]: https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricData.html
4827
+ # [2]: https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html
4828
+ #
4829
+ # @option params [required, String] :resource_arn
4830
+ # The Amazon Resource Name (ARN) of the resource. This includes the
4831
+ # `instanceId` an Amazon Connect instance.
4832
+ #
4833
+ # @option params [required, Time,DateTime,Date,Integer,String] :start_time
4834
+ # The timestamp, in UNIX Epoch time format, at which to start the
4835
+ # reporting interval for the retrieval of historical metrics data. The
4836
+ # time must be before the end time timestamp. The time range between the
4837
+ # start and end time must be less than 24 hours. The start time cannot
4838
+ # be earlier than 14 days before the time of the request. Historical
4839
+ # metrics are available for 14 days.
4840
+ #
4841
+ # @option params [required, Time,DateTime,Date,Integer,String] :end_time
4842
+ # The timestamp, in UNIX Epoch time format, at which to end the
4843
+ # reporting interval for the retrieval of historical metrics data. The
4844
+ # time must be later than the start time timestamp.
4845
+ #
4846
+ # The time range between the start and end time must be less than 24
4847
+ # hours.
4848
+ #
4849
+ # @option params [required, Array<Types::FilterV2>] :filters
4850
+ # The filters to apply to returned metrics. You can filter on the
4851
+ # following resources:
4852
+ #
4853
+ # * Queues
4854
+ #
4855
+ # * Routing profiles
4856
+ #
4857
+ # * Agents
4858
+ #
4859
+ # * Channels
4860
+ #
4861
+ # * User hierarchy groups
4862
+ #
4863
+ # At least one filter must be passed from queues, routing profiles,
4864
+ # agents, or user hierarchy groups.
4865
+ #
4866
+ # To filter by phone number, see [Create a historical metrics report][1]
4867
+ # in the *Amazon Connect Administrator's Guide*.
4868
+ #
4869
+ # Note the following limits:
4870
+ #
4871
+ # * **Filter keys**: A maximum of 5 filter keys are supported in a
4872
+ # single request. Valid filter keys: `QUEUE` \| `ROUTING_PROFILE` \|
4873
+ # `AGENT` \| `CHANNEL` \| `AGENT_HIERARCHY_LEVEL_ONE` \|
4874
+ # `AGENT_HIERARCHY_LEVEL_TWO` \| `AGENT_HIERARCHY_LEVEL_THREE` \|
4875
+ # `AGENT_HIERARCHY_LEVEL_FOUR` \| `AGENT_HIERARCHY_LEVEL_FIVE`
4876
+ #
4877
+ # * **Filter values**: A maximum of 100 filter values are supported in a
4878
+ # single request. For example, a `GetMetricDataV2` request can filter
4879
+ # by 50 queues, 35 agents, and 15 routing profiles for a total of 100
4880
+ # filter values. `VOICE`, `CHAT`, and `TASK` are valid `filterValue`
4881
+ # for the `CHANNEL` filter key.
4882
+ #
4883
+ #
4884
+ #
4885
+ # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/create-historical-metrics-report.html
4886
+ #
4887
+ # @option params [Array<String>] :groupings
4888
+ # The grouping applied to the metrics that are returned. For example,
4889
+ # when results are grouped by queue, the metrics returned are grouped by
4890
+ # queue. The values that are returned apply to the metrics for each
4891
+ # queue. They are not aggregated for all queues.
4892
+ #
4893
+ # If no grouping is specified, a summary of all metrics is returned.
4894
+ #
4895
+ # Valid grouping keys: `QUEUE` \| `ROUTING_PROFILE` \| `AGENT` \|
4896
+ # `CHANNEL` \| `AGENT_HIERARCHY_LEVEL_ONE` \|
4897
+ # `AGENT_HIERARCHY_LEVEL_TWO` \| `AGENT_HIERARCHY_LEVEL_THREE` \|
4898
+ # `AGENT_HIERARCHY_LEVEL_FOUR` \| `AGENT_HIERARCHY_LEVEL_FIVE`
4899
+ #
4900
+ # @option params [required, Array<Types::MetricV2>] :metrics
4901
+ # The metrics to retrieve. Specify the name, groupings, and filters for
4902
+ # each metric. The following historical metrics are available. For a
4903
+ # description of each metric, see [Historical metrics definitions][1] in
4904
+ # the *Amazon Connect Administrator's Guide*.
4905
+ #
4906
+ # AGENT\_ADHERENT\_TIME
4907
+ #
4908
+ # : This metric is available only in Amazon Web Services Regions where
4909
+ # [Forecasting, capacity planning, and scheduling][2] is available.
4910
+ #
4911
+ # Unit: Seconds
4912
+ #
4913
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
4914
+ # Agent Hierarchy
4915
+ #
4916
+ # AGENT\_NON\_RESPONSE
4917
+ #
4918
+ # : Unit: Count
4919
+ #
4920
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
4921
+ # Agent Hierarchy
4922
+ #
4923
+ # AGENT\_OCCUPANCY
4924
+ #
4925
+ # : Unit: Percentage
4926
+ #
4927
+ # Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy
4928
+ #
4929
+ # AGENT\_SCHEDULE\_ADHERENCE
4930
+ #
4931
+ # : This metric is available only in Amazon Web Services Regions where
4932
+ # [Forecasting, capacity planning, and scheduling][2] is available.
4933
+ #
4934
+ # Unit: Percent
4935
+ #
4936
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
4937
+ # Agent Hierarchy
4938
+ #
4939
+ # AGENT\_SCHEDULED\_TIME
4940
+ #
4941
+ # : This metric is available only in Amazon Web Services Regions where
4942
+ # [Forecasting, capacity planning, and scheduling][2] is available.
4943
+ #
4944
+ # Unit: Seconds
4945
+ #
4946
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
4947
+ # Agent Hierarchy
4948
+ #
4949
+ # AVG\_ABANDON\_TIME
4950
+ #
4951
+ # : Unit: Seconds
4952
+ #
4953
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
4954
+ # Agent Hierarchy
4955
+ #
4956
+ # AVG\_AFTER\_CONTACT\_WORK\_TIME
4957
+ #
4958
+ # : Unit: Seconds
4959
+ #
4960
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
4961
+ # Agent Hierarchy
4962
+ #
4963
+ # AVG\_AGENT\_CONNECTING\_TIME
4964
+ #
4965
+ # : Unit: Seconds
4966
+ #
4967
+ # Valid metric filter key: `INITIATION_METHOD`. For now, this metric
4968
+ # only supports the following as `INITIATION_METHOD`: `INBOUND` \|
4969
+ # `OUTBOUND` \| `CALLBACK` \| `API`
4970
+ #
4971
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
4972
+ # Agent Hierarchy
4973
+ #
4974
+ # AVG\_HANDLE\_TIME
4975
+ #
4976
+ # : Unit: Seconds
4977
+ #
4978
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
4979
+ # Agent Hierarchy
4980
+ #
4981
+ # AVG\_HOLD\_TIME
4982
+ #
4983
+ # : Unit: Seconds
4984
+ #
4985
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
4986
+ # Agent Hierarchy
4987
+ #
4988
+ # AVG\_INTERACTION\_AND\_HOLD\_TIME
4989
+ #
4990
+ # : Unit: Seconds
4991
+ #
4992
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
4993
+ # Agent Hierarchy
4994
+ #
4995
+ # AVG\_INTERACTION\_TIME
4996
+ #
4997
+ # : Unit: Seconds
4998
+ #
4999
+ # Valid groupings and filters: Queue, Channel, Routing Profile
5000
+ #
5001
+ # AVG\_QUEUE\_ANSWER\_TIME
5002
+ #
5003
+ # : Unit: Seconds
5004
+ #
5005
+ # Valid groupings and filters: Queue, Channel, Routing Profile
5006
+ #
5007
+ # CONTACTS\_ABANDONED
5008
+ #
5009
+ # : Unit: Count
5010
+ #
5011
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
5012
+ # Agent Hierarchy
5013
+ #
5014
+ # CONTACTS\_CREATED
5015
+ #
5016
+ # : Unit: Count
5017
+ #
5018
+ # Valid metric filter key: `INITIATION_METHOD`
5019
+ #
5020
+ # Valid groupings and filters: Queue, Channel, Routing Profile
5021
+ #
5022
+ # CONTACTS\_HANDLED
5023
+ #
5024
+ # : Unit: Count
5025
+ #
5026
+ # Valid metric filter key: `INITIATION_METHOD`, `DISCONNECT_REASON`
5027
+ #
5028
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
5029
+ # Agent Hierarchy
5030
+ #
5031
+ # CONTACTS\_HOLD\_ABANDONS
5032
+ #
5033
+ # : Unit: Count
5034
+ #
5035
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
5036
+ # Agent Hierarchy
5037
+ #
5038
+ # CONTACTS\_QUEUED
5039
+ #
5040
+ # : Unit: Count
5041
+ #
5042
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
5043
+ # Agent Hierarchy
5044
+ #
5045
+ # CONTACTS\_TRANSFERRED\_OUT
5046
+ #
5047
+ # : Unit: Count
5048
+ #
5049
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
5050
+ # Agent Hierarchy
5051
+ #
5052
+ # CONTACTS\_TRANSFERRED\_OUT\_BY\_AGENT
5053
+ #
5054
+ # : Unit: Count
5055
+ #
5056
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
5057
+ # Agent Hierarchy
5058
+ #
5059
+ # CONTACTS\_TRANSFERRED\_OUT\_FROM\_QUEUE
5060
+ #
5061
+ # : Unit: Count
5062
+ #
5063
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
5064
+ # Agent Hierarchy
5065
+ #
5066
+ # MAX\_QUEUED\_TIME
5067
+ #
5068
+ # : Unit: Seconds
5069
+ #
5070
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
5071
+ # Agent Hierarchy
5072
+ #
5073
+ # SERVICE\_LEVEL
5074
+ #
5075
+ # : You can include up to 20 SERVICE\_LEVEL metrics in a request.
5076
+ #
5077
+ # Unit: Percent
5078
+ #
5079
+ # Valid groupings and filters: Queue, Channel, Routing Profile
5080
+ #
5081
+ # Threshold: For `ThresholdValue`, enter any whole number from 1 to
5082
+ # 604800 (inclusive), in seconds. For `Comparison`, you must enter
5083
+ # `LT` (for "Less than").
5084
+ #
5085
+ # SUM\_CONTACTS\_ANSWERED\_IN\_X
5086
+ #
5087
+ # : Unit: Count
5088
+ #
5089
+ # Valid groupings and filters: Queue, Channel, Routing Profile
5090
+ #
5091
+ # SUM\_CONTACTS\_ABANDONED\_IN\_X
5092
+ #
5093
+ # : Unit: Count
5094
+ #
5095
+ # Valid groupings and filters: Queue, Channel, Routing Profile
5096
+ #
5097
+ # SUM\_CONTACTS\_DISCONNECTED
5098
+ #
5099
+ # : Valid metric filter key: `DISCONNECT_REASON`
5100
+ #
5101
+ # Unit: Count
5102
+ #
5103
+ # Valid groupings and filters: Queue, Channel, Routing Profile
5104
+ #
5105
+ # SUM\_RETRY\_CALLBACK\_ATTEMPTS
5106
+ #
5107
+ # : Unit: Count
5108
+ #
5109
+ # Valid groupings and filters: Queue, Channel, Routing Profile
5110
+ #
5111
+ #
5112
+ #
5113
+ # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html
5114
+ # [2]: https://docs.aws.amazon.com/connect/latest/adminguide/regions.html#optimization_region
5115
+ #
5116
+ # @option params [String] :next_token
5117
+ # The token for the next set of results. Use the value returned in the
5118
+ # previous response in the next request to retrieve the next set of
5119
+ # results.
5120
+ #
5121
+ # @option params [Integer] :max_results
5122
+ # The maximum number of results to return per page.
5123
+ #
5124
+ # @return [Types::GetMetricDataV2Response] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5125
+ #
5126
+ # * {Types::GetMetricDataV2Response#next_token #next_token} => String
5127
+ # * {Types::GetMetricDataV2Response#metric_results #metric_results} => Array&lt;Types::MetricResultV2&gt;
5128
+ #
5129
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
5130
+ #
5131
+ # @example Request syntax with placeholder values
5132
+ #
5133
+ # resp = client.get_metric_data_v2({
5134
+ # resource_arn: "ARN", # required
5135
+ # start_time: Time.now, # required
5136
+ # end_time: Time.now, # required
5137
+ # filters: [ # required
5138
+ # {
5139
+ # filter_key: "ResourceArnOrId",
5140
+ # filter_values: ["ResourceArnOrId"],
5141
+ # },
5142
+ # ],
5143
+ # groupings: ["GroupingV2"],
5144
+ # metrics: [ # required
5145
+ # {
5146
+ # name: "MetricNameV2",
5147
+ # threshold: [
5148
+ # {
5149
+ # comparison: "ResourceArnOrId",
5150
+ # threshold_value: 1.0,
5151
+ # },
5152
+ # ],
5153
+ # metric_filters: [
5154
+ # {
5155
+ # metric_filter_key: "String",
5156
+ # metric_filter_values: ["String"],
5157
+ # },
5158
+ # ],
5159
+ # },
5160
+ # ],
5161
+ # next_token: "NextToken2500",
5162
+ # max_results: 1,
5163
+ # })
5164
+ #
5165
+ # @example Response structure
5166
+ #
5167
+ # resp.next_token #=> String
5168
+ # resp.metric_results #=> Array
5169
+ # resp.metric_results[0].dimensions #=> Hash
5170
+ # resp.metric_results[0].dimensions["DimensionsV2Key"] #=> String
5171
+ # resp.metric_results[0].collections #=> Array
5172
+ # resp.metric_results[0].collections[0].metric.name #=> String
5173
+ # resp.metric_results[0].collections[0].metric.threshold #=> Array
5174
+ # resp.metric_results[0].collections[0].metric.threshold[0].comparison #=> String
5175
+ # resp.metric_results[0].collections[0].metric.threshold[0].threshold_value #=> Float
5176
+ # resp.metric_results[0].collections[0].metric.metric_filters #=> Array
5177
+ # resp.metric_results[0].collections[0].metric.metric_filters[0].metric_filter_key #=> String
5178
+ # resp.metric_results[0].collections[0].metric.metric_filters[0].metric_filter_values #=> Array
5179
+ # resp.metric_results[0].collections[0].metric.metric_filters[0].metric_filter_values[0] #=> String
5180
+ # resp.metric_results[0].collections[0].value #=> Float
5181
+ #
5182
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetMetricDataV2 AWS API Documentation
5183
+ #
5184
+ # @overload get_metric_data_v2(params = {})
5185
+ # @param [Hash] params ({})
5186
+ def get_metric_data_v2(params = {}, options = {})
5187
+ req = build_request(:get_metric_data_v2, params)
5188
+ req.send_request(options)
5189
+ end
5190
+
4808
5191
  # Gets details about a specific task template in the specified Amazon
4809
5192
  # Connect instance.
4810
5193
  #
@@ -7410,7 +7793,7 @@ module Aws::Connect
7410
7793
  #
7411
7794
  # </note>
7412
7795
  #
7413
- # <note markdown="1"> The currently supported value for `FieldName`\: `name`
7796
+ # <note markdown="1"> The currently supported value for `FieldName`: `name`
7414
7797
  #
7415
7798
  # </note>
7416
7799
  #
@@ -7773,17 +8156,31 @@ module Aws::Connect
7773
8156
  #
7774
8157
  # @option params [Integer] :chat_duration_in_minutes
7775
8158
  # The total duration of the newly started chat session. If not
7776
- # specified, the chat session duration defaults to 25 hour. The minumum
8159
+ # specified, the chat session duration defaults to 25 hour. The minimum
7777
8160
  # configurable time is 60 minutes. The maximum configurable time is
7778
8161
  # 10,080 minutes (7 days).
7779
8162
  #
7780
8163
  # @option params [Array<String>] :supported_messaging_content_types
7781
- # The supported chat message content types. Content types must always
7782
- # contain `text/plain`. You can then put any other supported type in the
7783
- # list. For example, all the following lists are valid because they
7784
- # contain `text/plain`\: `[text/plain, text/markdown,
7785
- # application/json]`, `[text/markdown, text/plain]`, `[text/plain,
7786
- # application/json]`.
8164
+ # The supported chat message content types. Supported types are
8165
+ # `text/plain`, `text/markdown`, `application/json`,
8166
+ # `application/vnd.amazonaws.connect.message.interactive`, and
8167
+ # `application/vnd.amazonaws.connect.message.interactive.response`.
8168
+ #
8169
+ # Content types must always contain `text/plain`. You can then put any
8170
+ # other supported type in the list. For example, all the following lists
8171
+ # are valid because they contain `text/plain`: `[text/plain,
8172
+ # text/markdown, application/json]`, `[text/markdown, text/plain]`,
8173
+ # `[text/plain, application/json,
8174
+ # application/vnd.amazonaws.connect.message.interactive.response]`.
8175
+ #
8176
+ # <note markdown="1"> The type `application/vnd.amazonaws.connect.message.interactive` is
8177
+ # required to use the [Show view][1] flow block.
8178
+ #
8179
+ # </note>
8180
+ #
8181
+ #
8182
+ #
8183
+ # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/show-view-block.html
7787
8184
  #
7788
8185
  # @option params [Types::PersistentChat] :persistent_chat
7789
8186
  # Enable persistent chats. For more information about enabling
@@ -7794,6 +8191,14 @@ module Aws::Connect
7794
8191
  #
7795
8192
  # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html
7796
8193
  #
8194
+ # @option params [String] :related_contact_id
8195
+ # The unique identifier for an Amazon Connect contact. This identifier
8196
+ # is related to the chat starting.
8197
+ #
8198
+ # <note markdown="1"> You cannot provide data for both RelatedContactId and PersistentChat.
8199
+ #
8200
+ # </note>
8201
+ #
7797
8202
  # @return [Types::StartChatContactResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7798
8203
  #
7799
8204
  # * {Types::StartChatContactResponse#contact_id #contact_id} => String
@@ -7823,6 +8228,7 @@ module Aws::Connect
7823
8228
  # rehydration_type: "ENTIRE_PAST_SESSION", # accepts ENTIRE_PAST_SESSION, FROM_SEGMENT
7824
8229
  # source_contact_id: "ContactId",
7825
8230
  # },
8231
+ # related_contact_id: "ContactId",
7826
8232
  # })
7827
8233
  #
7828
8234
  # @example Response structure
@@ -10367,7 +10773,7 @@ module Aws::Connect
10367
10773
  params: params,
10368
10774
  config: config)
10369
10775
  context[:gem_name] = 'aws-sdk-connect'
10370
- context[:gem_version] = '1.98.0'
10776
+ context[:gem_version] = '1.100.0'
10371
10777
  Seahorse::Client::Request.new(handlers, context)
10372
10778
  end
10373
10779