Class: Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::JobPropertiesExecutionInfo

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/job_properties_execution_info.rb

Overview

Contains information about the execution of a job in the Azure Batch service.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#end_timeDateTime

is only returned if the job is in completed state.

Returns:

  • (DateTime)

    The time at which the job completed. This property



25
26
27
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/job_properties_execution_info.rb', line 25

def end_time
  @end_time
end

#errorsArray<BatchAIError>

encountered by the service during job execution.

Returns:

  • (Array<BatchAIError>)

    Contains details of various errors



33
34
35
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/job_properties_execution_info.rb', line 33

def errors
  @errors
end

#exit_codeInteger

returned if the job is in completed state.

Returns:

  • (Integer)

    The exit code of the job. This property is only



29
30
31
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/job_properties_execution_info.rb', line 29

def exit_code
  @exit_code
end

#start_timeDateTime

corresponds to the running state. If the job has been restarted or retried, this is the most recent time at which the job started running. This property is present only for job that are in the running or completed state.

Returns:

  • (DateTime)

    The time at which the job started running. ‘Running’



21
22
23
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/job_properties_execution_info.rb', line 21

def start_time
  @start_time
end

Class Method Details

.mapperObject

Mapper for JobPropertiesExecutionInfo class as Ruby Hash. This will be used for serialization/deserialization.



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
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/job_properties_execution_info.rb', line 40

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'JobProperties_executionInfo',
    type: {
      name: 'Composite',
      class_name: 'JobPropertiesExecutionInfo',
      model_properties: {
        start_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'startTime',
          type: {
            name: 'DateTime'
          }
        },
        end_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'endTime',
          type: {
            name: 'DateTime'
          }
        },
        exit_code: {
          client_side_validation: true,
          required: false,
          serialized_name: 'exitCode',
          type: {
            name: 'Number'
          }
        },
        errors: {
          client_side_validation: true,
          required: false,
          serialized_name: 'errors',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'BatchAIErrorElementType',
                type: {
                  name: 'Composite',
                  class_name: 'BatchAIError'
                }
            }
          }
        }
      }
    }
  }
end