/// <summary>
 /// Execute OData query
 /// </summary>
 /// <remarks>
 /// Executes an OData query for events
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='appId'>
 /// ID of the application. This is Application ID from the API Access settings
 /// blade in the Azure portal.
 /// </param>
 /// <param name='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>
 /// <param name='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>
 /// <param name='filter'>
 /// An expression used to filter the returned events
 /// </param>
 /// <param name='search'>
 /// A free-text search expression to match for whether a particular event
 /// should be returned
 /// </param>
 /// <param name='orderby'>
 /// A comma-separated list of properties with \"asc\" (the default) or \"desc\"
 /// to control the order of returned events
 /// </param>
 /// <param name='select'>
 /// Limits the properties to just those requested on each returned event
 /// </param>
 /// <param name='skip'>
 /// The number of items to skip over before returning events
 /// </param>
 /// <param name='top'>
 /// The number of events to return
 /// </param>
 /// <param name='format'>
 /// Format for the returned events
 /// </param>
 /// <param name='count'>
 /// Request a count of matching items included with the returned events
 /// </param>
 /// <param name='apply'>
 /// An expression used for aggregation over returned events
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <EventsResults> GetByTypeAsync(this IEvents operations, string appId, string eventType, string timespan = default(string), string filter = default(string), string search = default(string), string orderby = default(string), string select = default(string), int?skip = default(int?), int?top = default(int?), string format = default(string), bool?count = default(bool?), string apply = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetByTypeWithHttpMessagesAsync(appId, eventType, timespan, filter, search, orderby, select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }