Example usage for com.amazonaws.services.cloudwatch.model Datapoint getMinimum

List of usage examples for com.amazonaws.services.cloudwatch.model Datapoint getMinimum

Introduction

In this page you can find the example usage for com.amazonaws.services.cloudwatch.model Datapoint getMinimum.

Prototype


public Double getMinimum() 

Source Link

Document

The minimum metric value for the data point.

Usage

From source file:com.appdynamics.extensions.cloudwatch.metricsmanager.MetricsManager.java

License:Apache License

protected Double getValue(String namespace, String metricName, Datapoint data) {
    MetricType type = getMetricType(namespace, metricName);
    Double value = null;//  w w  w  .  j  a  v  a2s  .c  o  m

    switch (type) {
    case AVE:
        value = data.getAverage();
        break;
    case MAX:
        value = data.getMaximum();
        break;
    case MIN:
        value = data.getMinimum();
        break;
    case SUM:
        value = data.getSum();
        break;
    case SAMPLE_COUNT:
        value = data.getSampleCount();
        break;
    }

    return value;
}