code: public ApiResponse<InlineResponse2002> subscribeWithHttpInfo(StatisticsSubscribeData statisticsSubscribeData) throws ApiException {
          com.squareup.okhttp.Call call = subscribeValidateBeforeCall(statisticsSubscribeData, null, null);
          Type localVarReturnType = new TypeToken<InlineResponse2002>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Subscribe to statistics
  Open a subscription for the specified set of statistics. The values are returned when you request them using [/reporting/subscriptions/{subscriptionId}](/reference/workspace/Reporting/index.html#peek).
  @param statisticsSubscribeData The collection of statistics you want to include in your subscription. (required)
  @return ApiResponse&lt;InlineResponse2002&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body