Example usage for com.amazonaws.services.autoscaling.model EnabledMetric getMetric

List of usage examples for com.amazonaws.services.autoscaling.model EnabledMetric getMetric

Introduction

In this page you can find the example usage for com.amazonaws.services.autoscaling.model EnabledMetric getMetric.

Prototype


public String getMetric() 

Source Link

Document

One of the following metrics:

  • GroupMinSize

  • GroupMaxSize

  • GroupDesiredCapacity

  • GroupInServiceInstances

  • GroupPendingInstances

  • GroupStandbyInstances

  • GroupTerminatingInstances

  • GroupTotalInstances

Usage

From source file:org.xmlsh.aws.asDescribeGroups.java

License:BSD License

private void writeMetrics(List<EnabledMetric> enabledMetrics) throws XMLStreamException {
    startElement("enabled-metrics");
    for (EnabledMetric metric : enabledMetrics) {
        startElement("enabled-metric");
        attribute("granularity", metric.getGranularity());
        attribute("metric", metric.getMetric());
        endElement();//w w w.  j  a va  2  s . co  m

    }
    endElement();

}