@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonInternetMonitorClient extends AmazonWebServiceClient implements AmazonInternetMonitor
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, reducing the time it takes for you to diagnose these issues, from days to minutes. You can explore internet measurements for different time frames and at different geographic granularities, and quickly visualize the impact of issues, and then take action to improve your end users' experience, for example, by switching to other Amazon Web Services services or rerouting traffic to your workload through differentAmazon Web Services Regions.
If the issue is caused by the Amazon Web Services network, you'll automatically receive an Amazon Web Services Health Dashboard notification with the steps that Amazon Web Services is taking to mitigate the problem. To support integrating health information for geographies and networks specific to your application, Internet Monitor delivers measurements to CloudWatch Logs and CloudWatch Metrics. Internet Monitor also sends health events to Amazon EventBridge, so you can set up notifications. Internet Monitor monitors internet connectivity for your application through Amazon Virtual Private Clouds (VPCs), Amazon CloudFront distributions, and Amazon WorkSpaces directories.
To use Internet Monitor, you create a monitor and add resources to it, Virtual Private Clouds (VPCs), Amazon CloudFront distributions, or WorkSpaces directories that show where your application's internet traffic is. Internet Monitor then provides internet measurements from Amazon Web Services that are specific to the locations and networks 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 AmazonInternetMonitorClientBuilder |
builder() |
CreateMonitorResult |
createMonitor(CreateMonitorRequest request)
Creates a monitor in Amazon CloudWatch Internet Monitor.
|
DeleteMonitorResult |
deleteMonitor(DeleteMonitorRequest request)
Deletes a monitor in Amazon CloudWatch Internet Monitor.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
GetHealthEventResult |
getHealthEvent(GetHealthEventRequest request)
Gets information the Amazon CloudWatch Internet Monitor has created and stored about a health event for a
specified monitor.
|
GetMonitorResult |
getMonitor(GetMonitorRequest request)
Gets information about a monitor in Amazon CloudWatch Internet Monitor based on a monitor name.
|
ListHealthEventsResult |
listHealthEvents(ListHealthEventsRequest request)
Lists all health events for a monitor in Amazon CloudWatch Internet Monitor.
|
ListMonitorsResult |
listMonitors(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.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest request)
Lists the tags for a resource.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
TagResourceResult |
tagResource(TagResourceRequest request)
Adds a tag to a resource.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Removes a tag from a resource.
|
UpdateMonitorResult |
updateMonitor(UpdateMonitorRequest request)
Updates a monitor.
|
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
public static AmazonInternetMonitorClientBuilder builder()
public CreateMonitorResult createMonitor(CreateMonitorRequest request)
Creates a monitor in Amazon CloudWatch Internet Monitor. A monitor is built based on information from the application resources that you add: Virtual Private Clouds (VPCs), Amazon CloudFront distributions, and WorkSpaces directories.
After you create a monitor, you can view the internet performance for your application, scoped to a location, as well as any health events that are impairing traffic. Internet Monitor can also diagnose whether the impairment is on the Amazon Web Services network or is an issue with an internet service provider (ISP).
createMonitor
in interface AmazonInternetMonitor
createMonitorRequest
- InternalServerException
- An internal error occurred.AccessDeniedException
- You don't have sufficient permission to perform this action.ThrottlingException
- The request was denied due to request throttling.ConflictException
- The requested resource is in use.LimitExceededException
- The request exceeded a service quota.ValidationException
- Invalid request.public DeleteMonitorResult deleteMonitor(DeleteMonitorRequest request)
Deletes a monitor in Amazon CloudWatch Internet Monitor.
deleteMonitor
in interface AmazonInternetMonitor
deleteMonitorRequest
- InternalServerException
- An internal error occurred.AccessDeniedException
- You don't have sufficient permission to perform this action.ThrottlingException
- The request was denied due to request throttling.ValidationException
- Invalid request.public GetHealthEventResult getHealthEvent(GetHealthEventRequest request)
Gets information the Amazon CloudWatch Internet Monitor has created and stored about a health event for a specified monitor. This information includes the impacted locations, and all of the information related to the event by location.
The information returned includes the performance, availability, and round-trip time impact, information about the network providers, 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.
getHealthEvent
in interface AmazonInternetMonitor
getHealthEventRequest
- InternalServerException
- An internal error occurred.AccessDeniedException
- You don't have sufficient permission to perform this action.ThrottlingException
- The request was denied due to request throttling.ValidationException
- Invalid request.public GetMonitorResult getMonitor(GetMonitorRequest request)
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.
getMonitor
in interface AmazonInternetMonitor
getMonitorRequest
- InternalServerException
- An internal error occurred.AccessDeniedException
- You don't have sufficient permission to perform this action.ThrottlingException
- The request was denied due to request throttling.ValidationException
- Invalid request.public ListHealthEventsResult listHealthEvents(ListHealthEventsRequest request)
Lists all health events for a monitor in Amazon CloudWatch Internet Monitor. Returns all information for health events including the client location information the network cause and status, event start and end time, percentage of total traffic impacted, and status.
Health events that have start times during the time frame that is requested are not included in the list of health events.
listHealthEvents
in interface AmazonInternetMonitor
listHealthEventsRequest
- InternalServerException
- An internal error occurred.AccessDeniedException
- You don't have sufficient permission to perform this action.ThrottlingException
- The request was denied due to request throttling.ValidationException
- Invalid request.public ListMonitorsResult listMonitors(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.
listMonitors
in interface AmazonInternetMonitor
listMonitorsRequest
- InternalServerException
- An internal error occurred.AccessDeniedException
- You don't have sufficient permission to perform this action.ThrottlingException
- The request was denied due to request throttling.ValidationException
- Invalid request.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Lists the tags for a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor.
listTagsForResource
in interface AmazonInternetMonitor
listTagsForResourceRequest
- TooManyRequestsException
- There were too many requests.AccessDeniedException
- You don't have sufficient permission to perform this action.NotFoundException
- The request specifies something that doesn't exist.BadRequestException
- A bad request was received.InternalServerErrorException
- There was an internal server error.public TagResourceResult tagResource(TagResourceRequest request)
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.
tagResource
in interface AmazonInternetMonitor
tagResourceRequest
- TooManyRequestsException
- There were too many requests.AccessDeniedException
- You don't have sufficient permission to perform this action.NotFoundException
- The request specifies something that doesn't exist.BadRequestException
- A bad request was received.InternalServerErrorException
- There was an internal server error.public UntagResourceResult untagResource(UntagResourceRequest request)
Removes a tag from a resource.
untagResource
in interface AmazonInternetMonitor
untagResourceRequest
- TooManyRequestsException
- There were too many requests.AccessDeniedException
- You don't have sufficient permission to perform this action.NotFoundException
- The request specifies something that doesn't exist.BadRequestException
- A bad request was received.InternalServerErrorException
- There was an internal server error.public UpdateMonitorResult updateMonitor(UpdateMonitorRequest request)
Updates a monitor. You can update a monitor to add or remove resources, or to change the status of the monitor. You can't change the name of a monitor.
updateMonitor
in interface AmazonInternetMonitor
updateMonitorRequest
- InternalServerException
- An internal error occurred.ResourceNotFoundException
- The request specifies a resource that doesn't exist.AccessDeniedException
- You don't have sufficient permission to perform this action.ThrottlingException
- The request was denied due to request throttling.LimitExceededException
- The request exceeded a service quota.ValidationException
- Invalid request.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AmazonInternetMonitor
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AmazonInternetMonitor
shutdown
in class AmazonWebServiceClient