aws-sdk-medialive 1.130.0 → 1.132.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,11 +40,20 @@ module Aws::MediaLive
40
40
  context[:auth_scheme] =
41
41
  Aws::Endpoints.resolve_auth_scheme(context, endpoint)
42
42
 
43
- @handler.call(context)
43
+ with_metrics(context) { @handler.call(context) }
44
44
  end
45
45
 
46
46
  private
47
47
 
48
+ def with_metrics(context, &block)
49
+ metrics = []
50
+ metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
51
+ if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
52
+ metrics << 'SIGV4A_SIGNING'
53
+ end
54
+ Aws::Plugins::UserAgent.metric(*metrics, &block)
55
+ end
56
+
48
57
  def apply_endpoint_headers(context, headers)
49
58
  headers.each do |key, values|
50
59
  value = values
@@ -242,6 +251,50 @@ module Aws::MediaLive
242
251
  Aws::MediaLive::Endpoints::UpdateEventBridgeRuleTemplate.build(context)
243
252
  when :update_event_bridge_rule_template_group
244
253
  Aws::MediaLive::Endpoints::UpdateEventBridgeRuleTemplateGroup.build(context)
254
+ when :create_channel_placement_group
255
+ Aws::MediaLive::Endpoints::CreateChannelPlacementGroup.build(context)
256
+ when :create_cluster
257
+ Aws::MediaLive::Endpoints::CreateCluster.build(context)
258
+ when :create_network
259
+ Aws::MediaLive::Endpoints::CreateNetwork.build(context)
260
+ when :create_node
261
+ Aws::MediaLive::Endpoints::CreateNode.build(context)
262
+ when :create_node_registration_script
263
+ Aws::MediaLive::Endpoints::CreateNodeRegistrationScript.build(context)
264
+ when :delete_channel_placement_group
265
+ Aws::MediaLive::Endpoints::DeleteChannelPlacementGroup.build(context)
266
+ when :delete_cluster
267
+ Aws::MediaLive::Endpoints::DeleteCluster.build(context)
268
+ when :delete_network
269
+ Aws::MediaLive::Endpoints::DeleteNetwork.build(context)
270
+ when :delete_node
271
+ Aws::MediaLive::Endpoints::DeleteNode.build(context)
272
+ when :describe_channel_placement_group
273
+ Aws::MediaLive::Endpoints::DescribeChannelPlacementGroup.build(context)
274
+ when :describe_cluster
275
+ Aws::MediaLive::Endpoints::DescribeCluster.build(context)
276
+ when :describe_network
277
+ Aws::MediaLive::Endpoints::DescribeNetwork.build(context)
278
+ when :describe_node
279
+ Aws::MediaLive::Endpoints::DescribeNode.build(context)
280
+ when :list_channel_placement_groups
281
+ Aws::MediaLive::Endpoints::ListChannelPlacementGroups.build(context)
282
+ when :list_clusters
283
+ Aws::MediaLive::Endpoints::ListClusters.build(context)
284
+ when :list_networks
285
+ Aws::MediaLive::Endpoints::ListNetworks.build(context)
286
+ when :list_nodes
287
+ Aws::MediaLive::Endpoints::ListNodes.build(context)
288
+ when :update_channel_placement_group
289
+ Aws::MediaLive::Endpoints::UpdateChannelPlacementGroup.build(context)
290
+ when :update_cluster
291
+ Aws::MediaLive::Endpoints::UpdateCluster.build(context)
292
+ when :update_network
293
+ Aws::MediaLive::Endpoints::UpdateNetwork.build(context)
294
+ when :update_node
295
+ Aws::MediaLive::Endpoints::UpdateNode.build(context)
296
+ when :update_node_state
297
+ Aws::MediaLive::Endpoints::UpdateNodeState.build(context)
245
298
  end
246
299
  end
247
300
  end