Class: Aws::InternetMonitor::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::InternetMonitor::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-internetmonitor/client.rb
Overview
An API client for InternetMonitor. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::InternetMonitor::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#create_monitor(params = {}) ⇒ Types::CreateMonitorOutput
Creates a monitor in Amazon CloudWatch Internet Monitor.
-
#delete_monitor(params = {}) ⇒ Struct
Deletes a monitor in Amazon CloudWatch Internet Monitor.
-
#get_health_event(params = {}) ⇒ Types::GetHealthEventOutput
Gets information that Amazon CloudWatch Internet Monitor has created and stored about a health event for a specified monitor.
-
#get_internet_event(params = {}) ⇒ Types::GetInternetEventOutput
Gets information that Amazon CloudWatch Internet Monitor has generated about an internet event.
-
#get_monitor(params = {}) ⇒ Types::GetMonitorOutput
Gets information about a monitor in Amazon CloudWatch Internet Monitor based on a monitor name.
-
#get_query_results(params = {}) ⇒ Types::GetQueryResultsOutput
Return the data for a query with the Amazon CloudWatch Internet Monitor query interface.
-
#get_query_status(params = {}) ⇒ Types::GetQueryStatusOutput
Returns the current status of a query for the Amazon CloudWatch Internet Monitor query interface, for a specified query ID and monitor.
-
#list_health_events(params = {}) ⇒ Types::ListHealthEventsOutput
Lists all health events for a monitor in Amazon CloudWatch Internet Monitor.
-
#list_internet_events(params = {}) ⇒ Types::ListInternetEventsOutput
Lists internet events that cause performance or availability issues for client locations.
-
#list_monitors(params = {}) ⇒ Types::ListMonitorsOutput
Lists all of your monitors for Amazon CloudWatch Internet Monitor and their statuses, along with the Amazon Resource Name (ARN) and name of each monitor.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceOutput
Lists the tags for a resource.
-
#start_query(params = {}) ⇒ Types::StartQueryOutput
Start a query to return data for a specific query type for the Amazon CloudWatch Internet Monitor query interface.
-
#stop_query(params = {}) ⇒ Struct
Stop a query that is progress for a specific monitor.
-
#tag_resource(params = {}) ⇒ Struct
Adds a tag to a resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes a tag from a resource.
-
#update_monitor(params = {}) ⇒ Types::UpdateMonitorOutput
Updates a monitor.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
473 474 475 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 473 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1688 1689 1690 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 1688 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1691 1692 1693 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 1691 def errors_module Errors end |
Instance Method Details
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 1661 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::InternetMonitor') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-internetmonitor' context[:gem_version] = '1.46.0' Seahorse::Client::Request.new(handlers, context) end |
#create_monitor(params = {}) ⇒ Types::CreateMonitorOutput
Creates a monitor in Amazon CloudWatch Internet Monitor. A monitor is built based on information from the application resources that you add: VPCs, Network Load Balancers (NLBs), Amazon CloudFront distributions, and Amazon WorkSpaces directories. Internet Monitor then publishes internet measurements from Amazon Web Services that are specific to the city-networks. That is, the locations and ASNs (typically internet service providers or ISPs), where clients access your application. For more information, see [Using Amazon CloudWatch Internet Monitor] in the *Amazon CloudWatch User Guide*.
When you create a monitor, you choose the percentage of traffic that you want to monitor. You can also set a maximum limit for the number of city-networks where client traffic is monitored, that caps the total traffic that Internet Monitor monitors. A city-network maximum is the limit of city-networks, but you only pay for the number of city-networks that are actually monitored. You can update your monitor at any time to change the percentage of traffic to monitor or the city-networks maximum. For more information, see [Choosing a city-network maximum value] in the *Amazon CloudWatch User Guide*.
[1]: docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-InternetMonitor.html [2]: docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/IMCityNetworksMaximum.html
631 632 633 634 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 631 def create_monitor(params = {}, = {}) req = build_request(:create_monitor, params) req.send_request() end |
#delete_monitor(params = {}) ⇒ Struct
Deletes a monitor in Amazon CloudWatch Internet Monitor.
653 654 655 656 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 653 def delete_monitor(params = {}, = {}) req = build_request(:delete_monitor, params) req.send_request() end |
#get_health_event(params = {}) ⇒ Types::GetHealthEventOutput
Gets information that Amazon CloudWatch Internet Monitor has created and stored about a health event for a specified monitor. This information includes the impacted locations, and all the information related to the event, by location.
The information returned includes the impact on performance, availability, and round-trip time, information about the network providers (ASNs), the event type, and so on.
Information rolled up at the global traffic level is also returned, including the impact type and total traffic impact.
760 761 762 763 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 760 def get_health_event(params = {}, = {}) req = build_request(:get_health_event, params) req.send_request() end |
#get_internet_event(params = {}) ⇒ Types::GetInternetEventOutput
Gets information that Amazon CloudWatch Internet Monitor has generated about an internet event. Internet Monitor displays information about recent global health events, called internet events, on a global outages map that is available to all Amazon Web Services customers.
The information returned here includes the impacted location, when the event started and (if the event is over) ended, the type of event (‘PERFORMANCE` or `AVAILABILITY`), and the status (`ACTIVE` or `RESOLVED`).
815 816 817 818 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 815 def get_internet_event(params = {}, = {}) req = build_request(:get_internet_event, params) req.send_request() end |
#get_monitor(params = {}) ⇒ Types::GetMonitorOutput
Gets information about a monitor in Amazon CloudWatch Internet Monitor based on a monitor name. The information returned includes the Amazon Resource Name (ARN), create time, modified time, resources included in the monitor, and status information.
894 895 896 897 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 894 def get_monitor(params = {}, = {}) req = build_request(:get_monitor, params) req.send_request() end |
#get_query_results(params = {}) ⇒ Types::GetQueryResultsOutput
Return the data for a query with the Amazon CloudWatch Internet Monitor query interface. Specify the query that you want to return results for by providing a ‘QueryId` and a monitor name.
For more information about using the query interface, including examples, see [Using the Amazon CloudWatch Internet Monitor query interface] in the Amazon CloudWatch Internet Monitor User Guide.
[1]: docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-IM-view-cw-tools-cwim-query.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
956 957 958 959 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 956 def get_query_results(params = {}, = {}) req = build_request(:get_query_results, params) req.send_request() end |
#get_query_status(params = {}) ⇒ Types::GetQueryStatusOutput
Returns the current status of a query for the Amazon CloudWatch Internet Monitor query interface, for a specified query ID and monitor. When you run a query, check the status to make sure that the query has ‘SUCCEEDED` before you review the results.
-
‘QUEUED`: The query is scheduled to run.
-
‘RUNNING`: The query is in progress but not complete.
-
‘SUCCEEDED`: The query completed sucessfully.
-
‘FAILED`: The query failed due to an error.
-
‘CANCELED`: The query was canceled.
1002 1003 1004 1005 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 1002 def get_query_status(params = {}, = {}) req = build_request(:get_query_status, params) req.send_request() end |
#list_health_events(params = {}) ⇒ Types::ListHealthEventsOutput
Lists all health events for a monitor in Amazon CloudWatch Internet Monitor. Returns information for health events including the event start and end times, and the status.
<note markdown=“1”> Health events that have start times during the time frame that is requested are not included in the list of health events.
</note>
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1118 1119 1120 1121 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 1118 def list_health_events(params = {}, = {}) req = build_request(:list_health_events, params) req.send_request() end |
#list_internet_events(params = {}) ⇒ Types::ListInternetEventsOutput
Lists internet events that cause performance or availability issues for client locations. Amazon CloudWatch Internet Monitor displays information about recent global health events, called internet events, on a global outages map that is available to all Amazon Web Services customers.
You can constrain the list of internet events returned by providing a start time and end time to define a total time frame for events you want to list. Both start time and end time specify the time when an event started. End time is optional. If you don’t include it, the default end time is the current time.
You can also limit the events returned to a specific status (‘ACTIVE` or `RESOLVED`) or type (`PERFORMANCE` or `AVAILABILITY`).
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1200 1201 1202 1203 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 1200 def list_internet_events(params = {}, = {}) req = build_request(:list_internet_events, params) req.send_request() end |
#list_monitors(params = {}) ⇒ Types::ListMonitorsOutput
Lists all of your monitors for Amazon CloudWatch Internet Monitor and their statuses, along with the Amazon Resource Name (ARN) and name of each monitor.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1268 1269 1270 1271 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 1268 def list_monitors(params = {}, = {}) req = build_request(:list_monitors, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceOutput
Lists the tags for a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor.
1298 1299 1300 1301 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 1298 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#start_query(params = {}) ⇒ Types::StartQueryOutput
Start a query to return data for a specific query type for the Amazon CloudWatch Internet Monitor query interface. Specify a time period for the data that you want returned by using ‘StartTime` and `EndTime`. You filter the query results to return by providing parameters that you specify with `FilterParameters`.
For more information about using the query interface, including examples, see [Using the Amazon CloudWatch Internet Monitor query interface] in the Amazon CloudWatch Internet Monitor User Guide.
[1]: docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-IM-view-cw-tools-cwim-query.html
1423 1424 1425 1426 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 1423 def start_query(params = {}, = {}) req = build_request(:start_query, params) req.send_request() end |
#stop_query(params = {}) ⇒ Struct
Stop a query that is progress for a specific monitor.
1450 1451 1452 1453 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 1450 def stop_query(params = {}, = {}) req = build_request(:stop_query, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds a tag to a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor. You can add a maximum of 50 tags in Internet Monitor.
A minimum of one tag is required for this call. It returns an error if you use the ‘TagResource` request with 0 tags.
1486 1487 1488 1489 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 1486 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes a tag from a resource.
1512 1513 1514 1515 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 1512 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_monitor(params = {}) ⇒ Types::UpdateMonitorOutput
Updates a monitor. You can update a monitor to change the percentage of traffic to monitor or the maximum number of city-networks (locations and ASNs), to add or remove resources, or to change the status of the monitor. Note that you can’t change the name of a monitor.
The city-network maximum that you choose is the limit, but you only pay for the number of city-networks that are actually monitored. For more information, see [Choosing a city-network maximum value] in the *Amazon CloudWatch User Guide*.
[1]: docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/IMCityNetworksMaximum.html
1652 1653 1654 1655 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 1652 def update_monitor(params = {}, = {}) req = build_request(:update_monitor, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1681 1682 1683 |
# File 'lib/aws-sdk-internetmonitor/client.rb', line 1681 def waiter_names [] end |