def list_by_alert_rule(resource_group_name, rule_name, custom_headers:nil)
      response = list_by_alert_rule_async(resource_group_name, rule_name, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def list_by_alert_rule(resource_group_name, rule_name, custom_headers:nil)
      response = list_by_alert_rule_async(resource_group_name, rule_name, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Gets a list of incidents associated to an alert rule

 @param resource_group_name [String] The name of the resource group.
 @param rule_name [String] The name of the rule.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [IncidentListResult] operation results.