@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonInternetMonitorAsyncClient extends AmazonInternetMonitorClient implements AmazonInternetMonitorAsync
AsyncHandler
can be used to
receive notification when an asynchronous operation completes.
Amazon CloudWatch Internet Monitor provides visibility into how internet issues impact the performance and availability between your applications hosted on Amazon Web Services and your end users. It can reduce the time it takes for you to diagnose internet issues from days to minutes. Internet Monitor uses the connectivity data that Amazon Web Services captures from its global networking footprint to calculate a baseline of performance and availability for internet traffic. This is the same data that Amazon Web Services uses to monitor internet uptime and availability. With those measurements as a baseline, Internet Monitor raises awareness for you when there are significant problems for your end users in the different geographic locations where your application runs.
Internet Monitor publishes internet measurements to CloudWatch Logs and CloudWatch Metrics, to easily support using CloudWatch tools with health information for geographies and networks specific to your application. Internet Monitor sends health events to Amazon EventBridge so that you can set up notifications. If an issue is caused by the Amazon Web Services network, you also automatically receive an Amazon Web Services Health Dashboard notification with the steps that Amazon Web Services is taking to mitigate the problem.
To use Internet Monitor, you create a monitor and associate your application's resources with it - VPCs, NLBs, CloudFront distributions, or WorkSpaces directories - so Internet Monitor can determine where your application's internet traffic is. Internet Monitor then provides internet measurements from Amazon Web Services that are specific to the locations and ASNs (typically, internet service providers or ISPs) that communicate with your application.
For more information, see Using Amazon CloudWatch Internet Monitor in the Amazon CloudWatch User Guide.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AmazonInternetMonitorAsyncClientBuilder |
asyncBuilder() |
Future<CreateMonitorResult> |
createMonitorAsync(CreateMonitorRequest request)
Creates a monitor in Amazon CloudWatch Internet Monitor.
|
Future<CreateMonitorResult> |
createMonitorAsync(CreateMonitorRequest request,
AsyncHandler<CreateMonitorRequest,CreateMonitorResult> asyncHandler)
Creates a monitor in Amazon CloudWatch Internet Monitor.
|
Future<DeleteMonitorResult> |
deleteMonitorAsync(DeleteMonitorRequest request)
Deletes a monitor in Amazon CloudWatch Internet Monitor.
|
Future<DeleteMonitorResult> |
deleteMonitorAsync(DeleteMonitorRequest request,
AsyncHandler<DeleteMonitorRequest,DeleteMonitorResult> asyncHandler)
Deletes a monitor in Amazon CloudWatch Internet Monitor.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<GetHealthEventResult> |
getHealthEventAsync(GetHealthEventRequest request)
Gets information that Amazon CloudWatch Internet Monitor has created and stored about a health event for a
specified monitor.
|
Future<GetHealthEventResult> |
getHealthEventAsync(GetHealthEventRequest request,
AsyncHandler<GetHealthEventRequest,GetHealthEventResult> asyncHandler)
Gets information that Amazon CloudWatch Internet Monitor has created and stored about a health event for a
specified monitor.
|
Future<GetInternetEventResult> |
getInternetEventAsync(GetInternetEventRequest request)
Gets information that Amazon CloudWatch Internet Monitor has generated about an internet event.
|
Future<GetInternetEventResult> |
getInternetEventAsync(GetInternetEventRequest request,
AsyncHandler<GetInternetEventRequest,GetInternetEventResult> asyncHandler)
Gets information that Amazon CloudWatch Internet Monitor has generated about an internet event.
|
Future<GetMonitorResult> |
getMonitorAsync(GetMonitorRequest request)
Gets information about a monitor in Amazon CloudWatch Internet Monitor based on a monitor name.
|
Future<GetMonitorResult> |
getMonitorAsync(GetMonitorRequest request,
AsyncHandler<GetMonitorRequest,GetMonitorResult> asyncHandler)
Gets information about a monitor in Amazon CloudWatch Internet Monitor based on a monitor name.
|
Future<GetQueryResultsResult> |
getQueryResultsAsync(GetQueryResultsRequest request)
Return the data for a query with the Amazon CloudWatch Internet Monitor query interface.
|
Future<GetQueryResultsResult> |
getQueryResultsAsync(GetQueryResultsRequest request,
AsyncHandler<GetQueryResultsRequest,GetQueryResultsResult> asyncHandler)
Return the data for a query with the Amazon CloudWatch Internet Monitor query interface.
|
Future<GetQueryStatusResult> |
getQueryStatusAsync(GetQueryStatusRequest request)
Returns the current status of a query for the Amazon CloudWatch Internet Monitor query interface, for a specified
query ID and monitor.
|
Future<GetQueryStatusResult> |
getQueryStatusAsync(GetQueryStatusRequest request,
AsyncHandler<GetQueryStatusRequest,GetQueryStatusResult> asyncHandler)
Returns the current status of a query for the Amazon CloudWatch Internet Monitor query interface, for a specified
query ID and monitor.
|
Future<ListHealthEventsResult> |
listHealthEventsAsync(ListHealthEventsRequest request)
Lists all health events for a monitor in Amazon CloudWatch Internet Monitor.
|
Future<ListHealthEventsResult> |
listHealthEventsAsync(ListHealthEventsRequest request,
AsyncHandler<ListHealthEventsRequest,ListHealthEventsResult> asyncHandler)
Lists all health events for a monitor in Amazon CloudWatch Internet Monitor.
|
Future<ListInternetEventsResult> |
listInternetEventsAsync(ListInternetEventsRequest request)
Lists internet events that cause performance or availability issues for client locations.
|
Future<ListInternetEventsResult> |
listInternetEventsAsync(ListInternetEventsRequest request,
AsyncHandler<ListInternetEventsRequest,ListInternetEventsResult> asyncHandler)
Lists internet events that cause performance or availability issues for client locations.
|
Future<ListMonitorsResult> |
listMonitorsAsync(ListMonitorsRequest request)
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.
|
Future<ListMonitorsResult> |
listMonitorsAsync(ListMonitorsRequest request,
AsyncHandler<ListMonitorsRequest,ListMonitorsResult> asyncHandler)
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.
|
Future<ListTagsForResourceResult> |
listTagsForResourceAsync(ListTagsForResourceRequest request)
Lists the tags for a resource.
|
Future<ListTagsForResourceResult> |
listTagsForResourceAsync(ListTagsForResourceRequest request,
AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
Lists the tags for a resource.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<StartQueryResult> |
startQueryAsync(StartQueryRequest request)
Start a query to return data for a specific query type for the Amazon CloudWatch Internet Monitor query
interface.
|
Future<StartQueryResult> |
startQueryAsync(StartQueryRequest request,
AsyncHandler<StartQueryRequest,StartQueryResult> asyncHandler)
Start a query to return data for a specific query type for the Amazon CloudWatch Internet Monitor query
interface.
|
Future<StopQueryResult> |
stopQueryAsync(StopQueryRequest request)
Stop a query that is progress for a specific monitor.
|
Future<StopQueryResult> |
stopQueryAsync(StopQueryRequest request,
AsyncHandler<StopQueryRequest,StopQueryResult> asyncHandler)
Stop a query that is progress for a specific monitor.
|
Future<TagResourceResult> |
tagResourceAsync(TagResourceRequest request)
Adds a tag to a resource.
|
Future<TagResourceResult> |
tagResourceAsync(TagResourceRequest request,
AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
Adds a tag to a resource.
|
Future<UntagResourceResult> |
untagResourceAsync(UntagResourceRequest request)
Removes a tag from a resource.
|
Future<UntagResourceResult> |
untagResourceAsync(UntagResourceRequest request,
AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
Removes a tag from a resource.
|
Future<UpdateMonitorResult> |
updateMonitorAsync(UpdateMonitorRequest request)
Updates a monitor.
|
Future<UpdateMonitorResult> |
updateMonitorAsync(UpdateMonitorRequest request,
AsyncHandler<UpdateMonitorRequest,UpdateMonitorResult> asyncHandler)
Updates a monitor.
|
builder, createMonitor, deleteMonitor, getCachedResponseMetadata, getHealthEvent, getInternetEvent, getMonitor, getQueryResults, getQueryStatus, listHealthEvents, listInternetEvents, listMonitors, listTagsForResource, startQuery, stopQuery, tagResource, untagResource, updateMonitor
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createMonitor, deleteMonitor, getCachedResponseMetadata, getHealthEvent, getInternetEvent, getMonitor, getQueryResults, getQueryStatus, listHealthEvents, listInternetEvents, listMonitors, listTagsForResource, startQuery, stopQuery, tagResource, untagResource, updateMonitor
public static AmazonInternetMonitorAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateMonitorResult> createMonitorAsync(CreateMonitorRequest request)
AmazonInternetMonitorAsync
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.
createMonitorAsync
in interface AmazonInternetMonitorAsync
public Future<CreateMonitorResult> createMonitorAsync(CreateMonitorRequest request, AsyncHandler<CreateMonitorRequest,CreateMonitorResult> asyncHandler)
AmazonInternetMonitorAsync
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.
createMonitorAsync
in interface AmazonInternetMonitorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteMonitorResult> deleteMonitorAsync(DeleteMonitorRequest request)
AmazonInternetMonitorAsync
Deletes a monitor in Amazon CloudWatch Internet Monitor.
deleteMonitorAsync
in interface AmazonInternetMonitorAsync
public Future<DeleteMonitorResult> deleteMonitorAsync(DeleteMonitorRequest request, AsyncHandler<DeleteMonitorRequest,DeleteMonitorResult> asyncHandler)
AmazonInternetMonitorAsync
Deletes a monitor in Amazon CloudWatch Internet Monitor.
deleteMonitorAsync
in interface AmazonInternetMonitorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetHealthEventResult> getHealthEventAsync(GetHealthEventRequest request)
AmazonInternetMonitorAsync
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.
getHealthEventAsync
in interface AmazonInternetMonitorAsync
public Future<GetHealthEventResult> getHealthEventAsync(GetHealthEventRequest request, AsyncHandler<GetHealthEventRequest,GetHealthEventResult> asyncHandler)
AmazonInternetMonitorAsync
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.
getHealthEventAsync
in interface AmazonInternetMonitorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetInternetEventResult> getInternetEventAsync(GetInternetEventRequest request)
AmazonInternetMonitorAsync
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
).
getInternetEventAsync
in interface AmazonInternetMonitorAsync
public Future<GetInternetEventResult> getInternetEventAsync(GetInternetEventRequest request, AsyncHandler<GetInternetEventRequest,GetInternetEventResult> asyncHandler)
AmazonInternetMonitorAsync
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
).
getInternetEventAsync
in interface AmazonInternetMonitorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetMonitorResult> getMonitorAsync(GetMonitorRequest request)
AmazonInternetMonitorAsync
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.
getMonitorAsync
in interface AmazonInternetMonitorAsync
public Future<GetMonitorResult> getMonitorAsync(GetMonitorRequest request, AsyncHandler<GetMonitorRequest,GetMonitorResult> asyncHandler)
AmazonInternetMonitorAsync
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.
getMonitorAsync
in interface AmazonInternetMonitorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetQueryResultsResult> getQueryResultsAsync(GetQueryResultsRequest request)
AmazonInternetMonitorAsync
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.
getQueryResultsAsync
in interface AmazonInternetMonitorAsync
public Future<GetQueryResultsResult> getQueryResultsAsync(GetQueryResultsRequest request, AsyncHandler<GetQueryResultsRequest,GetQueryResultsResult> asyncHandler)
AmazonInternetMonitorAsync
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.
getQueryResultsAsync
in interface AmazonInternetMonitorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetQueryStatusResult> getQueryStatusAsync(GetQueryStatusRequest request)
AmazonInternetMonitorAsync
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.
getQueryStatusAsync
in interface AmazonInternetMonitorAsync
public Future<GetQueryStatusResult> getQueryStatusAsync(GetQueryStatusRequest request, AsyncHandler<GetQueryStatusRequest,GetQueryStatusResult> asyncHandler)
AmazonInternetMonitorAsync
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.
getQueryStatusAsync
in interface AmazonInternetMonitorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListHealthEventsResult> listHealthEventsAsync(ListHealthEventsRequest request)
AmazonInternetMonitorAsync
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.
Health events that have start times during the time frame that is requested are not included in the list of health events.
listHealthEventsAsync
in interface AmazonInternetMonitorAsync
public Future<ListHealthEventsResult> listHealthEventsAsync(ListHealthEventsRequest request, AsyncHandler<ListHealthEventsRequest,ListHealthEventsResult> asyncHandler)
AmazonInternetMonitorAsync
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.
Health events that have start times during the time frame that is requested are not included in the list of health events.
listHealthEventsAsync
in interface AmazonInternetMonitorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListInternetEventsResult> listInternetEventsAsync(ListInternetEventsRequest request)
AmazonInternetMonitorAsync
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
).
listInternetEventsAsync
in interface AmazonInternetMonitorAsync
public Future<ListInternetEventsResult> listInternetEventsAsync(ListInternetEventsRequest request, AsyncHandler<ListInternetEventsRequest,ListInternetEventsResult> asyncHandler)
AmazonInternetMonitorAsync
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
).
listInternetEventsAsync
in interface AmazonInternetMonitorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListMonitorsResult> listMonitorsAsync(ListMonitorsRequest request)
AmazonInternetMonitorAsync
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.
listMonitorsAsync
in interface AmazonInternetMonitorAsync
public Future<ListMonitorsResult> listMonitorsAsync(ListMonitorsRequest request, AsyncHandler<ListMonitorsRequest,ListMonitorsResult> asyncHandler)
AmazonInternetMonitorAsync
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.
listMonitorsAsync
in interface AmazonInternetMonitorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AmazonInternetMonitorAsync
Lists the tags for a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor.
listTagsForResourceAsync
in interface AmazonInternetMonitorAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonInternetMonitorAsync
Lists the tags for a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor.
listTagsForResourceAsync
in interface AmazonInternetMonitorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartQueryResult> startQueryAsync(StartQueryRequest request)
AmazonInternetMonitorAsync
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.
startQueryAsync
in interface AmazonInternetMonitorAsync
public Future<StartQueryResult> startQueryAsync(StartQueryRequest request, AsyncHandler<StartQueryRequest,StartQueryResult> asyncHandler)
AmazonInternetMonitorAsync
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.
startQueryAsync
in interface AmazonInternetMonitorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopQueryResult> stopQueryAsync(StopQueryRequest request)
AmazonInternetMonitorAsync
Stop a query that is progress for a specific monitor.
stopQueryAsync
in interface AmazonInternetMonitorAsync
public Future<StopQueryResult> stopQueryAsync(StopQueryRequest request, AsyncHandler<StopQueryRequest,StopQueryResult> asyncHandler)
AmazonInternetMonitorAsync
Stop a query that is progress for a specific monitor.
stopQueryAsync
in interface AmazonInternetMonitorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AmazonInternetMonitorAsync
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.
tagResourceAsync
in interface AmazonInternetMonitorAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonInternetMonitorAsync
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.
tagResourceAsync
in interface AmazonInternetMonitorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AmazonInternetMonitorAsync
Removes a tag from a resource.
untagResourceAsync
in interface AmazonInternetMonitorAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonInternetMonitorAsync
Removes a tag from a resource.
untagResourceAsync
in interface AmazonInternetMonitorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateMonitorResult> updateMonitorAsync(UpdateMonitorRequest request)
AmazonInternetMonitorAsync
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.
updateMonitorAsync
in interface AmazonInternetMonitorAsync
public Future<UpdateMonitorResult> updateMonitorAsync(UpdateMonitorRequest request, AsyncHandler<UpdateMonitorRequest,UpdateMonitorResult> asyncHandler)
AmazonInternetMonitorAsync
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.
updateMonitorAsync
in interface AmazonInternetMonitorAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AmazonInternetMonitor
shutdown
in class AmazonInternetMonitorClient