aws-sdk-cloudwatchrum 1.3.0 → 1.5.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: 78523aa025faf2004846d7af310a8af673379529a9e84964dc8b5e5c79d2560e
4
- data.tar.gz: 6456f7518fd529f835657111df2292b7655c5da341ae376b44a0dc2b5ccbd4ba
3
+ metadata.gz: 7495a0ed7240fdca5af47dafdfb159a3cc6a5078878e5da39bb873ab7a649b05
4
+ data.tar.gz: 8e3a05c8e0f6ef0b5dfa94d52adbe4f4c70e75fdd1c494ae342722ef0c6786b4
5
5
  SHA512:
6
- metadata.gz: 57838cc485dede68fc71ae379801fde057240dc44ca4e990291072c6f6b7165350e63f771a11ebff988b421a4abf95996a373bc687785396dfda6c420892cfbb
7
- data.tar.gz: 6c96a284beed212559f5bdcea776fecd9d568e96f3b89027c30cdf5c0dc126325e565a6e5efbd1b3f9d9feae5b4f8a1d260f75430575b1665ccd9ebc63c63d70
6
+ metadata.gz: 0ff3badaf6c99585de3781e85c9c50434c0423e12fd8f1ad89c7489fbffa68feda8d24fc9468bb9e1c8e2127f21cf89793c8bff268227ab0be19405490df5751
7
+ data.tar.gz: 98ac3ef89503a5fef970790cdd700f3f5a1c9de6acd948089007316af91d742ba18ca089d0495d8abec0656d764bca1a8b6b802eb10f2a7d3b4e9074288adf35
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.5.0 (2022-10-20)
5
+ ------------------
6
+
7
+ * Feature - CloudWatch RUM now supports Extended CloudWatch Metrics with Additional Dimensions
8
+
9
+ 1.4.0 (2022-02-24)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.3.0 (2022-02-03)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.5.0
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
30
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
31
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
32
33
  require 'aws-sdk-core/plugins/signature_v4.rb'
@@ -75,6 +76,7 @@ module Aws::CloudWatchRUM
75
76
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
76
77
  add_plugin(Aws::Plugins::TransferEncoding)
77
78
  add_plugin(Aws::Plugins::HttpChecksum)
79
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
78
80
  add_plugin(Aws::Plugins::DefaultsMode)
79
81
  add_plugin(Aws::Plugins::RecursionDetection)
80
82
  add_plugin(Aws::Plugins::SignatureV4)
@@ -349,6 +351,244 @@ module Aws::CloudWatchRUM
349
351
 
350
352
  # @!group API Operations
351
353
 
354
+ # Specifies the extended metrics that you want a CloudWatch RUM app
355
+ # monitor to send to a destination. Valid destinations include
356
+ # CloudWatch and Evidently.
357
+ #
358
+ # By default, RUM app monitors send some metrics to CloudWatch. These
359
+ # default metrics are listed in [CloudWatch metrics that you can collect
360
+ # with CloudWatch RUM][1].
361
+ #
362
+ # If you also send extended metrics, you can send metrics to Evidently
363
+ # as well as CloudWatch, and you can also optionally send the metrics
364
+ # with additional dimensions. The valid dimension names for the
365
+ # additional dimensions are `BrowserName`, `CountryCode`, `DeviceType`,
366
+ # `FileType`, `OSName`, and `PageId`. For more information, see [
367
+ # Extended metrics that you can send to CloudWatch and CloudWatch
368
+ # Evidently][2].
369
+ #
370
+ # The maximum number of metric definitions that you can specify in one
371
+ # `BatchCreateRumMetricDefinitions` operation is 200.
372
+ #
373
+ # <p>The maximum number of metric definitions that one destination can contain is 2000.</p> <p>Extended metrics sent are charged as CloudWatch custom metrics. Each combination of additional dimension name and dimension value counts as a custom metric. For more information, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>.</p> <p>You must have already created a destination for the metrics before you send them. For more information, see <a href="https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_PutRumMetricsDestination.html">PutRumMetricsDestination</a>.</p> <p>If some metric definitions specified in a <code>BatchCreateRumMetricDefinitions</code> operations are not valid, those metric definitions fail and return errors, but all valid metric definitions in the same operation still succeed.</p>
374
+ #
375
+ #
376
+ #
377
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-metrics.html
378
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-vended-metrics.html
379
+ #
380
+ # @option params [required, String] :app_monitor_name
381
+ # The name of the CloudWatch RUM app monitor that is to send the
382
+ # metrics.
383
+ #
384
+ # @option params [required, String] :destination
385
+ # The destination to send the metrics to. Valid values are `CloudWatch`
386
+ # and `Evidently`. If you specify `Evidently`, you must also specify the
387
+ # ARN of the CloudWatchEvidently experiment that will receive the
388
+ # metrics and an IAM role that has permission to write to the
389
+ # experiment.
390
+ #
391
+ # @option params [String] :destination_arn
392
+ # This parameter is required if `Destination` is `Evidently`. If
393
+ # `Destination` is `CloudWatch`, do not use this parameter.
394
+ #
395
+ # This parameter specifies the ARN of the Evidently experiment that is
396
+ # to receive the metrics. You must have already defined this experiment
397
+ # as a valid destination. For more information, see
398
+ # [PutRumMetricsDestination][1].
399
+ #
400
+ #
401
+ #
402
+ # [1]: https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_PutRumMetricsDestination.html
403
+ #
404
+ # @option params [required, Array<Types::MetricDefinitionRequest>] :metric_definitions
405
+ # An array of structures which define the metrics that you want to send.
406
+ #
407
+ # @return [Types::BatchCreateRumMetricDefinitionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
408
+ #
409
+ # * {Types::BatchCreateRumMetricDefinitionsResponse#errors #errors} => Array&lt;Types::BatchCreateRumMetricDefinitionsError&gt;
410
+ # * {Types::BatchCreateRumMetricDefinitionsResponse#metric_definitions #metric_definitions} => Array&lt;Types::MetricDefinition&gt;
411
+ #
412
+ # @example Request syntax with placeholder values
413
+ #
414
+ # resp = client.batch_create_rum_metric_definitions({
415
+ # app_monitor_name: "AppMonitorName", # required
416
+ # destination: "CloudWatch", # required, accepts CloudWatch, Evidently
417
+ # destination_arn: "DestinationArn",
418
+ # metric_definitions: [ # required
419
+ # {
420
+ # dimension_keys: {
421
+ # "DimensionKey" => "DimensionName",
422
+ # },
423
+ # event_pattern: "EventPattern",
424
+ # name: "MetricName", # required
425
+ # unit_label: "UnitLabel",
426
+ # value_key: "ValueKey",
427
+ # },
428
+ # ],
429
+ # })
430
+ #
431
+ # @example Response structure
432
+ #
433
+ # resp.errors #=> Array
434
+ # resp.errors[0].error_code #=> String
435
+ # resp.errors[0].error_message #=> String
436
+ # resp.errors[0].metric_definition.dimension_keys #=> Hash
437
+ # resp.errors[0].metric_definition.dimension_keys["DimensionKey"] #=> String
438
+ # resp.errors[0].metric_definition.event_pattern #=> String
439
+ # resp.errors[0].metric_definition.name #=> String
440
+ # resp.errors[0].metric_definition.unit_label #=> String
441
+ # resp.errors[0].metric_definition.value_key #=> String
442
+ # resp.metric_definitions #=> Array
443
+ # resp.metric_definitions[0].dimension_keys #=> Hash
444
+ # resp.metric_definitions[0].dimension_keys["DimensionKey"] #=> String
445
+ # resp.metric_definitions[0].event_pattern #=> String
446
+ # resp.metric_definitions[0].metric_definition_id #=> String
447
+ # resp.metric_definitions[0].name #=> String
448
+ # resp.metric_definitions[0].unit_label #=> String
449
+ # resp.metric_definitions[0].value_key #=> String
450
+ #
451
+ # @see http://docs.aws.amazon.com/goto/WebAPI/rum-2018-05-10/BatchCreateRumMetricDefinitions AWS API Documentation
452
+ #
453
+ # @overload batch_create_rum_metric_definitions(params = {})
454
+ # @param [Hash] params ({})
455
+ def batch_create_rum_metric_definitions(params = {}, options = {})
456
+ req = build_request(:batch_create_rum_metric_definitions, params)
457
+ req.send_request(options)
458
+ end
459
+
460
+ # Removes the specified metrics from being sent to an extended metrics
461
+ # destination.
462
+ #
463
+ # If some metric definition IDs specified in a
464
+ # `BatchDeleteRumMetricDefinitions` operations are not valid, those
465
+ # metric definitions fail and return errors, but all valid metric
466
+ # definition IDs in the same operation are still deleted.
467
+ #
468
+ # The maximum number of metric definitions that you can specify in one
469
+ # `BatchDeleteRumMetricDefinitions` operation is 200.
470
+ #
471
+ # @option params [required, String] :app_monitor_name
472
+ # The name of the CloudWatch RUM app monitor that is sending these
473
+ # metrics.
474
+ #
475
+ # @option params [required, String] :destination
476
+ # Defines the destination where you want to stop sending the specified
477
+ # metrics. Valid values are `CloudWatch` and `Evidently`. If you specify
478
+ # `Evidently`, you must also specify the ARN of the CloudWatchEvidently
479
+ # experiment that is to be the destination and an IAM role that has
480
+ # permission to write to the experiment.
481
+ #
482
+ # @option params [String] :destination_arn
483
+ # This parameter is required if `Destination` is `Evidently`. If
484
+ # `Destination` is `CloudWatch`, do not use this parameter.
485
+ #
486
+ # This parameter specifies the ARN of the Evidently experiment that was
487
+ # receiving the metrics that are being deleted.
488
+ #
489
+ # @option params [required, Array<String>] :metric_definition_ids
490
+ # An array of structures which define the metrics that you want to stop
491
+ # sending.
492
+ #
493
+ # @return [Types::BatchDeleteRumMetricDefinitionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
494
+ #
495
+ # * {Types::BatchDeleteRumMetricDefinitionsResponse#errors #errors} => Array&lt;Types::BatchDeleteRumMetricDefinitionsError&gt;
496
+ # * {Types::BatchDeleteRumMetricDefinitionsResponse#metric_definition_ids #metric_definition_ids} => Array&lt;String&gt;
497
+ #
498
+ # @example Request syntax with placeholder values
499
+ #
500
+ # resp = client.batch_delete_rum_metric_definitions({
501
+ # app_monitor_name: "AppMonitorName", # required
502
+ # destination: "CloudWatch", # required, accepts CloudWatch, Evidently
503
+ # destination_arn: "DestinationArn",
504
+ # metric_definition_ids: ["MetricDefinitionId"], # required
505
+ # })
506
+ #
507
+ # @example Response structure
508
+ #
509
+ # resp.errors #=> Array
510
+ # resp.errors[0].error_code #=> String
511
+ # resp.errors[0].error_message #=> String
512
+ # resp.errors[0].metric_definition_id #=> String
513
+ # resp.metric_definition_ids #=> Array
514
+ # resp.metric_definition_ids[0] #=> String
515
+ #
516
+ # @see http://docs.aws.amazon.com/goto/WebAPI/rum-2018-05-10/BatchDeleteRumMetricDefinitions AWS API Documentation
517
+ #
518
+ # @overload batch_delete_rum_metric_definitions(params = {})
519
+ # @param [Hash] params ({})
520
+ def batch_delete_rum_metric_definitions(params = {}, options = {})
521
+ req = build_request(:batch_delete_rum_metric_definitions, params)
522
+ req.send_request(options)
523
+ end
524
+
525
+ # Retrieves the list of metrics and dimensions that a RUM app monitor is
526
+ # sending to a single destination.
527
+ #
528
+ # @option params [required, String] :app_monitor_name
529
+ # The name of the CloudWatch RUM app monitor that is sending the
530
+ # metrics.
531
+ #
532
+ # @option params [required, String] :destination
533
+ # The type of destination that you want to view metrics for. Valid
534
+ # values are `CloudWatch` and `Evidently`.
535
+ #
536
+ # @option params [String] :destination_arn
537
+ # This parameter is required if `Destination` is `Evidently`. If
538
+ # `Destination` is `CloudWatch`, do not use this parameter.
539
+ #
540
+ # This parameter specifies the ARN of the Evidently experiment that
541
+ # corresponds to the destination.
542
+ #
543
+ # @option params [Integer] :max_results
544
+ # The maximum number of results to return in one operation. The default
545
+ # is 50. The maximum that you can specify is 100.
546
+ #
547
+ # To retrieve the remaining results, make another call with the returned
548
+ # `NextToken` value.
549
+ #
550
+ # @option params [String] :next_token
551
+ # Use the token returned by the previous operation to request the next
552
+ # page of results.
553
+ #
554
+ # @return [Types::BatchGetRumMetricDefinitionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
555
+ #
556
+ # * {Types::BatchGetRumMetricDefinitionsResponse#metric_definitions #metric_definitions} => Array&lt;Types::MetricDefinition&gt;
557
+ # * {Types::BatchGetRumMetricDefinitionsResponse#next_token #next_token} => String
558
+ #
559
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
560
+ #
561
+ # @example Request syntax with placeholder values
562
+ #
563
+ # resp = client.batch_get_rum_metric_definitions({
564
+ # app_monitor_name: "AppMonitorName", # required
565
+ # destination: "CloudWatch", # required, accepts CloudWatch, Evidently
566
+ # destination_arn: "DestinationArn",
567
+ # max_results: 1,
568
+ # next_token: "String",
569
+ # })
570
+ #
571
+ # @example Response structure
572
+ #
573
+ # resp.metric_definitions #=> Array
574
+ # resp.metric_definitions[0].dimension_keys #=> Hash
575
+ # resp.metric_definitions[0].dimension_keys["DimensionKey"] #=> String
576
+ # resp.metric_definitions[0].event_pattern #=> String
577
+ # resp.metric_definitions[0].metric_definition_id #=> String
578
+ # resp.metric_definitions[0].name #=> String
579
+ # resp.metric_definitions[0].unit_label #=> String
580
+ # resp.metric_definitions[0].value_key #=> String
581
+ # resp.next_token #=> String
582
+ #
583
+ # @see http://docs.aws.amazon.com/goto/WebAPI/rum-2018-05-10/BatchGetRumMetricDefinitions AWS API Documentation
584
+ #
585
+ # @overload batch_get_rum_metric_definitions(params = {})
586
+ # @param [Hash] params ({})
587
+ def batch_get_rum_metric_definitions(params = {}, options = {})
588
+ req = build_request(:batch_get_rum_metric_definitions, params)
589
+ req.send_request(options)
590
+ end
591
+
352
592
  # Creates a Amazon CloudWatch RUM app monitor, which collects telemetry
353
593
  # data from your application and sends that data to RUM. The data
354
594
  # includes performance and reliability information such as page load
@@ -473,6 +713,43 @@ module Aws::CloudWatchRUM
473
713
  req.send_request(options)
474
714
  end
475
715
 
716
+ # Deletes a destination for CloudWatch RUM extended metrics, so that the
717
+ # specified app monitor stops sending extended metrics to that
718
+ # destination.
719
+ #
720
+ # @option params [required, String] :app_monitor_name
721
+ # The name of the app monitor that is sending metrics to the destination
722
+ # that you want to delete.
723
+ #
724
+ # @option params [required, String] :destination
725
+ # The type of destination to delete. Valid values are `CloudWatch` and
726
+ # `Evidently`.
727
+ #
728
+ # @option params [String] :destination_arn
729
+ # This parameter is required if `Destination` is `Evidently`. If
730
+ # `Destination` is `CloudWatch`, do not use this parameter. This
731
+ # parameter specifies the ARN of the Evidently experiment that
732
+ # corresponds to the destination to delete.
733
+ #
734
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
735
+ #
736
+ # @example Request syntax with placeholder values
737
+ #
738
+ # resp = client.delete_rum_metrics_destination({
739
+ # app_monitor_name: "AppMonitorName", # required
740
+ # destination: "CloudWatch", # required, accepts CloudWatch, Evidently
741
+ # destination_arn: "DestinationArn",
742
+ # })
743
+ #
744
+ # @see http://docs.aws.amazon.com/goto/WebAPI/rum-2018-05-10/DeleteRumMetricsDestination AWS API Documentation
745
+ #
746
+ # @overload delete_rum_metrics_destination(params = {})
747
+ # @param [Hash] params ({})
748
+ def delete_rum_metrics_destination(params = {}, options = {})
749
+ req = build_request(:delete_rum_metrics_destination, params)
750
+ req.send_request(options)
751
+ end
752
+
476
753
  # Retrieves the complete configuration information for one app monitor.
477
754
  #
478
755
  # @option params [required, String] :name
@@ -590,7 +867,8 @@ module Aws::CloudWatchRUM
590
867
  # account.
591
868
  #
592
869
  # @option params [Integer] :max_results
593
- # The maximum number of results to return in one operation.
870
+ # The maximum number of results to return in one operation. The default
871
+ # is 50. The maximum that you can specify is 100.
594
872
  #
595
873
  # @option params [String] :next_token
596
874
  # Use the token returned by the previous operation to request the next
@@ -629,6 +907,62 @@ module Aws::CloudWatchRUM
629
907
  req.send_request(options)
630
908
  end
631
909
 
910
+ # Returns a list of destinations that you have created to receive RUM
911
+ # extended metrics, for the specified app monitor.
912
+ #
913
+ # For more information about extended metrics, see [AddRumMetrics][1].
914
+ #
915
+ #
916
+ #
917
+ # [1]: https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_AddRumMetrcs.html
918
+ #
919
+ # @option params [required, String] :app_monitor_name
920
+ # The name of the app monitor associated with the destinations that you
921
+ # want to retrieve.
922
+ #
923
+ # @option params [Integer] :max_results
924
+ # The maximum number of results to return in one operation. The default
925
+ # is 50. The maximum that you can specify is 100.
926
+ #
927
+ # To retrieve the remaining results, make another call with the returned
928
+ # `NextToken` value.
929
+ #
930
+ # @option params [String] :next_token
931
+ # Use the token returned by the previous operation to request the next
932
+ # page of results.
933
+ #
934
+ # @return [Types::ListRumMetricsDestinationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
935
+ #
936
+ # * {Types::ListRumMetricsDestinationsResponse#destinations #destinations} => Array&lt;Types::MetricDestinationSummary&gt;
937
+ # * {Types::ListRumMetricsDestinationsResponse#next_token #next_token} => String
938
+ #
939
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
940
+ #
941
+ # @example Request syntax with placeholder values
942
+ #
943
+ # resp = client.list_rum_metrics_destinations({
944
+ # app_monitor_name: "AppMonitorName", # required
945
+ # max_results: 1,
946
+ # next_token: "String",
947
+ # })
948
+ #
949
+ # @example Response structure
950
+ #
951
+ # resp.destinations #=> Array
952
+ # resp.destinations[0].destination #=> String, one of "CloudWatch", "Evidently"
953
+ # resp.destinations[0].destination_arn #=> String
954
+ # resp.destinations[0].iam_role_arn #=> String
955
+ # resp.next_token #=> String
956
+ #
957
+ # @see http://docs.aws.amazon.com/goto/WebAPI/rum-2018-05-10/ListRumMetricsDestinations AWS API Documentation
958
+ #
959
+ # @overload list_rum_metrics_destinations(params = {})
960
+ # @param [Hash] params ({})
961
+ def list_rum_metrics_destinations(params = {}, options = {})
962
+ req = build_request(:list_rum_metrics_destinations, params)
963
+ req.send_request(options)
964
+ end
965
+
632
966
  # Displays the tags associated with a CloudWatch RUM resource.
633
967
  #
634
968
  # @option params [required, String] :resource_arn
@@ -721,6 +1055,59 @@ module Aws::CloudWatchRUM
721
1055
  req.send_request(options)
722
1056
  end
723
1057
 
1058
+ # Creates or updates a destination to receive extended metrics from
1059
+ # CloudWatch RUM. You can send extended metrics to CloudWatch or to a
1060
+ # CloudWatch Evidently experiment.
1061
+ #
1062
+ # For more information about extended metrics, see [AddRumMetrics][1].
1063
+ #
1064
+ #
1065
+ #
1066
+ # [1]: https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_AddRumMetrics.html
1067
+ #
1068
+ # @option params [required, String] :app_monitor_name
1069
+ # The name of the CloudWatch RUM app monitor that will send the metrics.
1070
+ #
1071
+ # @option params [required, String] :destination
1072
+ # Defines the destination to send the metrics to. Valid values are
1073
+ # `CloudWatch` and `Evidently`. If you specify `Evidently`, you must
1074
+ # also specify the ARN of the CloudWatchEvidently experiment that is to
1075
+ # be the destination and an IAM role that has permission to write to the
1076
+ # experiment.
1077
+ #
1078
+ # @option params [String] :destination_arn
1079
+ # Use this parameter only if `Destination` is `Evidently`. This
1080
+ # parameter specifies the ARN of the Evidently experiment that will
1081
+ # receive the extended metrics.
1082
+ #
1083
+ # @option params [String] :iam_role_arn
1084
+ # This parameter is required if `Destination` is `Evidently`. If
1085
+ # `Destination` is `CloudWatch`, do not use this parameter.
1086
+ #
1087
+ # This parameter specifies the ARN of an IAM role that RUM will assume
1088
+ # to write to the Evidently experiment that you are sending metrics to.
1089
+ # This role must have permission to write to that experiment.
1090
+ #
1091
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1092
+ #
1093
+ # @example Request syntax with placeholder values
1094
+ #
1095
+ # resp = client.put_rum_metrics_destination({
1096
+ # app_monitor_name: "AppMonitorName", # required
1097
+ # destination: "CloudWatch", # required, accepts CloudWatch, Evidently
1098
+ # destination_arn: "DestinationArn",
1099
+ # iam_role_arn: "IamRoleArn",
1100
+ # })
1101
+ #
1102
+ # @see http://docs.aws.amazon.com/goto/WebAPI/rum-2018-05-10/PutRumMetricsDestination AWS API Documentation
1103
+ #
1104
+ # @overload put_rum_metrics_destination(params = {})
1105
+ # @param [Hash] params ({})
1106
+ def put_rum_metrics_destination(params = {}, options = {})
1107
+ req = build_request(:put_rum_metrics_destination, params)
1108
+ req.send_request(options)
1109
+ end
1110
+
724
1111
  # Assigns one or more tags (key-value pairs) to the specified CloudWatch
725
1112
  # RUM resource. Currently, the only resources that can be tagged app
726
1113
  # monitors.
@@ -878,6 +1265,73 @@ module Aws::CloudWatchRUM
878
1265
  req.send_request(options)
879
1266
  end
880
1267
 
1268
+ # Modifies one existing metric definition for CloudWatch RUM extended
1269
+ # metrics. For more information about extended metrics, see
1270
+ # [BatchCreateRumMetricsDefinitions][1].
1271
+ #
1272
+ #
1273
+ #
1274
+ # [1]: https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_BatchCreateRumMetricsDefinitions.html
1275
+ #
1276
+ # @option params [required, String] :app_monitor_name
1277
+ # The name of the CloudWatch RUM app monitor that sends these metrics.
1278
+ #
1279
+ # @option params [required, String] :destination
1280
+ # The destination to send the metrics to. Valid values are `CloudWatch`
1281
+ # and `Evidently`. If you specify `Evidently`, you must also specify the
1282
+ # ARN of the CloudWatchEvidently experiment that will receive the
1283
+ # metrics and an IAM role that has permission to write to the
1284
+ # experiment.
1285
+ #
1286
+ # @option params [String] :destination_arn
1287
+ # This parameter is required if `Destination` is `Evidently`. If
1288
+ # `Destination` is `CloudWatch`, do not use this parameter.
1289
+ #
1290
+ # This parameter specifies the ARN of the Evidently experiment that is
1291
+ # to receive the metrics. You must have already defined this experiment
1292
+ # as a valid destination. For more information, see
1293
+ # [PutRumMetricsDestination][1].
1294
+ #
1295
+ #
1296
+ #
1297
+ # [1]: https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_PutRumMetricsDestination.html
1298
+ #
1299
+ # @option params [required, Types::MetricDefinitionRequest] :metric_definition
1300
+ # A structure that contains the new definition that you want to use for
1301
+ # this metric.
1302
+ #
1303
+ # @option params [required, String] :metric_definition_id
1304
+ # The ID of the metric definition to update.
1305
+ #
1306
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1307
+ #
1308
+ # @example Request syntax with placeholder values
1309
+ #
1310
+ # resp = client.update_rum_metric_definition({
1311
+ # app_monitor_name: "AppMonitorName", # required
1312
+ # destination: "CloudWatch", # required, accepts CloudWatch, Evidently
1313
+ # destination_arn: "DestinationArn",
1314
+ # metric_definition: { # required
1315
+ # dimension_keys: {
1316
+ # "DimensionKey" => "DimensionName",
1317
+ # },
1318
+ # event_pattern: "EventPattern",
1319
+ # name: "MetricName", # required
1320
+ # unit_label: "UnitLabel",
1321
+ # value_key: "ValueKey",
1322
+ # },
1323
+ # metric_definition_id: "MetricDefinitionId", # required
1324
+ # })
1325
+ #
1326
+ # @see http://docs.aws.amazon.com/goto/WebAPI/rum-2018-05-10/UpdateRumMetricDefinition AWS API Documentation
1327
+ #
1328
+ # @overload update_rum_metric_definition(params = {})
1329
+ # @param [Hash] params ({})
1330
+ def update_rum_metric_definition(params = {}, options = {})
1331
+ req = build_request(:update_rum_metric_definition, params)
1332
+ req.send_request(options)
1333
+ end
1334
+
881
1335
  # @!endgroup
882
1336
 
883
1337
  # @param params ({})
@@ -891,7 +1345,7 @@ module Aws::CloudWatchRUM
891
1345
  params: params,
892
1346
  config: config)
893
1347
  context[:gem_name] = 'aws-sdk-cloudwatchrum'
894
- context[:gem_version] = '1.3.0'
1348
+ context[:gem_version] = '1.5.0'
895
1349
  Seahorse::Client::Request.new(handlers, context)
896
1350
  end
897
1351