Пример #1
0
 /// <summary>
 /// Post Metrics to a Run.
 /// </summary>
 /// <remarks>
 /// Post Metrics 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 for a run.
 /// </param>
 /// <param name='batchMetricDto'>
 /// Details of the Metrics which will be added to the Run Id.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BatchPostAsync(this IRunMetricsOperations operations, System.Guid subscriptionId, string resourceGroupName, string workspaceName, string experimentName, string runId, BatchMetric batchMetricDto = default(BatchMetric), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BatchPostWithHttpMessagesAsync(subscriptionId, resourceGroupName, workspaceName, experimentName, runId, batchMetricDto, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Пример #2
0
 /// <summary>
 /// Post Metrics to a Run.
 /// </summary>
 /// <remarks>
 /// Post Metrics 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 for a run.
 /// </param>
 /// <param name='batchMetricDto'>
 /// Details of the Metrics which will be added to the Run Id.
 /// </param>
 public static void BatchPost(this IRunMetricsOperations operations, System.Guid subscriptionId, string resourceGroupName, string workspaceName, string experimentName, string runId, BatchMetric batchMetricDto = default(BatchMetric))
 {
     operations.BatchPostAsync(subscriptionId, resourceGroupName, workspaceName, experimentName, runId, batchMetricDto).GetAwaiter().GetResult();
 }