public List < StatisticValue > peek ( String subscriptionId ) throws WorkspaceApiException { try { InlineResponse2002 resp = api . peek ( subscriptionId ) ; Util . throwIfNotOk ( resp . getStatus ( ) ) ; InlineResponse2002Data data = resp . getData ( ) ; if ( data == null ) { throw new WorkspaceApiException ( "Response data is empty" ) ; } return data . getStatistics ( ) ; } catch ( ApiException ex ) { throw new WorkspaceApiException ( "Cannot peek" , ex ) ; } }
Get the statistics for the specified subscription ID .