public PSSchedulerInformation(SchedulerInformation schedulerInfo) { this.SubmittedAt = schedulerInfo?.SubmittedAt; this.ScheduledAt = schedulerInfo?.ScheduledAt; this.EndedAt = schedulerInfo?.EndedAt; this.CancellationRequestedAt = schedulerInfo?.CancellationRequestedAt; this.CurrentState = schedulerInfo?.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; }