code: public ApiSuccessResponse startMonitoring(StartMonitoringData startMonitoringData) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = startMonitoringWithHttpInfo(startMonitoringData);
          return resp.getData();
      }
docs: Start monitoring an agent
  Start supervisor monitoring of an agent. Use the parameters to specify how the monitoring should behave. Once you&#39;ve enabled monitoring, you can change the monitoring mode using [/voice/calls/{id}/switch-to-listen-in (Mute)](/reference/workspace/Voice/index.html#switchToListenIn), [/voice/calls/{id}/switch-to-coaching (Coach)](/reference/workspace/Voice/index.html#switchToCoaching), and [/voice/calls/{id}/switch-to-barge-in (Connect)](/reference/workspace/Voice/index.html#switchToBargeIn).
  @param startMonitoringData  (required)
  @return ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body