Exemple #1
0
 /// <summary>
 /// Get the status history for a given analysis over the past several builds.
 /// Using the same source and type, builds are walked backward from the current
 /// time until a number of days matching {!:days} days worth
 /// of results are found, and all status counts grouped by build are returned.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='source'>
 /// The 'source' of all jobs to consider
 /// </param>
 /// <param name='type'>
 /// The 'type' of all jobs to consider
 /// </param>
 /// <param name='workitem'>
 /// The name of the workitem to analyse
 /// </param>
 /// <param name='analysisType'>
 /// The type of analysis to get details for
 /// </param>
 /// <param name='analysisName'>
 /// The name of a specific item in the analysis to get details for
 /// </param>
 /// <param name='days'>
 /// Number of days of history to examine
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <HistoricalAnalysisItem> > HistoryAsync(this IAggregate operations, string source, string type, string workitem, string analysisType, string analysisName, int days, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.HistoryWithHttpMessagesAsync(source, type, workitem, analysisType, analysisName, days, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }