/// <summary> /// Provides the list of events. The **$filter** is very restricted and allows /// only the following patterns. - List events for a resource group: /// $filter=eventTimestamp ge '<Start Time>' and eventTimestamp le /// '<End Time>' and eventChannels eq 'Admin, Operation' and /// resourceGroupName eq '<ResourceGroupName>'. - List events for /// resource: $filter=eventTimestamp ge '<Start Time>' and eventTimestamp /// le '<End Time>' and eventChannels eq 'Admin, Operation' and /// resourceUri eq '<ResourceURI>'. - List events for a subscription: /// $filter=eventTimestamp ge '<Start Time>' and eventTimestamp le /// '<End Time>' and eventChannels eq 'Admin, Operation'. -List events /// for a resource provider: $filter=eventTimestamp ge '<Start Time>' and /// eventTimestamp le '<End Time>' and eventChannels eq 'Admin, /// Operation' and resourceProvider eq '<ResourceProviderName>'. - List /// events for a correlation Id: /// api-version=2014-04-01&$filter=eventTimestamp ge /// '2014-07-16T04:36:37.6407898Z' and eventTimestamp le /// '2014-07-20T04:36:37.6407898Z' and eventChannels eq 'Admin, Operation' and /// correlationId eq '<CorrelationID>'. No other syntax is allowed. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='select'> /// Used to fetch events with only the given properties. The filter is a comma /// separated list of property names to be returned. Possible values are: /// authorization, channels, claims, correlationId, description, eventDataId, /// eventName, eventTimestamp, httpRequest, level, operationId, operationName, /// properties, resourceGroupName, resourceProviderName, resourceId, status, /// submissionTimestamp, subStatus, subscriptionId /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Microsoft.Rest.Azure.IPage <EventData> > ListAsync(this IEventsOperations operations, Microsoft.Rest.Azure.OData.ODataQuery <EventData> odataQuery = default(Microsoft.Rest.Azure.OData.ODataQuery <EventData>), string select = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, select, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Batch post event data. /// </summary> /// <remarks> /// Post event data to a specific Run Id. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// The Azure Subscription ID. /// </param> /// <param name='resourceGroupName'> /// The Name of the resource group in which the workspace is located. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='experimentName'> /// The experiment name. /// </param> /// <param name='batchEventCommand'> /// The batch of Event details. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <BatchEventCommandResult> BatchPostAsync(this IEventsOperations operations, System.Guid subscriptionId, string resourceGroupName, string workspaceName, string experimentName, BatchEventCommand batchEventCommand = default(BatchEventCommand), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BatchPostWithHttpMessagesAsync(subscriptionId, resourceGroupName, workspaceName, experimentName, batchEventCommand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Provides the list of events. The **$filter** is very restricted and allows /// only the following patterns. - List events for a resource group: /// $filter=eventTimestamp ge '<Start Time>' and eventTimestamp le /// '<End Time>' and eventChannels eq 'Admin, Operation' and /// resourceGroupName eq '<ResourceGroupName>'. - List events for /// resource: $filter=eventTimestamp ge '<Start Time>' and eventTimestamp /// le '<End Time>' and eventChannels eq 'Admin, Operation' and /// resourceUri eq '<ResourceURI>'. - List events for a subscription: /// $filter=eventTimestamp ge '<Start Time>' and eventTimestamp le /// '<End Time>' and eventChannels eq 'Admin, Operation'. -List events /// for a resource provider: $filter=eventTimestamp ge '<Start Time>' and /// eventTimestamp le '<End Time>' and eventChannels eq 'Admin, /// Operation' and resourceProvider eq '<ResourceProviderName>'. - List /// events for a correlation Id: /// api-version=2014-04-01&$filter=eventTimestamp ge /// '2014-07-16T04:36:37.6407898Z' and eventTimestamp le /// '2014-07-20T04:36:37.6407898Z' and eventChannels eq 'Admin, Operation' and /// correlationId eq '<CorrelationID>'. No other syntax is allowed. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='select'> /// Used to fetch events with only the given properties. The filter is a comma /// separated list of property names to be returned. Possible values are: /// authorization, channels, claims, correlationId, description, eventDataId, /// eventName, eventTimestamp, httpRequest, level, operationId, operationName, /// properties, resourceGroupName, resourceProviderName, resourceId, status, /// submissionTimestamp, subStatus, subscriptionId /// </param> public static Microsoft.Rest.Azure.IPage <EventData> List(this IEventsOperations operations, Microsoft.Rest.Azure.OData.ODataQuery <EventData> odataQuery = default(Microsoft.Rest.Azure.OData.ODataQuery <EventData>), string select = default(string)) { return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IEventsOperations)s).ListAsync(odataQuery, select), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Provides the list of events. The **$filter** is very restricted and allows /// only the following patterns. - List events for a resource group: /// $filter=eventTimestamp ge '<Start Time>' and eventTimestamp le /// '<End Time>' and eventChannels eq 'Admin, Operation' and /// resourceGroupName eq '<ResourceGroupName>'. - List events for /// resource: $filter=eventTimestamp ge '<Start Time>' and eventTimestamp /// le '<End Time>' and eventChannels eq 'Admin, Operation' and /// resourceUri eq '<ResourceURI>'. - List events for a subscription: /// $filter=eventTimestamp ge '<Start Time>' and eventTimestamp le /// '<End Time>' and eventChannels eq 'Admin, Operation'. -List events /// for a resource provider: $filter=eventTimestamp ge '<Start Time>' and /// eventTimestamp le '<End Time>' and eventChannels eq 'Admin, /// Operation' and resourceProvider eq '<ResourceProviderName>'. - List /// events for a correlation Id: /// api-version=2014-04-01&$filter=eventTimestamp ge /// '2014-07-16T04:36:37.6407898Z' and eventTimestamp le /// '2014-07-20T04:36:37.6407898Z' and eventChannels eq 'Admin, Operation' and /// correlationId eq '<CorrelationID>'. No other syntax is allowed. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Microsoft.Rest.Azure.IPage <EventData> > ListNextAsync(this IEventsOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Provides the list of events. The **$filter** is very restricted and allows /// only the following patterns. - List events for a resource group: /// $filter=eventTimestamp ge '<Start Time>' and eventTimestamp le /// '<End Time>' and eventChannels eq 'Admin, Operation' and /// resourceGroupName eq '<ResourceGroupName>'. - List events for /// resource: $filter=eventTimestamp ge '<Start Time>' and eventTimestamp /// le '<End Time>' and eventChannels eq 'Admin, Operation' and /// resourceUri eq '<ResourceURI>'. - List events for a subscription: /// $filter=eventTimestamp ge '<Start Time>' and eventTimestamp le /// '<End Time>' and eventChannels eq 'Admin, Operation'. -List events /// for a resource provider: $filter=eventTimestamp ge '<Start Time>' and /// eventTimestamp le '<End Time>' and eventChannels eq 'Admin, /// Operation' and resourceProvider eq '<ResourceProviderName>'. - List /// events for a correlation Id: /// api-version=2014-04-01&$filter=eventTimestamp ge /// '2014-07-16T04:36:37.6407898Z' and eventTimestamp le /// '2014-07-20T04:36:37.6407898Z' and eventChannels eq 'Admin, Operation' and /// correlationId eq '<CorrelationID>'. No other syntax is allowed. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static Microsoft.Rest.Azure.IPage <EventData> ListNext(this IEventsOperations operations, string nextPageLink) { return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IEventsOperations)s).ListNextAsync(nextPageLink), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Batch post event data. /// </summary> /// <remarks> /// Post event data to a specific Run Id. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// The Azure Subscription ID. /// </param> /// <param name='resourceGroupName'> /// The Name of the resource group in which the workspace is located. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='experimentName'> /// The experiment name. /// </param> /// <param name='batchEventCommand'> /// The batch of Event details. /// </param> public static BatchEventCommandResult BatchPost(this IEventsOperations operations, System.Guid subscriptionId, string resourceGroupName, string workspaceName, string experimentName, BatchEventCommand batchEventCommand = default(BatchEventCommand)) { return(operations.BatchPostAsync(subscriptionId, resourceGroupName, workspaceName, experimentName, batchEventCommand).GetAwaiter().GetResult()); }
/// <summary> /// Post event data. /// </summary> /// <remarks> /// Post event data to a specific Run Id. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// The Azure Subscription ID. /// </param> /// <param name='resourceGroupName'> /// The Name of the resource group in which the workspace is located. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='experimentName'> /// The experiment name. /// </param> /// <param name='runId'> /// The identifier of the Run. /// </param> /// <param name='eventMessage'> /// The Event details. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PostAsync(this IEventsOperations operations, System.Guid subscriptionId, string resourceGroupName, string workspaceName, string experimentName, string runId, BaseEvent eventMessage = default(BaseEvent), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.PostWithHttpMessagesAsync(subscriptionId, resourceGroupName, workspaceName, experimentName, runId, eventMessage, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Post event data. /// </summary> /// <remarks> /// Post event data to a specific Run Id. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// The Azure Subscription ID. /// </param> /// <param name='resourceGroupName'> /// The Name of the resource group in which the workspace is located. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='experimentName'> /// The experiment name. /// </param> /// <param name='runId'> /// The identifier of the Run. /// </param> /// <param name='eventMessage'> /// The Event details. /// </param> public static void Post(this IEventsOperations operations, System.Guid subscriptionId, string resourceGroupName, string workspaceName, string experimentName, string runId, BaseEvent eventMessage = default(BaseEvent)) { operations.PostAsync(subscriptionId, resourceGroupName, workspaceName, experimentName, runId, eventMessage).GetAwaiter().GetResult(); }