aws-sdk-cloudwatchrum 1.7.0 → 1.9.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: 5c4ffa715c6ef074119e4f51f2289ad49a93231de51a2359e0ea1ed13f338de7
4
- data.tar.gz: bc1c8f95291a15fc19905917cba8cd8bb81c37d3d94d45fa2bceac3c467f254e
3
+ metadata.gz: 9b0a930f1aeddabdd05066e8aed44696135857a631d28b77dd755c17f9700a17
4
+ data.tar.gz: b019010acf76af8382445a3e396cfda0b808705f06059efba15a11c8b4eabeb3
5
5
  SHA512:
6
- metadata.gz: 63cf009014891534d489afd7196187759d92f1bf08bf7c47bb5edf110f0b749527f219725263fc84409a348c25d1d9cebe379553b5a9215d730cca1b1d57bf4c
7
- data.tar.gz: 2ed9bfe8e31b06f402416befa77988a07e50a3f6c8972f5a28d8d975870683faccaa8b5c7d777a20a2bb2946545347955450c5b6045805880619a07cca038795
6
+ metadata.gz: c68cc9c88c896706e1946e39e2bbbfeae47df4be0ebd9e5ce696c0609d6541251fa00b18512e1978d68644c72b500f39b0320b3e81856ba2f12a30263e981452
7
+ data.tar.gz: f061dd498ab3929eca0c1e54eeff59cc964a97848d57282275c1b97310a9eb24c3848baab18691c215f09e39a2ba99179f3e4ca8b9f1d3ee1e3da5006a267c15
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.9.0 (2023-02-22)
5
+ ------------------
6
+
7
+ * Feature - CloudWatch RUM now supports CloudWatch Custom Metrics
8
+
9
+ 1.8.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.7.0 (2022-11-17)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.0
1
+ 1.9.0
@@ -368,21 +368,37 @@ module Aws::CloudWatchRUM
368
368
 
369
369
  # @!group API Operations
370
370
 
371
- # Specifies the extended metrics that you want a CloudWatch RUM app
372
- # monitor to send to a destination. Valid destinations include
373
- # CloudWatch and Evidently.
371
+ # Specifies the extended metrics and custom metrics that you want a
372
+ # CloudWatch RUM app monitor to send to a destination. Valid
373
+ # destinations include CloudWatch and Evidently.
374
374
  #
375
375
  # By default, RUM app monitors send some metrics to CloudWatch. These
376
376
  # default metrics are listed in [CloudWatch metrics that you can collect
377
377
  # with CloudWatch RUM][1].
378
378
  #
379
- # If you also send extended metrics, you can send metrics to Evidently
380
- # as well as CloudWatch, and you can also optionally send the metrics
381
- # with additional dimensions. The valid dimension names for the
382
- # additional dimensions are `BrowserName`, `CountryCode`, `DeviceType`,
383
- # `FileType`, `OSName`, and `PageId`. For more information, see [
384
- # Extended metrics that you can send to CloudWatch and CloudWatch
385
- # Evidently][2].
379
+ # In addition to these default metrics, you can choose to send extended
380
+ # metrics or custom metrics or both.
381
+ #
382
+ # * Extended metrics enable you to send metrics with additional
383
+ # dimensions not included in the default metrics. You can also send
384
+ # extended metrics to Evidently as well as CloudWatch. The valid
385
+ # dimension names for the additional dimensions for extended metrics
386
+ # are `BrowserName`, `CountryCode`, `DeviceType`, `FileType`,
387
+ # `OSName`, and `PageId`. For more information, see [ Extended metrics
388
+ # that you can send to CloudWatch and CloudWatch Evidently][2].
389
+ #
390
+ # * Custom metrics are metrics that you define. You can send custom
391
+ # metrics to CloudWatch or to CloudWatch Evidently or to both. With
392
+ # custom metrics, you can use any metric name and namespace, and to
393
+ # derive the metrics you can use any custom events, built-in events,
394
+ # custom attributes, or default attributes.
395
+ #
396
+ # You can't send custom metrics to the `AWS/RUM` namespace. You must
397
+ # send custom metrics to a custom namespace that you define. The
398
+ # namespace that you use can't start with `AWS/`. CloudWatch RUM
399
+ # prepends `RUM/CustomMetrics/` to the custom namespace that you
400
+ # define, so the final namespace for your metrics in CloudWatch is
401
+ # `RUM/CustomMetrics/your-custom-namespace `.
386
402
  #
387
403
  # The maximum number of metric definitions that you can specify in one
388
404
  # `BatchCreateRumMetricDefinitions` operation is 200.
@@ -390,10 +406,10 @@ module Aws::CloudWatchRUM
390
406
  # The maximum number of metric definitions that one destination can
391
407
  # contain is 2000.
392
408
  #
393
- # Extended metrics sent are charged as CloudWatch custom metrics. Each
394
- # combination of additional dimension name and dimension value counts as
395
- # a custom metric. For more information, see [Amazon CloudWatch
396
- # Pricing][3].
409
+ # Extended metrics sent to CloudWatch and RUM custom metrics are charged
410
+ # as CloudWatch custom metrics. Each combination of additional dimension
411
+ # name and dimension value counts as a custom metric. For more
412
+ # information, see [Amazon CloudWatch Pricing][3].
397
413
  #
398
414
  # You must have already created a destination for the metrics before you
399
415
  # send them. For more information, see [PutRumMetricsDestination][4].
@@ -455,6 +471,7 @@ module Aws::CloudWatchRUM
455
471
  # },
456
472
  # event_pattern: "EventPattern",
457
473
  # name: "MetricName", # required
474
+ # namespace: "Namespace",
458
475
  # unit_label: "UnitLabel",
459
476
  # value_key: "ValueKey",
460
477
  # },
@@ -470,6 +487,7 @@ module Aws::CloudWatchRUM
470
487
  # resp.errors[0].metric_definition.dimension_keys["DimensionKey"] #=> String
471
488
  # resp.errors[0].metric_definition.event_pattern #=> String
472
489
  # resp.errors[0].metric_definition.name #=> String
490
+ # resp.errors[0].metric_definition.namespace #=> String
473
491
  # resp.errors[0].metric_definition.unit_label #=> String
474
492
  # resp.errors[0].metric_definition.value_key #=> String
475
493
  # resp.metric_definitions #=> Array
@@ -478,6 +496,7 @@ module Aws::CloudWatchRUM
478
496
  # resp.metric_definitions[0].event_pattern #=> String
479
497
  # resp.metric_definitions[0].metric_definition_id #=> String
480
498
  # resp.metric_definitions[0].name #=> String
499
+ # resp.metric_definitions[0].namespace #=> String
481
500
  # resp.metric_definitions[0].unit_label #=> String
482
501
  # resp.metric_definitions[0].value_key #=> String
483
502
  #
@@ -609,6 +628,7 @@ module Aws::CloudWatchRUM
609
628
  # resp.metric_definitions[0].event_pattern #=> String
610
629
  # resp.metric_definitions[0].metric_definition_id #=> String
611
630
  # resp.metric_definitions[0].name #=> String
631
+ # resp.metric_definitions[0].namespace #=> String
612
632
  # resp.metric_definitions[0].unit_label #=> String
613
633
  # resp.metric_definitions[0].value_key #=> String
614
634
  # resp.next_token #=> String
@@ -1083,20 +1103,20 @@ module Aws::CloudWatchRUM
1083
1103
  # name: "String",
1084
1104
  # version: "String",
1085
1105
  # },
1086
- # batch_id: "String", # required
1087
- # id: "AppMonitorId", # required
1106
+ # batch_id: "PutRumEventsRequestBatchIdString", # required
1107
+ # id: "PutRumEventsRequestIdString", # required
1088
1108
  # rum_events: [ # required
1089
1109
  # {
1090
1110
  # details: "JsonValue", # required
1091
- # id: "String", # required
1111
+ # id: "RumEventIdString", # required
1092
1112
  # metadata: "JsonValue",
1093
1113
  # timestamp: Time.now, # required
1094
1114
  # type: "String", # required
1095
1115
  # },
1096
1116
  # ],
1097
1117
  # user_details: { # required
1098
- # session_id: "String",
1099
- # user_id: "String",
1118
+ # session_id: "UserDetailsSessionIdString",
1119
+ # user_id: "UserDetailsUserIdString",
1100
1120
  # },
1101
1121
  # })
1102
1122
  #
@@ -1113,11 +1133,12 @@ module Aws::CloudWatchRUM
1113
1133
  # CloudWatch RUM. You can send extended metrics to CloudWatch or to a
1114
1134
  # CloudWatch Evidently experiment.
1115
1135
  #
1116
- # For more information about extended metrics, see [AddRumMetrics][1].
1136
+ # For more information about extended metrics, see
1137
+ # [BatchCreateRumMetricDefinitions][1].
1117
1138
  #
1118
1139
  #
1119
1140
  #
1120
- # [1]: https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_AddRumMetrics.html
1141
+ # [1]: https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_BatchCreateRumMetricDefinitions.html
1121
1142
  #
1122
1143
  # @option params [required, String] :app_monitor_name
1123
1144
  # The name of the CloudWatch RUM app monitor that will send the metrics.
@@ -1384,6 +1405,7 @@ module Aws::CloudWatchRUM
1384
1405
  # },
1385
1406
  # event_pattern: "EventPattern",
1386
1407
  # name: "MetricName", # required
1408
+ # namespace: "Namespace",
1387
1409
  # unit_label: "UnitLabel",
1388
1410
  # value_key: "ValueKey",
1389
1411
  # },
@@ -1412,7 +1434,7 @@ module Aws::CloudWatchRUM
1412
1434
  params: params,
1413
1435
  config: config)
1414
1436
  context[:gem_name] = 'aws-sdk-cloudwatchrum'
1415
- context[:gem_version] = '1.7.0'
1437
+ context[:gem_version] = '1.9.0'
1416
1438
  Seahorse::Client::Request.new(handlers, context)
1417
1439
  end
1418
1440
 
@@ -81,8 +81,11 @@ module Aws::CloudWatchRUM
81
81
  MetricDestinationSummary = Shapes::StructureShape.new(name: 'MetricDestinationSummary')
82
82
  MetricDestinationSummaryList = Shapes::ListShape.new(name: 'MetricDestinationSummaryList')
83
83
  MetricName = Shapes::StringShape.new(name: 'MetricName')
84
+ Namespace = Shapes::StringShape.new(name: 'Namespace')
84
85
  Pages = Shapes::ListShape.new(name: 'Pages')
85
86
  PutRumEventsRequest = Shapes::StructureShape.new(name: 'PutRumEventsRequest')
87
+ PutRumEventsRequestBatchIdString = Shapes::StringShape.new(name: 'PutRumEventsRequestBatchIdString')
88
+ PutRumEventsRequestIdString = Shapes::StringShape.new(name: 'PutRumEventsRequestIdString')
86
89
  PutRumEventsResponse = Shapes::StructureShape.new(name: 'PutRumEventsResponse')
87
90
  PutRumMetricsDestinationRequest = Shapes::StructureShape.new(name: 'PutRumMetricsDestinationRequest')
88
91
  PutRumMetricsDestinationResponse = Shapes::StructureShape.new(name: 'PutRumMetricsDestinationResponse')
@@ -94,6 +97,7 @@ module Aws::CloudWatchRUM
94
97
  QueryTimestamp = Shapes::IntegerShape.new(name: 'QueryTimestamp')
95
98
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
96
99
  RumEvent = Shapes::StructureShape.new(name: 'RumEvent')
100
+ RumEventIdString = Shapes::StringShape.new(name: 'RumEventIdString')
97
101
  RumEventList = Shapes::ListShape.new(name: 'RumEventList')
98
102
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
99
103
  SessionSampleRate = Shapes::FloatShape.new(name: 'SessionSampleRate')
@@ -120,6 +124,8 @@ module Aws::CloudWatchRUM
120
124
  UpdateRumMetricDefinitionResponse = Shapes::StructureShape.new(name: 'UpdateRumMetricDefinitionResponse')
121
125
  Url = Shapes::StringShape.new(name: 'Url')
122
126
  UserDetails = Shapes::StructureShape.new(name: 'UserDetails')
127
+ UserDetailsSessionIdString = Shapes::StringShape.new(name: 'UserDetailsSessionIdString')
128
+ UserDetailsUserIdString = Shapes::StringShape.new(name: 'UserDetailsUserIdString')
123
129
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
124
130
  ValueKey = Shapes::StringShape.new(name: 'ValueKey')
125
131
 
@@ -302,6 +308,7 @@ module Aws::CloudWatchRUM
302
308
  MetricDefinition.add_member(:event_pattern, Shapes::ShapeRef.new(shape: EventPattern, location_name: "EventPattern"))
303
309
  MetricDefinition.add_member(:metric_definition_id, Shapes::ShapeRef.new(shape: MetricDefinitionId, required: true, location_name: "MetricDefinitionId"))
304
310
  MetricDefinition.add_member(:name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "Name"))
311
+ MetricDefinition.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
305
312
  MetricDefinition.add_member(:unit_label, Shapes::ShapeRef.new(shape: UnitLabel, location_name: "UnitLabel"))
306
313
  MetricDefinition.add_member(:value_key, Shapes::ShapeRef.new(shape: ValueKey, location_name: "ValueKey"))
307
314
  MetricDefinition.struct_class = Types::MetricDefinition
@@ -311,6 +318,7 @@ module Aws::CloudWatchRUM
311
318
  MetricDefinitionRequest.add_member(:dimension_keys, Shapes::ShapeRef.new(shape: DimensionKeysMap, location_name: "DimensionKeys"))
312
319
  MetricDefinitionRequest.add_member(:event_pattern, Shapes::ShapeRef.new(shape: EventPattern, location_name: "EventPattern"))
313
320
  MetricDefinitionRequest.add_member(:name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "Name"))
321
+ MetricDefinitionRequest.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
314
322
  MetricDefinitionRequest.add_member(:unit_label, Shapes::ShapeRef.new(shape: UnitLabel, location_name: "UnitLabel"))
315
323
  MetricDefinitionRequest.add_member(:value_key, Shapes::ShapeRef.new(shape: ValueKey, location_name: "ValueKey"))
316
324
  MetricDefinitionRequest.struct_class = Types::MetricDefinitionRequest
@@ -329,8 +337,8 @@ module Aws::CloudWatchRUM
329
337
  Pages.member = Shapes::ShapeRef.new(shape: Url)
330
338
 
331
339
  PutRumEventsRequest.add_member(:app_monitor_details, Shapes::ShapeRef.new(shape: AppMonitorDetails, required: true, location_name: "AppMonitorDetails"))
332
- PutRumEventsRequest.add_member(:batch_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "BatchId"))
333
- PutRumEventsRequest.add_member(:id, Shapes::ShapeRef.new(shape: AppMonitorId, required: true, location: "uri", location_name: "Id"))
340
+ PutRumEventsRequest.add_member(:batch_id, Shapes::ShapeRef.new(shape: PutRumEventsRequestBatchIdString, required: true, location_name: "BatchId"))
341
+ PutRumEventsRequest.add_member(:id, Shapes::ShapeRef.new(shape: PutRumEventsRequestIdString, required: true, location: "uri", location_name: "Id"))
334
342
  PutRumEventsRequest.add_member(:rum_events, Shapes::ShapeRef.new(shape: RumEventList, required: true, location_name: "RumEvents"))
335
343
  PutRumEventsRequest.add_member(:user_details, Shapes::ShapeRef.new(shape: UserDetails, required: true, location_name: "UserDetails"))
336
344
  PutRumEventsRequest.struct_class = Types::PutRumEventsRequest
@@ -359,7 +367,7 @@ module Aws::CloudWatchRUM
359
367
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
360
368
 
361
369
  RumEvent.add_member(:details, Shapes::ShapeRef.new(shape: JsonValue, required: true, location_name: "details", metadata: {"jsonvalue"=>true}))
362
- RumEvent.add_member(:id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "id"))
370
+ RumEvent.add_member(:id, Shapes::ShapeRef.new(shape: RumEventIdString, required: true, location_name: "id"))
363
371
  RumEvent.add_member(:metadata, Shapes::ShapeRef.new(shape: JsonValue, location_name: "metadata", metadata: {"jsonvalue"=>true}))
364
372
  RumEvent.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "timestamp"))
365
373
  RumEvent.add_member(:type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "type"))
@@ -417,8 +425,8 @@ module Aws::CloudWatchRUM
417
425
 
418
426
  UpdateRumMetricDefinitionResponse.struct_class = Types::UpdateRumMetricDefinitionResponse
419
427
 
420
- UserDetails.add_member(:session_id, Shapes::ShapeRef.new(shape: String, location_name: "sessionId"))
421
- UserDetails.add_member(:user_id, Shapes::ShapeRef.new(shape: String, location_name: "userId"))
428
+ UserDetails.add_member(:session_id, Shapes::ShapeRef.new(shape: UserDetailsSessionIdString, location_name: "sessionId"))
429
+ UserDetails.add_member(:user_id, Shapes::ShapeRef.new(shape: UserDetailsUserIdString, location_name: "userId"))
422
430
  UserDetails.struct_class = Types::UserDetails
423
431
 
424
432
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
@@ -9,103 +9,46 @@
9
9
 
10
10
  module Aws::CloudWatchRUM
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
21
25
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://rum-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://rum-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://rum.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
46
+ return Aws::Endpoints::Endpoint.new(url: "https://rum.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
+ end
48
+ end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
+ raise ArgumentError, 'No endpoint could be resolved'
24
51
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
52
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
- cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
- dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
36
- ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
37
- ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
38
- ZW5kcG9pbnQgZG9lcyBub3Qgc3VwcG9ydCBkdWFsLXN0YWNrLCBkaXNwYXRj
39
- aGluZyB0aGUgcmVxdWVzdCBNQVkgcmV0dXJuIGFuIGVycm9yLiIsInR5cGUi
40
- OiJCb29sZWFuIn0sIlVzZUZJUFMiOnsiYnVpbHRJbiI6IkFXUzo6VXNlRklQ
41
- UyIsInJlcXVpcmVkIjp0cnVlLCJkZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRh
42
- dGlvbiI6IldoZW4gdHJ1ZSwgc2VuZCB0aGlzIHJlcXVlc3QgdG8gdGhlIEZJ
43
-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cGUiOiJl
93
- cnJvciJ9XX0seyJjb25kaXRpb25zIjpbeyJmbiI6ImJvb2xlYW5FcXVhbHMi
94
- LCJhcmd2IjpbeyJyZWYiOiJVc2VEdWFsU3RhY2sifSx0cnVlXX1dLCJ0eXBl
95
- IjoidHJlZSIsInJ1bGVzIjpbeyJjb25kaXRpb25zIjpbeyJmbiI6ImJvb2xl
96
- YW5FcXVhbHMiLCJhcmd2IjpbdHJ1ZSx7ImZuIjoiZ2V0QXR0ciIsImFyZ3Yi
97
- Olt7InJlZiI6IlBhcnRpdGlvblJlc3VsdCJ9LCJzdXBwb3J0c0R1YWxTdGFj
98
- ayJdfV19XSwidHlwZSI6InRyZWUiLCJydWxlcyI6W3siY29uZGl0aW9ucyI6
99
- W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vcnVtLntSZWdpb259LntQ
100
- YXJ0aXRpb25SZXN1bHQjZHVhbFN0YWNrRG5zU3VmZml4fSIsInByb3BlcnRp
101
- ZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX0seyJj
102
- b25kaXRpb25zIjpbXSwiZXJyb3IiOiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBi
103
- dXQgdGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qgc3VwcG9ydCBEdWFsU3RhY2si
104
- LCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50
105
- Ijp7InVybCI6Imh0dHBzOi8vcnVtLntSZWdpb259LntQYXJ0aXRpb25SZXN1
106
- bHQjZG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0s
107
- InR5cGUiOiJlbmRwb2ludCJ9XX1dfQ==
108
-
109
- JSON
110
53
  end
111
54
  end
@@ -101,21 +101,6 @@ module Aws::CloudWatchRUM
101
101
  # This structure contains much of the configuration data for the app
102
102
  # monitor.
103
103
  #
104
- # @note When making an API call, you may pass AppMonitorConfiguration
105
- # data as a hash:
106
- #
107
- # {
108
- # allow_cookies: false,
109
- # enable_x_ray: false,
110
- # excluded_pages: ["Url"],
111
- # favorite_pages: ["String"],
112
- # guest_role_arn: "Arn",
113
- # identity_pool_id: "IdentityPoolId",
114
- # included_pages: ["Url"],
115
- # session_sample_rate: 1.0,
116
- # telemetries: ["errors"], # accepts errors, performance, http
117
- # }
118
- #
119
104
  # @!attribute [rw] allow_cookies
120
105
  # If you set this to `true`, the RUM web client sets two cookies, a
121
106
  # session cookie and a user cookie. The cookies allow the RUM web
@@ -215,15 +200,6 @@ module Aws::CloudWatchRUM
215
200
 
216
201
  # A structure that contains information about the RUM app monitor.
217
202
  #
218
- # @note When making an API call, you may pass AppMonitorDetails
219
- # data as a hash:
220
- #
221
- # {
222
- # id: "String",
223
- # name: "String",
224
- # version: "String",
225
- # }
226
- #
227
203
  # @!attribute [rw] id
228
204
  # The unique ID of the app monitor.
229
205
  # @return [String]
@@ -311,26 +287,6 @@ module Aws::CloudWatchRUM
311
287
  include Aws::Structure
312
288
  end
313
289
 
314
- # @note When making an API call, you may pass BatchCreateRumMetricDefinitionsRequest
315
- # data as a hash:
316
- #
317
- # {
318
- # app_monitor_name: "AppMonitorName", # required
319
- # destination: "CloudWatch", # required, accepts CloudWatch, Evidently
320
- # destination_arn: "DestinationArn",
321
- # metric_definitions: [ # required
322
- # {
323
- # dimension_keys: {
324
- # "DimensionKey" => "DimensionName",
325
- # },
326
- # event_pattern: "EventPattern",
327
- # name: "MetricName", # required
328
- # unit_label: "UnitLabel",
329
- # value_key: "ValueKey",
330
- # },
331
- # ],
332
- # }
333
- #
334
290
  # @!attribute [rw] app_monitor_name
335
291
  # The name of the CloudWatch RUM app monitor that is to send the
336
292
  # metrics.
@@ -420,16 +376,6 @@ module Aws::CloudWatchRUM
420
376
  include Aws::Structure
421
377
  end
422
378
 
423
- # @note When making an API call, you may pass BatchDeleteRumMetricDefinitionsRequest
424
- # data as a hash:
425
- #
426
- # {
427
- # app_monitor_name: "AppMonitorName", # required
428
- # destination: "CloudWatch", # required, accepts CloudWatch, Evidently
429
- # destination_arn: "DestinationArn",
430
- # metric_definition_ids: ["MetricDefinitionId"], # required
431
- # }
432
- #
433
379
  # @!attribute [rw] app_monitor_name
434
380
  # The name of the CloudWatch RUM app monitor that is sending these
435
381
  # metrics.
@@ -484,17 +430,6 @@ module Aws::CloudWatchRUM
484
430
  include Aws::Structure
485
431
  end
486
432
 
487
- # @note When making an API call, you may pass BatchGetRumMetricDefinitionsRequest
488
- # data as a hash:
489
- #
490
- # {
491
- # app_monitor_name: "AppMonitorName", # required
492
- # destination: "CloudWatch", # required, accepts CloudWatch, Evidently
493
- # destination_arn: "DestinationArn",
494
- # max_results: 1,
495
- # next_token: "String",
496
- # }
497
- #
498
433
  # @!attribute [rw] app_monitor_name
499
434
  # The name of the CloudWatch RUM app monitor that is sending the
500
435
  # metrics.
@@ -581,32 +516,6 @@ module Aws::CloudWatchRUM
581
516
  include Aws::Structure
582
517
  end
583
518
 
584
- # @note When making an API call, you may pass CreateAppMonitorRequest
585
- # data as a hash:
586
- #
587
- # {
588
- # app_monitor_configuration: {
589
- # allow_cookies: false,
590
- # enable_x_ray: false,
591
- # excluded_pages: ["Url"],
592
- # favorite_pages: ["String"],
593
- # guest_role_arn: "Arn",
594
- # identity_pool_id: "IdentityPoolId",
595
- # included_pages: ["Url"],
596
- # session_sample_rate: 1.0,
597
- # telemetries: ["errors"], # accepts errors, performance, http
598
- # },
599
- # custom_events: {
600
- # status: "ENABLED", # accepts ENABLED, DISABLED
601
- # },
602
- # cw_log_enabled: false,
603
- # domain: "AppMonitorDomain", # required
604
- # name: "AppMonitorName", # required
605
- # tags: {
606
- # "TagKey" => "TagValue",
607
- # },
608
- # }
609
- #
610
519
  # @!attribute [rw] app_monitor_configuration
611
520
  # A structure that contains much of the configuration data for the app
612
521
  # monitor. If you are using Amazon Cognito for authorization, you must
@@ -705,13 +614,6 @@ module Aws::CloudWatchRUM
705
614
  # A structure that contains information about custom events for this app
706
615
  # monitor.
707
616
  #
708
- # @note When making an API call, you may pass CustomEvents
709
- # data as a hash:
710
- #
711
- # {
712
- # status: "ENABLED", # accepts ENABLED, DISABLED
713
- # }
714
- #
715
617
  # @!attribute [rw] status
716
618
  # Specifies whether this app monitor allows the web client to define
717
619
  # and send custom events. The default is for custom events to be
@@ -768,13 +670,6 @@ module Aws::CloudWatchRUM
768
670
  include Aws::Structure
769
671
  end
770
672
 
771
- # @note When making an API call, you may pass DeleteAppMonitorRequest
772
- # data as a hash:
773
- #
774
- # {
775
- # name: "AppMonitorName", # required
776
- # }
777
- #
778
673
  # @!attribute [rw] name
779
674
  # The name of the app monitor to delete.
780
675
  # @return [String]
@@ -791,15 +686,6 @@ module Aws::CloudWatchRUM
791
686
  #
792
687
  class DeleteAppMonitorResponse < Aws::EmptyStructure; end
793
688
 
794
- # @note When making an API call, you may pass DeleteRumMetricsDestinationRequest
795
- # data as a hash:
796
- #
797
- # {
798
- # app_monitor_name: "AppMonitorName", # required
799
- # destination: "CloudWatch", # required, accepts CloudWatch, Evidently
800
- # destination_arn: "DestinationArn",
801
- # }
802
- #
803
689
  # @!attribute [rw] app_monitor_name
804
690
  # The name of the app monitor that is sending metrics to the
805
691
  # destination that you want to delete.
@@ -831,25 +717,6 @@ module Aws::CloudWatchRUM
831
717
  #
832
718
  class DeleteRumMetricsDestinationResponse < Aws::EmptyStructure; end
833
719
 
834
- # @note When making an API call, you may pass GetAppMonitorDataRequest
835
- # data as a hash:
836
- #
837
- # {
838
- # filters: [
839
- # {
840
- # name: "QueryFilterKey",
841
- # values: ["QueryFilterValue"],
842
- # },
843
- # ],
844
- # max_results: 1,
845
- # name: "AppMonitorName", # required
846
- # next_token: "Token",
847
- # time_range: { # required
848
- # after: 1, # required
849
- # before: 1,
850
- # },
851
- # }
852
- #
853
720
  # @!attribute [rw] filters
854
721
  # An array of structures that you can use to filter the results to
855
722
  # those that match one or more sets of key-value pairs that you
@@ -905,13 +772,6 @@ module Aws::CloudWatchRUM
905
772
  include Aws::Structure
906
773
  end
907
774
 
908
- # @note When making an API call, you may pass GetAppMonitorRequest
909
- # data as a hash:
910
- #
911
- # {
912
- # name: "AppMonitorName", # required
913
- # }
914
- #
915
775
  # @!attribute [rw] name
916
776
  # The app monitor to retrieve information for.
917
777
  # @return [String]
@@ -955,14 +815,6 @@ module Aws::CloudWatchRUM
955
815
  include Aws::Structure
956
816
  end
957
817
 
958
- # @note When making an API call, you may pass ListAppMonitorsRequest
959
- # data as a hash:
960
- #
961
- # {
962
- # max_results: 1,
963
- # next_token: "String",
964
- # }
965
- #
966
818
  # @!attribute [rw] max_results
967
819
  # The maximum number of results to return in one operation. The
968
820
  # default is 50. The maximum that you can specify is 100.
@@ -1001,15 +853,6 @@ module Aws::CloudWatchRUM
1001
853
  include Aws::Structure
1002
854
  end
1003
855
 
1004
- # @note When making an API call, you may pass ListRumMetricsDestinationsRequest
1005
- # data as a hash:
1006
- #
1007
- # {
1008
- # app_monitor_name: "AppMonitorName", # required
1009
- # max_results: 1,
1010
- # next_token: "String",
1011
- # }
1012
- #
1013
856
  # @!attribute [rw] app_monitor_name
1014
857
  # The name of the app monitor associated with the destinations that
1015
858
  # you want to retrieve.
@@ -1057,13 +900,6 @@ module Aws::CloudWatchRUM
1057
900
  include Aws::Structure
1058
901
  end
1059
902
 
1060
- # @note When making an API call, you may pass ListTagsForResourceRequest
1061
- # data as a hash:
1062
- #
1063
- # {
1064
- # resource_arn: "Arn", # required
1065
- # }
1066
- #
1067
903
  # @!attribute [rw] resource_arn
1068
904
  # The ARN of the resource that you want to see the tags of.
1069
905
  # @return [String]
@@ -1129,6 +965,12 @@ module Aws::CloudWatchRUM
1129
965
  # The name of the metric that is defined in this structure.
1130
966
  # @return [String]
1131
967
  #
968
+ # @!attribute [rw] namespace
969
+ # If this metric definition is for a custom metric instead of an
970
+ # extended metric, this field displays the metric namespace that the
971
+ # custom metric is published to.
972
+ # @return [String]
973
+ #
1132
974
  # @!attribute [rw] unit_label
1133
975
  # Use this field only if you are sending this metric to CloudWatch. It
1134
976
  # defines the CloudWatch metric unit that this metric is measured in.
@@ -1146,92 +988,151 @@ module Aws::CloudWatchRUM
1146
988
  :event_pattern,
1147
989
  :metric_definition_id,
1148
990
  :name,
991
+ :namespace,
1149
992
  :unit_label,
1150
993
  :value_key)
1151
994
  SENSITIVE = []
1152
995
  include Aws::Structure
1153
996
  end
1154
997
 
1155
- # Use this structure to define one extended metric that RUM will send to
1156
- # CloudWatch or CloudWatch Evidently. For more information, see [
1157
- # Additional metrics that you can send to CloudWatch and CloudWatch
1158
- # Evidently][1].
998
+ # Use this structure to define one extended metric or custom metric that
999
+ # RUM will send to CloudWatch or CloudWatch Evidently. For more
1000
+ # information, see [ Additional metrics that you can send to CloudWatch
1001
+ # and CloudWatch Evidently][1].
1159
1002
  #
1160
- # Only certain combinations of values for `Name`, `ValueKey`, and
1161
- # `EventPattern` are valid. In addition to what is displayed in the list
1162
- # below, the `EventPattern` can also include information used by the
1163
- # `DimensionKeys` field.
1003
+ # This structure is validated differently for extended metrics and
1004
+ # custom metrics. For extended metrics that are sent to the `AWS/RUM`
1005
+ # namespace, the following validations apply:
1164
1006
  #
1165
- # * If `Name` is `PerformanceNavigationDuration`, then `ValueKey`must be
1166
- # `event_details.duration` and the `EventPattern` must include
1167
- # `\{"event_type":["com.amazon.rum.performance_navigation_event"]\}`
1007
+ # * The `Namespace` parameter must be omitted or set to `AWS/RUM`.
1168
1008
  #
1169
- # * If `Name` is `PerformanceResourceDuration`, then `ValueKey`must be
1170
- # `event_details.duration` and the `EventPattern` must include
1171
- # `\{"event_type":["com.amazon.rum.performance_resource_event"]\}`
1009
+ # * Only certain combinations of values for `Name`, `ValueKey`, and
1010
+ # `EventPattern` are valid. In addition to what is displayed in the
1011
+ # list below, the `EventPattern` can also include information used by
1012
+ # the `DimensionKeys` field.
1172
1013
  #
1173
- # * If `Name` is `NavigationSatisfiedTransaction`, then `ValueKey`must
1174
- # be null and the `EventPattern` must include `\{ "event_type":
1175
- # ["com.amazon.rum.performance_navigation_event"], "event_details": \{
1176
- # "duration": [\{ "numeric": [">",2000] \}] \} \}`
1014
+ # * If `Name` is `PerformanceNavigationDuration`, then `ValueKey`must
1015
+ # be `event_details.duration` and the `EventPattern` must include
1016
+ # `\{"event_type":["com.amazon.rum.performance_navigation_event"]\}`
1177
1017
  #
1178
- # * If `Name` is `NavigationToleratedTransaction`, then `ValueKey`must
1179
- # be null and the `EventPattern` must include `\{ "event_type":
1180
- # ["com.amazon.rum.performance_navigation_event"], "event_details": \{
1181
- # "duration": [\{ "numeric": [">=",2000,"<"8000] \}] \} \}`
1018
+ # * If `Name` is `PerformanceResourceDuration`, then `ValueKey`must be
1019
+ # `event_details.duration` and the `EventPattern` must include
1020
+ # `\{"event_type":["com.amazon.rum.performance_resource_event"]\}`
1182
1021
  #
1183
- # * If `Name` is `NavigationFrustratedTransaction`, then `ValueKey`must
1184
- # be null and the `EventPattern` must include `\{ "event_type":
1185
- # ["com.amazon.rum.performance_navigation_event"], "event_details": \{
1186
- # "duration": [\{ "numeric": [">=",8000] \}] \} \}`
1022
+ # * If `Name` is `NavigationSatisfiedTransaction`, then `ValueKey`must
1023
+ # be null and the `EventPattern` must include `\{ "event_type":
1024
+ # ["com.amazon.rum.performance_navigation_event"], "event_details":
1025
+ # \{ "duration": [\{ "numeric": [">",2000] \}] \} \}`
1187
1026
  #
1188
- # * If `Name` is `WebVitalsCumulativeLayoutShift`, then `ValueKey`must
1189
- # be `event_details.value` and the `EventPattern` must include
1190
- # `\{"event_type":["com.amazon.rum.cumulative_layout_shift_event"]\}`
1027
+ # * If `Name` is `NavigationToleratedTransaction`, then `ValueKey`must
1028
+ # be null and the `EventPattern` must include `\{ "event_type":
1029
+ # ["com.amazon.rum.performance_navigation_event"], "event_details":
1030
+ # \{ "duration": [\{ "numeric": [">=",2000,"<"8000] \}] \} \}`
1191
1031
  #
1192
- # * If `Name` is `WebVitalsFirstInputDelay`, then `ValueKey`must be
1193
- # `event_details.value` and the `EventPattern` must include
1194
- # `\{"event_type":["com.amazon.rum.first_input_delay_event"]\}`
1032
+ # * If `Name` is `NavigationFrustratedTransaction`, then
1033
+ # `ValueKey`must be null and the `EventPattern` must include `\{
1034
+ # "event_type": ["com.amazon.rum.performance_navigation_event"],
1035
+ # "event_details": \{ "duration": [\{ "numeric": [">=",8000] \}] \}
1036
+ # \}`
1195
1037
  #
1196
- # * If `Name` is `WebVitalsLargestContentfulPaint`, then `ValueKey`must
1197
- # be `event_details.value` and the `EventPattern` must include
1198
- # `\{"event_type":["com.amazon.rum.largest_contentful_paint_event"]\}`
1038
+ # * If `Name` is `WebVitalsCumulativeLayoutShift`, then `ValueKey`must
1039
+ # be `event_details.value` and the `EventPattern` must include
1040
+ # `\{"event_type":["com.amazon.rum.cumulative_layout_shift_event"]\}`
1199
1041
  #
1200
- # * If `Name` is `JsErrorCount`, then `ValueKey`must be null and the
1201
- # `EventPattern` must include
1202
- # `\{"event_type":["com.amazon.rum.js_error_event"]\}`
1042
+ # * If `Name` is `WebVitalsFirstInputDelay`, then `ValueKey`must be
1043
+ # `event_details.value` and the `EventPattern` must include
1044
+ # `\{"event_type":["com.amazon.rum.first_input_delay_event"]\}`
1203
1045
  #
1204
- # * If `Name` is `HttpErrorCount`, then `ValueKey`must be null and the
1205
- # `EventPattern` must include
1206
- # `\{"event_type":["com.amazon.rum.http_event"]\}`
1046
+ # * If `Name` is `WebVitalsLargestContentfulPaint`, then
1047
+ # `ValueKey`must be `event_details.value` and the `EventPattern`
1048
+ # must include
1049
+ # `\{"event_type":["com.amazon.rum.largest_contentful_paint_event"]\}`
1207
1050
  #
1208
- # * If `Name` is `SessionCount`, then `ValueKey`must be null and the
1209
- # `EventPattern` must include
1210
- # `\{"event_type":["com.amazon.rum.session_start_event"]\}`
1051
+ # * If `Name` is `JsErrorCount`, then `ValueKey`must be null and the
1052
+ # `EventPattern` must include
1053
+ # `\{"event_type":["com.amazon.rum.js_error_event"]\}`
1211
1054
  #
1055
+ # * If `Name` is `HttpErrorCount`, then `ValueKey`must be null and the
1056
+ # `EventPattern` must include
1057
+ # `\{"event_type":["com.amazon.rum.http_event"]\}`
1212
1058
  #
1059
+ # * If `Name` is `SessionCount`, then `ValueKey`must be null and the
1060
+ # `EventPattern` must include
1061
+ # `\{"event_type":["com.amazon.rum.session_start_event"]\}`
1213
1062
  #
1214
- # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-vended-metrics.html
1063
+ # For custom metrics, the following validation rules apply:
1064
+ #
1065
+ # * The namespace can't be omitted and can't be `AWS/RUM`. You can use
1066
+ # the `AWS/RUM` namespace only for extended metrics.
1067
+ #
1068
+ # * All dimensions listed in the `DimensionKeys` field must be present
1069
+ # in the value of `EventPattern`.
1070
+ #
1071
+ # * The values that you specify for `ValueKey`, `EventPattern`, and
1072
+ # `DimensionKeys` must be fields in RUM events, so all first-level
1073
+ # keys in these fields must be one of the keys in the list later in
1074
+ # this section.
1075
+ #
1076
+ # * If you set a value for `EventPattern`, it must be a JSON object.
1077
+ #
1078
+ # * For every non-empty `event_details`, there must be a non-empty
1079
+ # `event_type`.
1080
+ #
1081
+ # * If `EventPattern` contains an `event_details` field, it must also
1082
+ # contain an `event_type`. For every built-in `event_type` that you
1083
+ # use, you must use a value for `event_details` that corresponds to
1084
+ # that `event_type`. For information about event details that
1085
+ # correspond to event types, see [ RUM event details][2].
1086
+ #
1087
+ # * In `EventPattern`, any JSON array must contain only one value.
1088
+ #
1089
+ # Valid key values for first-level keys in the `ValueKey`,
1090
+ # `EventPattern`, and `DimensionKeys` fields:
1091
+ #
1092
+ # * `account_id`
1093
+ #
1094
+ # * `application_Id`
1215
1095
  #
1216
- # @note When making an API call, you may pass MetricDefinitionRequest
1217
- # data as a hash:
1096
+ # * `application_version`
1218
1097
  #
1219
- # {
1220
- # dimension_keys: {
1221
- # "DimensionKey" => "DimensionName",
1222
- # },
1223
- # event_pattern: "EventPattern",
1224
- # name: "MetricName", # required
1225
- # unit_label: "UnitLabel",
1226
- # value_key: "ValueKey",
1227
- # }
1098
+ # * `application_name`
1099
+ #
1100
+ # * `batch_id`
1101
+ #
1102
+ # * `event_details`
1103
+ #
1104
+ # * `event_id`
1105
+ #
1106
+ # * `event_interaction`
1107
+ #
1108
+ # * `event_timestamp`
1109
+ #
1110
+ # * `event_type`
1111
+ #
1112
+ # * `event_version`
1113
+ #
1114
+ # * `log_stream`
1115
+ #
1116
+ # * `metadata`
1117
+ #
1118
+ # * `sessionId`
1119
+ #
1120
+ # * `user_details`
1121
+ #
1122
+ # * `userId`
1123
+ #
1124
+ #
1125
+ #
1126
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-vended-metrics.html
1127
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-datacollected.html#CloudWatch-RUM-datacollected-eventDetails
1228
1128
  #
1229
1129
  # @!attribute [rw] dimension_keys
1230
1130
  # Use this field only if you are sending the metric to CloudWatch.
1231
1131
  #
1232
1132
  # This field is a map of field paths to dimension names. It defines
1233
- # the dimensions to associate with this metric in CloudWatch. Valid
1234
- # values for the entries in this field are the following:
1133
+ # the dimensions to associate with this metric in CloudWatch. For
1134
+ # extended metrics, valid values for the entries in this field are the
1135
+ # following:
1235
1136
  #
1236
1137
  # * `"metadata.pageId": "PageId"`
1237
1138
  #
@@ -1245,8 +1146,8 @@ module Aws::CloudWatchRUM
1245
1146
  #
1246
1147
  # * `"event_details.fileType": "FileType"`
1247
1148
  #
1248
- # All dimensions listed in this field must also be included in
1249
- # `EventPattern`.
1149
+ # For both extended metrics and custom metrics, all dimensions listed
1150
+ # in this field must also be included in `EventPattern`.
1250
1151
  # @return [Hash<String,String>]
1251
1152
  #
1252
1153
  # @!attribute [rw] event_pattern
@@ -1280,8 +1181,9 @@ module Aws::CloudWatchRUM
1280
1181
  # @return [String]
1281
1182
  #
1282
1183
  # @!attribute [rw] name
1283
- # The name for the metric that is defined in this structure. Valid
1284
- # values are the following:
1184
+ # The name for the metric that is defined in this structure. For
1185
+ # custom metrics, you can specify any name that you like. For extended
1186
+ # metrics, valid values are the following:
1285
1187
  #
1286
1188
  # * `PerformanceNavigationDuration`
1287
1189
  #
@@ -1306,6 +1208,16 @@ module Aws::CloudWatchRUM
1306
1208
  # * `SessionCount`
1307
1209
  # @return [String]
1308
1210
  #
1211
+ # @!attribute [rw] namespace
1212
+ # If this structure is for a custom metric instead of an extended
1213
+ # metrics, use this parameter to define the metric namespace for that
1214
+ # custom metric. Do not specify this parameter if this structure is
1215
+ # for an extended metric.
1216
+ #
1217
+ # You cannot use any string that starts with `AWS/` for your
1218
+ # namespace.
1219
+ # @return [String]
1220
+ #
1309
1221
  # @!attribute [rw] unit_label
1310
1222
  # The CloudWatch metric unit to use for this metric. If you omit this
1311
1223
  # field, the metric is recorded with no unit.
@@ -1330,6 +1242,7 @@ module Aws::CloudWatchRUM
1330
1242
  :dimension_keys,
1331
1243
  :event_pattern,
1332
1244
  :name,
1245
+ :namespace,
1333
1246
  :unit_label,
1334
1247
  :value_key)
1335
1248
  SENSITIVE = []
@@ -1364,32 +1277,6 @@ module Aws::CloudWatchRUM
1364
1277
  include Aws::Structure
1365
1278
  end
1366
1279
 
1367
- # @note When making an API call, you may pass PutRumEventsRequest
1368
- # data as a hash:
1369
- #
1370
- # {
1371
- # app_monitor_details: { # required
1372
- # id: "String",
1373
- # name: "String",
1374
- # version: "String",
1375
- # },
1376
- # batch_id: "String", # required
1377
- # id: "AppMonitorId", # required
1378
- # rum_events: [ # required
1379
- # {
1380
- # details: "JsonValue", # required
1381
- # id: "String", # required
1382
- # metadata: "JsonValue",
1383
- # timestamp: Time.now, # required
1384
- # type: "String", # required
1385
- # },
1386
- # ],
1387
- # user_details: { # required
1388
- # session_id: "String",
1389
- # user_id: "String",
1390
- # },
1391
- # }
1392
- #
1393
1280
  # @!attribute [rw] app_monitor_details
1394
1281
  # A structure that contains information about the app monitor that
1395
1282
  # collected this telemetry information.
@@ -1428,16 +1315,6 @@ module Aws::CloudWatchRUM
1428
1315
  #
1429
1316
  class PutRumEventsResponse < Aws::EmptyStructure; end
1430
1317
 
1431
- # @note When making an API call, you may pass PutRumMetricsDestinationRequest
1432
- # data as a hash:
1433
- #
1434
- # {
1435
- # app_monitor_name: "AppMonitorName", # required
1436
- # destination: "CloudWatch", # required, accepts CloudWatch, Evidently
1437
- # destination_arn: "DestinationArn",
1438
- # iam_role_arn: "IamRoleArn",
1439
- # }
1440
- #
1441
1318
  # @!attribute [rw] app_monitor_name
1442
1319
  # The name of the CloudWatch RUM app monitor that will send the
1443
1320
  # metrics.
@@ -1495,14 +1372,6 @@ module Aws::CloudWatchRUM
1495
1372
  # the value to return all events except events from user sessions with
1496
1373
  # the Chrome browser.
1497
1374
  #
1498
- # @note When making an API call, you may pass QueryFilter
1499
- # data as a hash:
1500
- #
1501
- # {
1502
- # name: "QueryFilterKey",
1503
- # values: ["QueryFilterValue"],
1504
- # }
1505
- #
1506
1375
  # @!attribute [rw] name
1507
1376
  # The name of a key to search for. The filter returns only the events
1508
1377
  # that match the `Name` and `Values` that you specify.
@@ -1551,17 +1420,6 @@ module Aws::CloudWatchRUM
1551
1420
  # A structure that contains the information for one performance event
1552
1421
  # that RUM collects from a user session with your application.
1553
1422
  #
1554
- # @note When making an API call, you may pass RumEvent
1555
- # data as a hash:
1556
- #
1557
- # {
1558
- # details: "JsonValue", # required
1559
- # id: "String", # required
1560
- # metadata: "JsonValue",
1561
- # timestamp: Time.now, # required
1562
- # type: "String", # required
1563
- # }
1564
- #
1565
1423
  # @!attribute [rw] details
1566
1424
  # A string containing details about the event.
1567
1425
  # @return [String]
@@ -1611,16 +1469,6 @@ module Aws::CloudWatchRUM
1611
1469
  include Aws::Structure
1612
1470
  end
1613
1471
 
1614
- # @note When making an API call, you may pass TagResourceRequest
1615
- # data as a hash:
1616
- #
1617
- # {
1618
- # resource_arn: "Arn", # required
1619
- # tags: { # required
1620
- # "TagKey" => "TagValue",
1621
- # },
1622
- # }
1623
- #
1624
1472
  # @!attribute [rw] resource_arn
1625
1473
  # The ARN of the CloudWatch RUM resource that you're adding tags to.
1626
1474
  # @return [String]
@@ -1673,14 +1521,6 @@ module Aws::CloudWatchRUM
1673
1521
  # A structure that defines the time range that you want to retrieve
1674
1522
  # results from.
1675
1523
  #
1676
- # @note When making an API call, you may pass TimeRange
1677
- # data as a hash:
1678
- #
1679
- # {
1680
- # after: 1, # required
1681
- # before: 1,
1682
- # }
1683
- #
1684
1524
  # @!attribute [rw] after
1685
1525
  # The beginning of the time range to retrieve performance events from.
1686
1526
  # @return [Integer]
@@ -1700,14 +1540,6 @@ module Aws::CloudWatchRUM
1700
1540
  include Aws::Structure
1701
1541
  end
1702
1542
 
1703
- # @note When making an API call, you may pass UntagResourceRequest
1704
- # data as a hash:
1705
- #
1706
- # {
1707
- # resource_arn: "Arn", # required
1708
- # tag_keys: ["TagKey"], # required
1709
- # }
1710
- #
1711
1543
  # @!attribute [rw] resource_arn
1712
1544
  # The ARN of the CloudWatch RUM resource that you're removing tags
1713
1545
  # from.
@@ -1730,29 +1562,6 @@ module Aws::CloudWatchRUM
1730
1562
  #
1731
1563
  class UntagResourceResponse < Aws::EmptyStructure; end
1732
1564
 
1733
- # @note When making an API call, you may pass UpdateAppMonitorRequest
1734
- # data as a hash:
1735
- #
1736
- # {
1737
- # app_monitor_configuration: {
1738
- # allow_cookies: false,
1739
- # enable_x_ray: false,
1740
- # excluded_pages: ["Url"],
1741
- # favorite_pages: ["String"],
1742
- # guest_role_arn: "Arn",
1743
- # identity_pool_id: "IdentityPoolId",
1744
- # included_pages: ["Url"],
1745
- # session_sample_rate: 1.0,
1746
- # telemetries: ["errors"], # accepts errors, performance, http
1747
- # },
1748
- # custom_events: {
1749
- # status: "ENABLED", # accepts ENABLED, DISABLED
1750
- # },
1751
- # cw_log_enabled: false,
1752
- # domain: "AppMonitorDomain",
1753
- # name: "AppMonitorName", # required
1754
- # }
1755
- #
1756
1565
  # @!attribute [rw] app_monitor_configuration
1757
1566
  # A structure that contains much of the configuration data for the app
1758
1567
  # monitor. If you are using Amazon Cognito for authorization, you must
@@ -1813,25 +1622,6 @@ module Aws::CloudWatchRUM
1813
1622
  #
1814
1623
  class UpdateAppMonitorResponse < Aws::EmptyStructure; end
1815
1624
 
1816
- # @note When making an API call, you may pass UpdateRumMetricDefinitionRequest
1817
- # data as a hash:
1818
- #
1819
- # {
1820
- # app_monitor_name: "AppMonitorName", # required
1821
- # destination: "CloudWatch", # required, accepts CloudWatch, Evidently
1822
- # destination_arn: "DestinationArn",
1823
- # metric_definition: { # required
1824
- # dimension_keys: {
1825
- # "DimensionKey" => "DimensionName",
1826
- # },
1827
- # event_pattern: "EventPattern",
1828
- # name: "MetricName", # required
1829
- # unit_label: "UnitLabel",
1830
- # value_key: "ValueKey",
1831
- # },
1832
- # metric_definition_id: "MetricDefinitionId", # required
1833
- # }
1834
- #
1835
1625
  # @!attribute [rw] app_monitor_name
1836
1626
  # The name of the CloudWatch RUM app monitor that sends these metrics.
1837
1627
  # @return [String]
@@ -1886,14 +1676,6 @@ module Aws::CloudWatchRUM
1886
1676
  # A structure that contains information about the user session that this
1887
1677
  # batch of events was collected from.
1888
1678
  #
1889
- # @note When making an API call, you may pass UserDetails
1890
- # data as a hash:
1891
- #
1892
- # {
1893
- # session_id: "String",
1894
- # user_id: "String",
1895
- # }
1896
- #
1897
1679
  # @!attribute [rw] session_id
1898
1680
  # The session ID that the performance events are from.
1899
1681
  # @return [String]
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-cloudwatchrum/customizations'
52
52
  # @!group service
53
53
  module Aws::CloudWatchRUM
54
54
 
55
- GEM_VERSION = '1.7.0'
55
+ GEM_VERSION = '1.9.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudwatchrum
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-17 00:00:00.000000000 Z
11
+ date: 2023-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core