Authored by qinchao

自动伸缩

@@ -39,7 +39,7 @@ public class AutoScalingFetcher { @@ -39,7 +39,7 @@ public class AutoScalingFetcher {
39 group.setId(autoScalingGroup.getAutoScalingGroupARN()); 39 group.setId(autoScalingGroup.getAutoScalingGroupARN());
40 group.setTagForName(getGroupNameForTag(autoScalingGroup)); 40 group.setTagForName(getGroupNameForTag(autoScalingGroup));
41 group.setName(group.getTagForName()); 41 group.setName(group.getTagForName());
42 - //group.setName(autoScalingGroup.getAutoScalingGroupName()); 42 + group.setAwsGroupName(autoScalingGroup.getAutoScalingGroupName());
43 group.setMax(autoScalingGroup.getMaxSize()); 43 group.setMax(autoScalingGroup.getMaxSize());
44 group.setMin(autoScalingGroup.getMinSize()); 44 group.setMin(autoScalingGroup.getMinSize());
45 group.setDesired(autoScalingGroup.getDesiredCapacity()); 45 group.setDesired(autoScalingGroup.getDesiredCapacity());
@@ -18,6 +18,7 @@ import java.util.stream.Collectors; @@ -18,6 +18,7 @@ import java.util.stream.Collectors;
18 public class AutoScalingGroup { 18 public class AutoScalingGroup {
19 19
20 private String name; 20 private String name;
  21 + private String awsGroupName;
21 private String tagForName; 22 private String tagForName;
22 private List<AutoScalingHost> autoScalingHosts = new LinkedList<>(); 23 private List<AutoScalingHost> autoScalingHosts = new LinkedList<>();
23 private String id; 24 private String id;