-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
JobScheduleStatistics.cs
211 lines (192 loc) · 9.46 KB
/
JobScheduleStatistics.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Microsoft.Azure.Batch.Protocol.Models
{
using Newtonsoft.Json;
using System.Linq;
/// <summary>
/// Resource usage statistics for a Job Schedule.
/// </summary>
public partial class JobScheduleStatistics
{
/// <summary>
/// Initializes a new instance of the JobScheduleStatistics class.
/// </summary>
public JobScheduleStatistics()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the JobScheduleStatistics class.
/// </summary>
/// <param name="url">The URL of the statistics.</param>
/// <param name="startTime">The start time of the time range covered by
/// the statistics.</param>
/// <param name="lastUpdateTime">The time at which the statistics were
/// last updated. All statistics are limited to the range between
/// startTime and lastUpdateTime.</param>
/// <param name="userCPUTime">The total user mode CPU time (summed
/// across all cores and all Compute Nodes) consumed by all Tasks in
/// all Jobs created under the schedule.</param>
/// <param name="kernelCPUTime">The total kernel mode CPU time (summed
/// across all cores and all Compute Nodes) consumed by all Tasks in
/// all Jobs created under the schedule.</param>
/// <param name="wallClockTime">The total wall clock time of all the
/// Tasks in all the Jobs created under the schedule.</param>
/// <param name="readIOps">The total number of disk read operations
/// made by all Tasks in all Jobs created under the schedule.</param>
/// <param name="writeIOps">The total number of disk write operations
/// made by all Tasks in all Jobs created under the schedule.</param>
/// <param name="readIOGiB">The total gibibytes read from disk by all
/// Tasks in all Jobs created under the schedule.</param>
/// <param name="writeIOGiB">The total gibibytes written to disk by all
/// Tasks in all Jobs created under the schedule.</param>
/// <param name="numSucceededTasks">The total number of Tasks
/// successfully completed during the given time range in Jobs created
/// under the schedule. A Task completes successfully if it returns
/// exit code 0.</param>
/// <param name="numFailedTasks">The total number of Tasks that failed
/// during the given time range in Jobs created under the schedule. A
/// Task fails if it exhausts its maximum retry count without returning
/// exit code 0.</param>
/// <param name="numTaskRetries">The total number of retries during the
/// given time range on all Tasks in all Jobs created under the
/// schedule.</param>
/// <param name="waitTime">The total wait time of all Tasks in all Jobs
/// created under the schedule. The wait time for a Task is defined as
/// the elapsed time between the creation of the Task and the start of
/// Task execution. (If the Task is retried due to failures, the wait
/// time is the time to the most recent Task execution.)</param>
public JobScheduleStatistics(string url, System.DateTime startTime, System.DateTime lastUpdateTime, System.TimeSpan userCPUTime, System.TimeSpan kernelCPUTime, System.TimeSpan wallClockTime, long readIOps, long writeIOps, double readIOGiB, double writeIOGiB, long numSucceededTasks, long numFailedTasks, long numTaskRetries, System.TimeSpan waitTime)
{
Url = url;
StartTime = startTime;
LastUpdateTime = lastUpdateTime;
UserCPUTime = userCPUTime;
KernelCPUTime = kernelCPUTime;
WallClockTime = wallClockTime;
ReadIOps = readIOps;
WriteIOps = writeIOps;
ReadIOGiB = readIOGiB;
WriteIOGiB = writeIOGiB;
NumSucceededTasks = numSucceededTasks;
NumFailedTasks = numFailedTasks;
NumTaskRetries = numTaskRetries;
WaitTime = waitTime;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets the URL of the statistics.
/// </summary>
[JsonProperty(PropertyName = "url")]
public string Url { get; set; }
/// <summary>
/// Gets or sets the start time of the time range covered by the
/// statistics.
/// </summary>
[JsonProperty(PropertyName = "startTime")]
public System.DateTime StartTime { get; set; }
/// <summary>
/// Gets or sets the time at which the statistics were last updated.
/// All statistics are limited to the range between startTime and
/// lastUpdateTime.
/// </summary>
[JsonProperty(PropertyName = "lastUpdateTime")]
public System.DateTime LastUpdateTime { get; set; }
/// <summary>
/// Gets or sets the total user mode CPU time (summed across all cores
/// and all Compute Nodes) consumed by all Tasks in all Jobs created
/// under the schedule.
/// </summary>
[JsonProperty(PropertyName = "userCPUTime")]
public System.TimeSpan UserCPUTime { get; set; }
/// <summary>
/// Gets or sets the total kernel mode CPU time (summed across all
/// cores and all Compute Nodes) consumed by all Tasks in all Jobs
/// created under the schedule.
/// </summary>
[JsonProperty(PropertyName = "kernelCPUTime")]
public System.TimeSpan KernelCPUTime { get; set; }
/// <summary>
/// Gets or sets the total wall clock time of all the Tasks in all the
/// Jobs created under the schedule.
/// </summary>
/// <remarks>
/// The wall clock time is the elapsed time from when the Task started
/// running on a Compute Node to when it finished (or to the last time
/// the statistics were updated, if the Task had not finished by then).
/// If a Task was retried, this includes the wall clock time of all the
/// Task retries.
/// </remarks>
[JsonProperty(PropertyName = "wallClockTime")]
public System.TimeSpan WallClockTime { get; set; }
/// <summary>
/// Gets or sets the total number of disk read operations made by all
/// Tasks in all Jobs created under the schedule.
/// </summary>
[JsonProperty(PropertyName = "readIOps")]
public long ReadIOps { get; set; }
/// <summary>
/// Gets or sets the total number of disk write operations made by all
/// Tasks in all Jobs created under the schedule.
/// </summary>
[JsonProperty(PropertyName = "writeIOps")]
public long WriteIOps { get; set; }
/// <summary>
/// Gets or sets the total gibibytes read from disk by all Tasks in all
/// Jobs created under the schedule.
/// </summary>
[JsonProperty(PropertyName = "readIOGiB")]
public double ReadIOGiB { get; set; }
/// <summary>
/// Gets or sets the total gibibytes written to disk by all Tasks in
/// all Jobs created under the schedule.
/// </summary>
[JsonProperty(PropertyName = "writeIOGiB")]
public double WriteIOGiB { get; set; }
/// <summary>
/// Gets or sets the total number of Tasks successfully completed
/// during the given time range in Jobs created under the schedule. A
/// Task completes successfully if it returns exit code 0.
/// </summary>
[JsonProperty(PropertyName = "numSucceededTasks")]
public long NumSucceededTasks { get; set; }
/// <summary>
/// Gets or sets the total number of Tasks that failed during the given
/// time range in Jobs created under the schedule. A Task fails if it
/// exhausts its maximum retry count without returning exit code 0.
/// </summary>
[JsonProperty(PropertyName = "numFailedTasks")]
public long NumFailedTasks { get; set; }
/// <summary>
/// Gets or sets the total number of retries during the given time
/// range on all Tasks in all Jobs created under the schedule.
/// </summary>
[JsonProperty(PropertyName = "numTaskRetries")]
public long NumTaskRetries { get; set; }
/// <summary>
/// Gets or sets the total wait time of all Tasks in all Jobs created
/// under the schedule. The wait time for a Task is defined as the
/// elapsed time between the creation of the Task and the start of Task
/// execution. (If the Task is retried due to failures, the wait time
/// is the time to the most recent Task execution.)
/// </summary>
/// <remarks>
/// This value is only reported in the Account lifetime statistics; it
/// is not included in the Job statistics.
/// </remarks>
[JsonProperty(PropertyName = "waitTime")]
public System.TimeSpan WaitTime { get; set; }
}
}