|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceClient
com.amazonaws.services.cloudwatch.AmazonCloudWatchClient
public class AmazonCloudWatchClient
Client for accessing AmazonCloudWatch. All service calls made using this client are blocking, and will not return until the service call completes.
Constructor Summary | |
---|---|
AmazonCloudWatchClient(AWSCredentials awsCredentials)
Constructs a new client to invoke service methods on AmazonCloudWatch using the specified AWS account credentials. |
|
AmazonCloudWatchClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on AmazonCloudWatch using the specified AWS account credentials and client configuration options. |
Method Summary | |
---|---|
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. |
GetMetricStatisticsResult |
getMetricStatistics(GetMetricStatisticsRequest getMetricStatisticsRequest)
|
ListMetricsResult |
listMetrics()
|
ListMetricsResult |
listMetrics(ListMetricsRequest listMetricsRequest)
|
Methods inherited from class com.amazonaws.AmazonWebServiceClient |
---|
setEndpoint, shutdown |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.amazonaws.services.cloudwatch.AmazonCloudWatch |
---|
setEndpoint, shutdown |
Constructor Detail |
---|
public AmazonCloudWatchClient(AWSCredentials awsCredentials)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.public AmazonCloudWatchClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.clientConfiguration
- The client configuration options controlling how this
client connects to AmazonCloudWatch
(ex: proxy settings, retry counts, etc.).Method Detail |
---|
public ListMetricsResult listMetrics(ListMetricsRequest listMetricsRequest) throws AmazonServiceException, AmazonClientException
listMetrics
in interface AmazonCloudWatch
listMetricsRequest
- Container for the necessary parameters to
execute the ListMetrics service method on AmazonCloudWatch.
InvalidParameterValueException
InternalServiceException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonCloudWatch indicating
either a problem with the data in the request, or a server side issue.public GetMetricStatisticsResult getMetricStatistics(GetMetricStatisticsRequest getMetricStatisticsRequest) throws AmazonServiceException, AmazonClientException
getMetricStatistics
in interface AmazonCloudWatch
getMetricStatisticsRequest
- Container for the necessary
parameters to execute the GetMetricStatistics service method on
AmazonCloudWatch.
InvalidParameterValueException
InternalServiceException
InvalidParameterCombinationException
MissingRequiredParameterException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonCloudWatch indicating
either a problem with the data in the request, or a server side issue.public ListMetricsResult listMetrics() throws AmazonServiceException, AmazonClientException
listMetrics
in interface AmazonCloudWatch
InvalidParameterValueException
InternalServiceException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonCloudWatch indicating
either a problem with the data in the request, or a server side issue.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 AmazonCloudWatch
request
- The originally executed request
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |