/// <summary>
 /// Get list of spark applications for the workspace.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace to execute operations on.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SparkJobListViewResponse> GetSparkJobListAsync(this IMonitoringOperations operations, string workspaceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetSparkJobListWithHttpMessagesAsync(workspaceName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Get list of spark applications for the workspace.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace to execute operations on.
 /// </param>
 public static SparkJobListViewResponse GetSparkJobList(this IMonitoringOperations operations, string workspaceName)
 {
     return(operations.GetSparkJobListAsync(workspaceName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get History Server Data for a given workspace, pool, livyid, appid and
 /// attemptId
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace to execute operations on.
 /// </param>
 /// <param name='poolName'>
 /// The spark pool name.
 /// </param>
 /// <param name='livyId'>
 /// The livy id.
 /// </param>
 /// <param name='appId'>
 /// The application id.
 /// </param>
 /// <param name='attemptId'>
 /// The attempt id.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <HistoryServerDataResponse> GetHistoryServerDataAsync(this IMonitoringOperations operations, string workspaceName, string poolName, string livyId, string appId, string attemptId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetHistoryServerDataWithHttpMessagesAsync(workspaceName, poolName, livyId, appId, attemptId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Get History Server Data for a given workspace, pool, livyid, appid and
 /// attemptId
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace to execute operations on.
 /// </param>
 /// <param name='poolName'>
 /// The spark pool name.
 /// </param>
 /// <param name='livyId'>
 /// The livy id.
 /// </param>
 /// <param name='appId'>
 /// The application id.
 /// </param>
 /// <param name='attemptId'>
 /// The attempt id.
 /// </param>
 public static HistoryServerDataResponse GetHistoryServerData(this IMonitoringOperations operations, string workspaceName, string poolName, string livyId, string appId, string attemptId)
 {
     return(operations.GetHistoryServerDataAsync(workspaceName, poolName, livyId, appId, attemptId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get History server properties.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace to execute operations on.
 /// </param>
 public static HistoryServerPropertiesResponse GetHistoryServerProperties(this IMonitoringOperations operations, string workspaceName)
 {
     return(operations.GetHistoryServerPropertiesAsync(workspaceName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get one spark application details given the workspace name, pool name and
 /// livyid.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace to execute operations on.
 /// </param>
 /// <param name='poolName'>
 /// The spark pool name.
 /// </param>
 /// <param name='livyId'>
 /// The livy id.
 /// </param>
 public static SparkJobListViewResponse GetApplicationDetails(this IMonitoringOperations operations, string workspaceName, string poolName, string livyId)
 {
     return(operations.GetApplicationDetailsAsync(workspaceName, poolName, livyId).GetAwaiter().GetResult());
 }
예제 #7
0
 public MonitoringController(IMonitoringOperations _monitoringOperations, IEC2Operations _eC2Operations)
 {
     monitoringOperations = _monitoringOperations;
     eC2Operations        = _eC2Operations;
 }