internal JobScheduleStatistics(Models.JobScheduleStatistics protocolObject)
 {
     this.FailedTaskCount    = protocolObject.NumFailedTasks;
     this.KernelCpuTime      = protocolObject.KernelCPUTime;
     this.LastUpdateTime     = protocolObject.LastUpdateTime;
     this.ReadIOGiB          = protocolObject.ReadIOGiB;
     this.ReadIOps           = protocolObject.ReadIOps;
     this.StartTime          = protocolObject.StartTime;
     this.SucceededTaskCount = protocolObject.NumSucceededTasks;
     this.TaskRetryCount     = protocolObject.NumTaskRetries;
     this.Url           = protocolObject.Url;
     this.UserCpuTime   = protocolObject.UserCPUTime;
     this.WaitTime      = protocolObject.WaitTime;
     this.WallClockTime = protocolObject.WallClockTime;
     this.WriteIOGiB    = protocolObject.WriteIOGiB;
     this.WriteIOps     = protocolObject.WriteIOps;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the CloudJobSchedule class.
 /// </summary>
 /// <param name="id">A string that uniquely identifies the schedule
 /// within the account.</param>
 /// <param name="displayName">The display name for the
 /// schedule.</param>
 /// <param name="url">The URL of the job schedule.</param>
 /// <param name="eTag">The ETag of the job schedule.</param>
 /// <param name="lastModified">The last modified time of the job
 /// schedule.</param>
 /// <param name="creationTime">The creation time of the job
 /// schedule.</param>
 /// <param name="state">The current state of the job schedule.</param>
 /// <param name="stateTransitionTime">The time at which the job
 /// schedule entered the current state.</param>
 /// <param name="previousState">The previous state of the job
 /// schedule.</param>
 /// <param name="previousStateTransitionTime">The time at which the
 /// job schedule entered its previous state.</param>
 /// <param name="schedule">The schedule according to which jobs will
 /// be created.</param>
 /// <param name="jobSpecification">The details of the jobs to be
 /// created on this schedule.</param>
 /// <param name="executionInfo">Information about jobs that have been
 /// and will be run under this schedule.</param>
 /// <param name="metadata">A list of name-value pairs associated with
 /// the schedule as metadata.</param>
 /// <param name="stats">The lifetime resource usage statistics for the
 /// job schedule.</param>
 public CloudJobSchedule(string id = default(string), string displayName = default(string), string url = default(string), string eTag = default(string), System.DateTime?lastModified = default(System.DateTime?), System.DateTime?creationTime = default(System.DateTime?), JobScheduleState?state = default(JobScheduleState?), System.DateTime?stateTransitionTime = default(System.DateTime?), JobScheduleState?previousState = default(JobScheduleState?), System.DateTime?previousStateTransitionTime = default(System.DateTime?), Schedule schedule = default(Schedule), JobSpecification jobSpecification = default(JobSpecification), JobScheduleExecutionInformation executionInfo = default(JobScheduleExecutionInformation), System.Collections.Generic.IList <MetadataItem> metadata = default(System.Collections.Generic.IList <MetadataItem>), JobScheduleStatistics stats = default(JobScheduleStatistics))
 {
     Id                          = id;
     DisplayName                 = displayName;
     Url                         = url;
     ETag                        = eTag;
     LastModified                = lastModified;
     CreationTime                = creationTime;
     State                       = state;
     StateTransitionTime         = stateTransitionTime;
     PreviousState               = previousState;
     PreviousStateTransitionTime = previousStateTransitionTime;
     Schedule                    = schedule;
     JobSpecification            = jobSpecification;
     ExecutionInfo               = executionInfo;
     Metadata                    = metadata;
     Stats                       = stats;
 }