JobScheduleStatistics Class
Resource usage statistics for a Job Schedule.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
msrest.serialization.ModelJobScheduleStatistics
Constructor
JobScheduleStatistics(*, url: str, start_time, last_update_time, user_cpu_time, kernel_cpu_time, wall_clock_time, read_iops: int, write_iops: int, read_io_gi_b: float, write_io_gi_b: float, num_succeeded_tasks: int, num_failed_tasks: int, num_task_retries: int, wait_time, **kwargs)
Parameters
Name | Description |
---|---|
url
Required
|
Required. |
start_time
Required
|
Required. |
last_update_time
Required
|
Required. |
user_cpu_time
Required
|
<xref:timedelta>
Required. |
kernel_cpu_time
Required
|
<xref:timedelta>
Required. |
wall_clock_time
Required
|
<xref:timedelta>
Required. 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. |
read_iops
Required
|
<xref:long>
Required. The total number of disk read operations made by all Tasks in all Jobs created under the schedule. |
write_iops
Required
|
<xref:long>
Required. The total number of disk write operations made by all Tasks in all Jobs created under the schedule. |
read_io_gi_b
Required
|
Required. The total gibibytes read from disk by all Tasks in all Jobs created under the schedule. |
write_io_gi_b
Required
|
Required. The total gibibytes written to disk by all Tasks in all Jobs created under the schedule. |
num_succeeded_tasks
Required
|
<xref:long>
Required. 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. |
num_failed_tasks
Required
|
<xref:long>
Required. 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. |
num_task_retries
Required
|
<xref:long>
Required. The total number of retries during the given time range on all Tasks in all Jobs created under the schedule. |
wait_time
Required
|
<xref:timedelta>
Required. This value is only reported in the Account lifetime statistics; it is not included in the Job statistics. |
Keyword-Only Parameters
Name | Description |
---|---|
url
Required
|
|
start_time
Required
|
|
last_update_time
Required
|
|
user_cpu_time
Required
|
|
kernel_cpu_time
Required
|
|
wall_clock_time
Required
|
|
read_iops
Required
|
|
write_iops
Required
|
|
read_io_gi_b
Required
|
|
write_io_gi_b
Required
|
|
num_succeeded_tasks
Required
|
|
num_failed_tasks
Required
|
|
num_task_retries
Required
|
|
wait_time
Required
|
|
Methods
as_dict |
Return a dict that can be JSONify using json.dump. Advanced usage might optionally use a callback as parameter: Key is the attribute name used in Python. Attr_desc is a dict of metadata. Currently contains 'type' with the msrest type and 'key' with the RestAPI encoded key. Value is the current value in this object. The string returned will be used to serialize the key. If the return type is a list, this is considered hierarchical result dict. See the three examples in this file:
If you want XML serialization, you can pass the kwargs is_xml=True. |
deserialize |
Parse a str using the RestAPI syntax and return a model. |
enable_additional_properties_sending | |
from_dict |
Parse a dict using given key extractor return a model. By default consider key extractors (rest_key_case_insensitive_extractor, attribute_key_case_insensitive_extractor and last_rest_key_case_insensitive_extractor) |
is_xml_model | |
serialize |
Return the JSON that would be sent to azure from this model. This is an alias to as_dict(full_restapi_key_transformer, keep_readonly=False). If you want XML serialization, you can pass the kwargs is_xml=True. |
validate |
Validate this model recursively and return a list of ValidationError. |
as_dict
Return a dict that can be JSONify using json.dump.
Advanced usage might optionally use a callback as parameter:
Key is the attribute name used in Python. Attr_desc is a dict of metadata. Currently contains 'type' with the msrest type and 'key' with the RestAPI encoded key. Value is the current value in this object.
The string returned will be used to serialize the key. If the return type is a list, this is considered hierarchical result dict.
See the three examples in this file:
attribute_transformer
full_restapi_key_transformer
last_restapi_key_transformer
If you want XML serialization, you can pass the kwargs is_xml=True.
as_dict(keep_readonly=True, key_transformer=<function attribute_transformer>, **kwargs)
Parameters
Name | Description |
---|---|
key_transformer
|
<xref:function>
A key transformer function. |
keep_readonly
|
Default value: True
|
Returns
Type | Description |
---|---|
A dict JSON compatible object |
deserialize
Parse a str using the RestAPI syntax and return a model.
deserialize(data, content_type=None)
Parameters
Name | Description |
---|---|
data
Required
|
A str using RestAPI structure. JSON by default. |
content_type
|
JSON by default, set application/xml if XML. Default value: None
|
Returns
Type | Description |
---|---|
An instance of this model |
Exceptions
Type | Description |
---|---|
DeserializationError if something went wrong
|
enable_additional_properties_sending
enable_additional_properties_sending()
from_dict
Parse a dict using given key extractor return a model.
By default consider key extractors (rest_key_case_insensitive_extractor, attribute_key_case_insensitive_extractor and last_rest_key_case_insensitive_extractor)
from_dict(data, key_extractors=None, content_type=None)
Parameters
Name | Description |
---|---|
data
Required
|
A dict using RestAPI structure |
content_type
|
JSON by default, set application/xml if XML. Default value: None
|
key_extractors
|
Default value: None
|
Returns
Type | Description |
---|---|
An instance of this model |
Exceptions
Type | Description |
---|---|
DeserializationError if something went wrong
|
is_xml_model
is_xml_model()
serialize
Return the JSON that would be sent to azure from this model.
This is an alias to as_dict(full_restapi_key_transformer, keep_readonly=False).
If you want XML serialization, you can pass the kwargs is_xml=True.
serialize(keep_readonly=False, **kwargs)
Parameters
Name | Description |
---|---|
keep_readonly
|
If you want to serialize the readonly attributes Default value: False
|
Returns
Type | Description |
---|---|
A dict JSON compatible object |
validate
Validate this model recursively and return a list of ValidationError.
validate()
Returns
Type | Description |
---|---|
A list of validation error |
Azure SDK for Python