code: public EventsResults getByType(String appId, EventType eventType) {
          return getByTypeWithServiceResponseAsync(appId, eventType).toBlocking().single().body();
      }
docs: Execute OData query.
  Executes an OData query for events.
  
  @param appId ID of the application. This is Application ID from the API Access settings blade in the Azure portal.
  @param eventType The type of events to query; either a standard event type (`traces`, `customEvents`, `pageViews`, `requests`, `dependencies`, `exceptions`, `availabilityResults`) or `$all` to query across all event types. Possible values include: '$all', 'traces', 'customEvents', 'pageViews', 'browserTimings', 'requests', 'dependencies', 'exceptions', 'availabilityResults', 'performanceCounters', 'customMetrics'
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ErrorResponseException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the EventsResults object if successful.