def site_query(*args)
      response = conn.get(url_picker(*args), {}, query_headers)

      if response.body['SiteId'] || response.body['PointId']
        JSON.parse(response.body)
      else
        fail QueryError, "Query Failed! HTTPStatus: #{response.status}"
      end
    end
def site_query(*args)
      response = conn.get(url_picker(*args), {}, query_headers)

      if response.body['SiteId'] || response.body['PointId']
        JSON.parse(response.body)
      else
        fail QueryError, "Query Failed! HTTPStatus: #{response.status}"
      end
    end
Returns site attributes and history data if an optional query_hash is supplied
 @client.site_query(x) will return the attributes of site x
 @client.site_query(x, query_hash) will return historical data from site x instrumentation