public Optional<QueryData> list(long accountId, String query)
    {
        QueryParameterList queryParams = new QueryParameterList();
        queryParams.add("nrql", encode(query));
        return HTTP.GET(String.format("/v1/accounts/%d/query", accountId), null, queryParams, QUERY_DATA);
    }
public Optional < QueryData > list ( long accountId , String query ) { QueryParameterList queryParams = new QueryParameterList ( ) ; queryParams . add ( "nrql" , encode ( query ) ) ; return HTTP . GET ( String . format ( "/v1/accounts/%d/query" , accountId ) , null , queryParams , QUERY_DATA ) ; }
Returns the set of data for a query.
@param accountId The id of the account to query
@param query The NRQL query to execute
@return The query data