code: public ServiceFuture<EventsResults> getByTypeAsync(String appId, EventType eventType, String timespan, String filter, String search, String orderby, String select, Integer skip, Integer top, String format, Boolean count, String apply, final ServiceCallback<EventsResults> serviceCallback) {
          return ServiceFuture.fromResponse(getByTypeWithServiceResponseAsync(appId, eventType, timespan, filter, search, orderby, select, skip, top, format, count, apply), serviceCallback);
      }
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'
  @param timespan Optional. The timespan over which to retrieve events. This is an ISO8601 time period value.  This timespan is applied in addition to any that are specified in the Odata expression.
  @param filter An expression used to filter the returned events
  @param search A free-text search expression to match for whether a particular event should be returned
  @param orderby A comma-separated list of properties with \"asc\" (the default) or \"desc\" to control the order of returned events
  @param select Limits the properties to just those requested on each returned event
  @param skip The number of items to skip over before returning events
  @param top The number of events to return
  @param format Format for the returned events
  @param count Request a count of matching items included with the returned events
  @param apply An expression used for aggregation over returned events
  @param serviceCallback the async ServiceCallback to handle successful and failed responses.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the {@link ServiceFuture} object