code: public InlineResponse2002 subscribe(StatisticsSubscribeData statisticsSubscribeData) throws ApiException {
          ApiResponse<InlineResponse2002> resp = subscribeWithHttpInfo(statisticsSubscribeData);
          return resp.getData();
      }
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 InlineResponse2002
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body