test_class.declarator: cwRaiderImplUnderTest
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private CloudWatchRaiderImpl cwRaiderImplUnderTest;
test_class.type: CloudWatchRaiderImpl
test_class.var_name: cwRaiderImplUnderTest
test_class.declarator: cwDelegator
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private CloudWatchDelegator cwDelegator;
test_class.type: CloudWatchDelegator
test_class.var_name: cwDelegator
test_class.declarator: amazonCloudWatch
test_class.modifier: private
test_class.original_string: private  AmazonCloudWatch amazonCloudWatch;
test_class.type: AmazonCloudWatch
test_class.var_name: amazonCloudWatch
test_class.file: cloudraider-core/src/test/java/com/intuit/cloudraider/core/impl/CloudWatchRaiderImplTest.java
test_class.identifier: CloudWatchRaiderImplTest
test_case.body: @Test
      public void testGetCloudWatchAlarmByNameAndDate() {
  
          List<MetricAlarm> alarms = cwRaiderImplUnderTest.getCloudWatchAlarmByNameAndDate("test-alarm", new Date());
          Assert.assertEquals(alarms.get(0).getAlarmName(),"test-alarm");
      }
test_case.class_method_signature: CloudWatchRaiderImplTest.testGetCloudWatchAlarmByNameAndDate()
test_case.full_signature: @Test public void testGetCloudWatchAlarmByNameAndDate()
test_case.identifier: testGetCloudWatchAlarmByNameAndDate
test_case.invocations: getCloudWatchAlarmByNameAndDate assertEquals getAlarmName get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetCloudWatchAlarmByNameAndDate()
focal_class.declarator: cloudWatchDelegator
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private CloudWatchDelegator cloudWatchDelegator;
focal_class.type: CloudWatchDelegator
focal_class.var_name: cloudWatchDelegator
focal_class.declarator: logger = LoggerFactory.getLogger(this.getClass())
focal_class.original_string: Logger logger = LoggerFactory.getLogger(this.getClass());
focal_class.type: Logger
focal_class.var_name: logger
focal_class.file: cloudraider-core/src/main/java/com/intuit/cloudraider/core/impl/CloudWatchRaiderImpl.java
focal_class.identifier: CloudWatchRaiderImpl
focal_class.interfaces: implements CloudWatchRaider
focal_class.class_method_signature: CloudWatchRaiderImpl.CloudWatchRaiderImpl()
focal_class.full_signature: public  CloudWatchRaiderImpl()
focal_class.identifier: CloudWatchRaiderImpl
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  CloudWatchRaiderImpl()
focal_class.class_method_signature: CloudWatchRaiderImpl.getCloudWatchAlarmByName(String alarmName)
focal_class.full_signature: @Override public List<MetricAlarm> getCloudWatchAlarmByName(String alarmName)
focal_class.identifier: getCloudWatchAlarmByName
focal_class.modifiers: @Override public
focal_class.parameters: (String alarmName)
focal_class.return: List<MetricAlarm>
focal_class.signature: List<MetricAlarm> getCloudWatchAlarmByName(String alarmName)
focal_class.class_method_signature: CloudWatchRaiderImpl.isStateInAlarm(String alarmName)
focal_class.full_signature: @Override public boolean isStateInAlarm(String alarmName)
focal_class.identifier: isStateInAlarm
focal_class.modifiers: @Override public
focal_class.parameters: (String alarmName)
focal_class.return: boolean
focal_class.signature: boolean isStateInAlarm(String alarmName)
focal_class.class_method_signature: CloudWatchRaiderImpl.getCloudWatchAlarmByNameAndDate(String alarmName, Date afterDate)
focal_class.full_signature: @Override public List<MetricAlarm> getCloudWatchAlarmByNameAndDate(String alarmName, Date afterDate)
focal_class.identifier: getCloudWatchAlarmByNameAndDate
focal_class.modifiers: @Override public
focal_class.parameters: (String alarmName, Date afterDate)
focal_class.return: List<MetricAlarm>
focal_class.signature: List<MetricAlarm> getCloudWatchAlarmByNameAndDate(String alarmName, Date afterDate)
focal_class.class_method_signature: CloudWatchRaiderImpl.getELBUnHealthyHostMetric(String loadBalancerName)
focal_class.full_signature: @Override public Double getELBUnHealthyHostMetric(String loadBalancerName)
focal_class.identifier: getELBUnHealthyHostMetric
focal_class.modifiers: @Override public
focal_class.parameters: (String loadBalancerName)
focal_class.return: Double
focal_class.signature: Double getELBUnHealthyHostMetric(String loadBalancerName)
focal_class.class_method_signature: CloudWatchRaiderImpl.getELBMetric(String loadBalancerName, String metricName)
focal_class.full_signature: @Override public Double getELBMetric(String loadBalancerName, String metricName)
focal_class.identifier: getELBMetric
focal_class.modifiers: @Override public
focal_class.parameters: (String loadBalancerName, String metricName)
focal_class.return: Double
focal_class.signature: Double getELBMetric(String loadBalancerName, String metricName)
focal_class.class_method_signature: CloudWatchRaiderImpl.getEC2Metric(String instanceId, String metricName)
focal_class.full_signature: @Override public Double getEC2Metric(String instanceId, String metricName)
focal_class.identifier: getEC2Metric
focal_class.modifiers: @Override public
focal_class.parameters: (String instanceId, String metricName)
focal_class.return: Double
focal_class.signature: Double getEC2Metric(String instanceId, String metricName)
focal_class.class_method_signature: CloudWatchRaiderImpl.getMetric(String dimensionName, String dimensionValue, String statisticType, String namespace, String metricName)
focal_class.full_signature: private Double getMetric(String dimensionName, String dimensionValue, String statisticType, String namespace, String metricName)
focal_class.identifier: getMetric
focal_class.modifiers: private
focal_class.parameters: (String dimensionName, String dimensionValue, String statisticType, String namespace, String metricName)
focal_class.return: Double
focal_class.signature: Double getMetric(String dimensionName, String dimensionValue, String statisticType, String namespace, String metricName)
focal_class.class_method_signature: CloudWatchRaiderImpl.getCloudWatchAlarmHistory(String alarmName)
focal_class.full_signature: @Override public List<AlarmHistoryItem> getCloudWatchAlarmHistory(String alarmName)
focal_class.identifier: getCloudWatchAlarmHistory
focal_class.modifiers: @Override public
focal_class.parameters: (String alarmName)
focal_class.return: List<AlarmHistoryItem>
focal_class.signature: List<AlarmHistoryItem> getCloudWatchAlarmHistory(String alarmName)
focal_class.class_method_signature: CloudWatchRaiderImpl.getSimpleCloudWatchMetricAlarmStatus(String alarmName)
focal_class.full_signature: @Override public AlarmStateValue getSimpleCloudWatchMetricAlarmStatus(String alarmName)
focal_class.identifier: getSimpleCloudWatchMetricAlarmStatus
focal_class.modifiers: @Override public
focal_class.parameters: (String alarmName)
focal_class.return: AlarmStateValue
focal_class.signature: AlarmStateValue getSimpleCloudWatchMetricAlarmStatus(String alarmName)
focal_class.class_method_signature: CloudWatchRaiderImpl.getAlarmState(String alarmName)
focal_class.full_signature: @Override public String getAlarmState(String alarmName)
focal_class.identifier: getAlarmState
focal_class.modifiers: @Override public
focal_class.parameters: (String alarmName)
focal_class.return: String
focal_class.signature: String getAlarmState(String alarmName)
focal_class.class_method_signature: CloudWatchRaiderImpl.countAlarmsInState(String alarmState)
focal_class.full_signature: @Override public Integer countAlarmsInState(String alarmState)
focal_class.identifier: countAlarmsInState
focal_class.modifiers: @Override public
focal_class.parameters: (String alarmState)
focal_class.return: Integer
focal_class.signature: Integer countAlarmsInState(String alarmState)
focal_method.body: @Override
      public List<MetricAlarm> getCloudWatchAlarmByNameAndDate(String alarmName, Date afterDate) {
  
          return cloudWatchDelegator.getAmazonCloudWatch().describeAlarms()
                  .getMetricAlarms()
                  .stream()
                  .filter(x -> x.getAlarmName().toLowerCase().contains(alarmName.toLowerCase()) && x.getStateUpdatedTimestamp().after(afterDate))
                  .collect(Collectors.toList());
      }
focal_method.class_method_signature: CloudWatchRaiderImpl.getCloudWatchAlarmByNameAndDate(String alarmName, Date afterDate)
focal_method.full_signature: @Override public List<MetricAlarm> getCloudWatchAlarmByNameAndDate(String alarmName, Date afterDate)
focal_method.identifier: getCloudWatchAlarmByNameAndDate
focal_method.invocations: collect filter stream getMetricAlarms describeAlarms getAmazonCloudWatch contains toLowerCase getAlarmName toLowerCase after getStateUpdatedTimestamp toList
focal_method.modifiers: @Override public
focal_method.parameters: (String alarmName, Date afterDate)
focal_method.return: List<MetricAlarm>
focal_method.signature: List<MetricAlarm> getCloudWatchAlarmByNameAndDate(String alarmName, Date afterDate)