|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xerox.amazonws.common.AWSConnection
com.xerox.amazonws.common.AWSQueryConnection
com.xerox.amazonws.monitoring.Monitoring
public class Monitoring
A Java wrapper for the Monitoring web services API
| Field Summary |
|---|
| Fields inherited from class com.xerox.amazonws.common.AWSConnection |
|---|
headers |
| Constructor Summary | |
|---|---|
Monitoring(String awsAccessId,
String awsSecretKey)
Initializes the ec2 service with your AWS login information. |
|
Monitoring(String awsAccessId,
String awsSecretKey,
boolean isSecure)
Initializes the ec2 service with your AWS login information. |
|
Monitoring(String awsAccessId,
String awsSecretKey,
boolean isSecure,
String server)
Initializes the ec2 service with your AWS login information. |
|
Monitoring(String awsAccessId,
String awsSecretKey,
boolean isSecure,
String server,
int port)
Initializes the ec2 service with your AWS login information. |
|
| Method Summary | ||
|---|---|---|
MetricStatisticsResult |
getMetricStatistics(int period,
List<Statistics> statistics,
String namespace,
Map<String,String> dimensions,
Date startTime,
Date endTime,
String measureName,
StandardUnit unit,
String customUnit)
Describe the AMIs that match the intersection of the criteria supplied |
|
List<Metric> |
listMetrics()
List the valid metrics that have recorded data available. |
|
protected
|
makeRequestInt(org.apache.http.client.methods.HttpRequestBase method,
String action,
Map<String,String> params,
Class<T> respType)
|
|
| Methods inherited from class com.xerox.amazonws.common.AWSQueryConnection |
|---|
close, close, getConnectionManagerTimeout, getConnectionTimeout, getHeaders, getHttpClient, getMaxConnections, getMaxRetries, getServerTimeZone, getSoTimeout, getString, httpDate, makeRequest, setConnectionManagerTimeout, setConnectionTimeout, setHttpClient, setMaxConnections, setMaxRetries, setProxyValues, setProxyValues, setProxyValues, setServerTimeZone, setSoTimeout, useSystemProxy |
| Methods inherited from class com.xerox.amazonws.common.AWSConnection |
|---|
encode, encode, getAlgorithm, getAwsAccessKeyId, getPort, getResourcePrefix, getSecretAccessKey, getServer, getSignatureVersion, getUrl, isSecure, makeURL, setResourcePrefix, setServer, setSignatureVersion, urlencode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Monitoring(String awsAccessId,
String awsSecretKey)
awsAccessId - The your user key into AWSawsSecretKey - The secret string used to generate signatures for authentication.
public Monitoring(String awsAccessId,
String awsSecretKey,
boolean isSecure)
awsAccessId - The your user key into AWSawsSecretKey - The secret string used to generate signatures for authentication.isSecure - True if the data should be encrypted on the wire on the way to or from EC2.
public Monitoring(String awsAccessId,
String awsSecretKey,
boolean isSecure,
String server)
awsAccessId - The your user key into AWSawsSecretKey - The secret string used to generate signatures for authentication.isSecure - True if the data should be encrypted on the wire on the way to or from EC2.server - Which host to connect to. Usually, this will be monitoring.amazonaws.com
public Monitoring(String awsAccessId,
String awsSecretKey,
boolean isSecure,
String server,
int port)
awsAccessId - The your user key into AWSawsSecretKey - The secret string used to generate signatures for authentication.isSecure - True if the data should be encrypted on the wire on the way to or from EC2.server - Which host to connect to. Usually, this will be ec2.amazonaws.comport - Which port to use.| Method Detail |
|---|
public MetricStatisticsResult getMetricStatistics(int period,
List<Statistics> statistics,
String namespace,
Map<String,String> dimensions,
Date startTime,
Date endTime,
String measureName,
StandardUnit unit,
String customUnit)
throws MonitoringException
period - granularity in seconds for the returned data pointsnamespace - statistics - dimensions - one or more dimension along which to aggregate the datastartTime - timestamp of the first datapointendTime - timestamp of the last datapointmeasureName - name of a measure for the gathered metricunit - standard unit of measurement for a given measurecustomUnit - user defined custom unit applied to a measure
Datapoint.
MonitoringException - wraps checked exceptions
public List<Metric> listMetrics()
throws MonitoringException
Metric.
MonitoringException - wraps checked exceptions
protected <T> T makeRequestInt(org.apache.http.client.methods.HttpRequestBase method,
String action,
Map<String,String> params,
Class<T> respType)
throws MonitoringException
MonitoringException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||