def alerts_in_state(state)
      require_relative 'search'
      wfs = Wavefront::Search.new(creds, opts)
      query = { key: 'status', value: state, matchingMethod: 'EXACT' }
      wfs.search(:alert, query, limit: :all, offset: PAGE_SIZE)
    end
def alerts_in_state(state)
      require_relative 'search'
      wfs = Wavefront::Search.new(creds, opts)
      query = { key: 'status', value: state, matchingMethod: 'EXACT' }
      wfs.search(:alert, query, limit: :all, offset: PAGE_SIZE)
    end
Use a search to get all alerts in the given state. You would
 be better to use one of the wrapper methods like #firing,
 #snoozed etc, but I've left this method public in case new
 states are added before the SDK supports them.
 @param state [Symbol] state such as :firing, :snoozed etc. See
   the Alert Swagger documentation for a full list
 @return [Wavfront::Response]