public List < Metric > getMetrics ( List < String > expressions ) throws IOException , TokenExpiredException { StringBuilder requestUrl = new StringBuilder ( RESOURCE ) ; for ( int i = 0 ; i < expressions . size ( ) ; i ++ ) { requestUrl . append ( i == 0 ? "?" : "&" ) ; requestUrl . append ( "expression=" ) . append ( expressions . get ( i ) ) ; } ArgusResponse response = getClient ( ) . executeHttpRequest ( ArgusHttpClient . RequestType . GET , requestUrl . toString ( ) , null ) ; assertValidResponse ( response , requestUrl . toString ( ) ) ; return fromJson ( response . getResult ( ) , new TypeReference < List < Metric > > ( ) { } ) ; }
Returns the metrics for the given set of expressions .