def pagerduty_acknowledgements(time, subdomain, token, check_names)
          if subdomain.blank? || token.blank?
            Flapjack.logger.warn("pagerduty_acknowledgements?: Unable to look for acknowledgements on PagerDuty" \
             " as the following options are required: subdomain (#{subdomain}), token (#{token})")
            return
          end

          t = time.utc

          # handle paginated results
          cumulative_incidents = []

          offset = 0
          requesting = true

          while requesting do
            response = pagerduty_acknowledgements_request(t, subdomain, token, 100, offset)

            if response.nil?
              cumulative_incidents = []
              requesting = false
            else
              cumulative_incidents += response['incidents'].select do |incident|
                check_names.include?(incident['incident_key'])
              end

              offset = response['offset'] + response['incidents'].size

              requesting = (offset < response['total'])
            end
          end

          @initial = false

          cumulative_incidents
        end
returns any PagerDuty acknowledgements for the named checks