All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jclouds.aws.cloudwatch.CloudWatchClient Maven / Gradle / Ivy

The newest version!
/**
 *
 * Copyright (C) 2010 Cloud Conscious, LLC. 
 *
 * ====================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ====================================================================
 */

package org.jclouds.aws.cloudwatch;

import java.util.Date;
import java.util.Set;
import java.util.concurrent.TimeUnit;

import javax.annotation.Nullable;

import org.jclouds.aws.cloudwatch.domain.Datapoint;
import org.jclouds.concurrent.Timeout;

/**
 * Provides access to Amazon CloudWatch via the Query API
 * 

* * @see * @author Adrian Cole */ @Timeout(duration = 30, timeUnit = TimeUnit.SECONDS) public interface CloudWatchClient { /** * This call returns data for one or more statistics of given a metric. For more information, see * Statistic and Metric. *

*

Note

The maximum number of datapoints that the Amazon CloudWatch service will return * in a single GetMetricStatistics request is 1,440. If a request is made that would generate * more datapoints than this amount, Amazon CloudWatch will return an error. You can alter your * request by narrowing the time range (StartTime, EndTime) or increasing the Period in your * single request. You may also get all of the data at the granularity you originally asked for * by making multiple requests with adjacent time ranges. * * @param region * region to gather metrics in * @param measureName * The measure name that corresponds to the measure for the gathered metric. *

* note *

* Must be a valid collected metric with the corresponding measure name, please see * Available Amazon CloudWatch Metrics * @param startTime * The timestamp of the first datapoint to return, inclusive. We round your value down * to the nearest minute. You can set your start time for more than two weeks in the * past. However, you will only get data for the past two weeks. * @param endTime * The timestamp to use for determining the last datapoint to return. This is the last * datapoint to fetch, exclusive. * @param period * The granularity (in seconds) of the returned datapoints. * @param statistics * The statistics to be returned for the given metric. ex. Average */ Set getMetricStatisticsInRegion(@Nullable String region, String measureName, Date startTime, Date endTime, int period, String statistics); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy