public PSSparkServicePluginInformation(SparkServicePluginInformation pluginInfo) { this.PreparationStartedAt = pluginInfo?.PreparationStartedAt; this.ResourceAcquisitionStartedAt = pluginInfo?.ResourceAcquisitionStartedAt; this.SubmissionStartedAt = pluginInfo?.SubmissionStartedAt; this.MonitoringStartedAt = pluginInfo?.MonitoringStartedAt; this.CleanupStartedAt = pluginInfo?.CleanupStartedAt; this.CurrentState = pluginInfo?.CurrentState; }
public PSSynapseSparkJobInformationBase( string name, string workspaceName, string sparkPoolName, string submitterName, string submitterId, string artifactId, string jobType, string result, SchedulerInformation schedulerInfo, SparkServicePluginInformation pluginInfo, IList <ErrorInformation> errorInfo, IDictionary <string, string> tags, int?id, string appId, IDictionary <string, string> appInfo, string state, IList <string> log) { this.Name = name; this.WorkspaceName = workspaceName; this.SparkPoolName = sparkPoolName; this.SubmitterName = submitterName; this.SubmitterId = submitterId; this.ArtifactId = artifactId; this.JobType = jobType; this.Result = result; this.SchedulerInfo = schedulerInfo != null ? new PSSchedulerInformation(schedulerInfo) : null; this.PluginInfo = pluginInfo != null ?new PSSparkServicePluginInformation(pluginInfo) : null; this.ErrorInfo = errorInfo; this.Tags = TagsConversionHelper.CreateTagHashtable(tags); this.Id = id; this.AppId = appId; this.AppInfo = appInfo; this.State = state; this.Log = log; }