Class: Aws::CloudWatchRUM::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::CloudWatchRUM::Client
- Includes:
- Aws::ClientStubs
- Defined in:
- gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/client.rb
Overview
An API client for CloudWatchRUM. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::CloudWatchRUM::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#create_app_monitor(params = {}) ⇒ Types::CreateAppMonitorResponse
Creates a Amazon CloudWatch RUM app monitor, which collects telemetry data from your application and sends that data to RUM.
-
#delete_app_monitor(params = {}) ⇒ Struct
Deletes an existing app monitor.
-
#get_app_monitor(params = {}) ⇒ Types::GetAppMonitorResponse
Retrieves the complete configuration information for one app monitor.
-
#get_app_monitor_data(params = {}) ⇒ Types::GetAppMonitorDataResponse
Retrieves the raw performance events that RUM has collected from your web application, so that you can do your own processing or analysis of this data.
-
#list_app_monitors(params = {}) ⇒ Types::ListAppMonitorsResponse
Returns a list of the Amazon CloudWatch RUM app monitors in the account.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Displays the tags associated with a CloudWatch RUM resource.
-
#put_rum_events(params = {}) ⇒ Struct
Sends telemetry events about your application performance and user behavior to CloudWatch RUM.
-
#tag_resource(params = {}) ⇒ Struct
Assigns one or more tags (key-value pairs) to the specified CloudWatch RUM resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from the specified resource.
-
#update_app_monitor(params = {}) ⇒ Struct
Updates the configuration of an existing app monitor.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from Aws::ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
348 349 350 |
# File 'gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/client.rb', line 348 def initialize(*args) super end |
Instance Method Details
#create_app_monitor(params = {}) ⇒ Types::CreateAppMonitorResponse
Creates a Amazon CloudWatch RUM app monitor, which collects telemetry data from your application and sends that data to RUM. The data includes performance and reliability information such as page load time, client-side errors, and user behavior.
You use this operation only to create a new app monitor. To update an existing app monitor, use UpdateAppMonitor instead.
After you create an app monitor, sign in to the CloudWatch RUM console to get the JavaScript code snippet to add to your web application. For more information, see How do I find a code snippet that I've already generated?
450 451 452 453 |
# File 'gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/client.rb', line 450 def create_app_monitor(params = {}, = {}) req = build_request(:create_app_monitor, params) req.send_request() end |
#delete_app_monitor(params = {}) ⇒ Struct
Deletes an existing app monitor. This immediately stops the collection of data.
473 474 475 476 |
# File 'gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/client.rb', line 473 def delete_app_monitor(params = {}, = {}) req = build_request(:delete_app_monitor, params) req.send_request() end |
#get_app_monitor(params = {}) ⇒ Types::GetAppMonitorResponse
Retrieves the complete configuration information for one app monitor.
523 524 525 526 |
# File 'gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/client.rb', line 523 def get_app_monitor(params = {}, = {}) req = build_request(:get_app_monitor, params) req.send_request() end |
#get_app_monitor_data(params = {}) ⇒ Types::GetAppMonitorDataResponse
Retrieves the raw performance events that RUM has collected from your web application, so that you can do your own processing or analysis of this data.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
586 587 588 589 |
# File 'gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/client.rb', line 586 def get_app_monitor_data(params = {}, = {}) req = build_request(:get_app_monitor_data, params) req.send_request() end |
#list_app_monitors(params = {}) ⇒ Types::ListAppMonitorsResponse
Returns a list of the Amazon CloudWatch RUM app monitors in the account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
629 630 631 632 |
# File 'gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/client.rb', line 629 def list_app_monitors(params = {}, = {}) req = build_request(:list_app_monitors, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Displays the tags associated with a CloudWatch RUM resource.
660 661 662 663 |
# File 'gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/client.rb', line 660 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#put_rum_events(params = {}) ⇒ Struct
Sends telemetry events about your application performance and user
behavior to CloudWatch RUM. The code snippet that RUM generates for
you to add to your application includes PutRumEvents
operations to
send this data to RUM.
Each PutRumEvents
operation can send a batch of events from one user
session.
721 722 723 724 |
# File 'gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/client.rb', line 721 def put_rum_events(params = {}, = {}) req = build_request(:put_rum_events, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Assigns one or more tags (key-value pairs) to the specified CloudWatch RUM resource. Currently, the only resources that can be tagged app monitors.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can use the TagResource
action with a resource that already has
tags. If you specify a new tag key for the resource, this tag is
appended to the list of tags associated with the alarm. If you specify
a tag key that is already associated with the resource, the new tag
value that you specify replaces the previous value for that tag.
You can associate as many as 50 tags with a resource.
For more information, see Tagging Amazon Web Services resources.
772 773 774 775 |
# File 'gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/client.rb', line 772 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from the specified resource.
799 800 801 802 |
# File 'gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/client.rb', line 799 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_app_monitor(params = {}) ⇒ Struct
Updates the configuration of an existing app monitor. When you use this operation, only the parts of the app monitor configuration that you specify in this operation are changed. For any parameters that you omit, the existing values are kept.
You can't use this operation to change the tags of an existing app monitor. To change the tags of an existing app monitor, use TagResource.
To create a new app monitor, use CreateAppMonitor.
After you update an app monitor, sign in to the CloudWatch RUM console to get the updated JavaScript code snippet to add to your web application. For more information, see How do I find a code snippet that I've already generated?
878 879 880 881 |
# File 'gems/aws-sdk-cloudwatchrum/lib/aws-sdk-cloudwatchrum/client.rb', line 878 def update_app_monitor(params = {}, = {}) req = build_request(:update_app_monitor, params) req.send_request() end |