Example usage for com.amazonaws.services.autoscaling.model AutoScalingGroup getEnabledMetrics

List of usage examples for com.amazonaws.services.autoscaling.model AutoScalingGroup getEnabledMetrics

Introduction

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

Prototype


public java.util.List<EnabledMetric> getEnabledMetrics() 

Source Link

Document

The metrics enabled for the group.

Usage

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

License:BSD License

private void write(AutoScalingGroup group) throws XMLStreamException {
    startElement("group");
    attribute("group-arn", group.getAutoScalingGroupARN());
    attribute("name", group.getAutoScalingGroupName());

    attribute("create-time", group.getCreatedTime());
    attribute("default-cooldown", group.getDefaultCooldown());
    attribute("desired-capacity", group.getDesiredCapacity());

    attribute("health-check-grace-period", group.getHealthCheckGracePeriod());
    attribute("health-check-type", group.getHealthCheckType());

    attribute("launch-configuration-name", group.getLaunchConfigurationName());

    attribute("max-size", group.getMaxSize());
    attribute("min-size", group.getMinSize());
    attribute("placement-group", group.getPlacementGroup());

    attribute("status", group.getStatus());

    attribute("vpc-zone-id", group.getVPCZoneIdentifier());
    writeStringList("termination-policies", "termination-policy", "name", group.getTerminationPolicies());

    writeZones(group.getAvailabilityZones());
    writeMetrics(group.getEnabledMetrics());
    writeInstances(group.getInstances());
    writeELBNames(group.getLoadBalancerNames());
    writeSuspendedProcesses(group.getSuspendedProcesses());
    writeTagDescriptions(group.getTags());
    endElement();// w w  w .  jav a  2  s.  co  m

}