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 .