Class: Azure::ARM::Scheduler::Models::JobStatus

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_scheduler/models/job_status.rb

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#execution_countInteger

Returns Gets the number of times this job has executed.

Returns:

  • (Integer)

    Gets the number of times this job has executed.



17
18
19
# File 'lib/generated/azure_mgmt_scheduler/models/job_status.rb', line 17

def execution_count
  @execution_count
end

#failure_countInteger

Returns Gets the number of times this job has failed.

Returns:

  • (Integer)

    Gets the number of times this job has failed.



20
21
22
# File 'lib/generated/azure_mgmt_scheduler/models/job_status.rb', line 20

def failure_count
  @failure_count
end

#faulted_countInteger

that were retried and failed as many times as the retry policy states).

Returns:

  • (Integer)

    Gets the number of faulted occurrences (occurrences



24
25
26
# File 'lib/generated/azure_mgmt_scheduler/models/job_status.rb', line 24

def faulted_count
  @faulted_count
end

#last_execution_timeDateTime

ISO-8601 format. Could be empty if job has not run yet.

Returns:

  • (DateTime)

    Gets the time the last occurrence executed in



28
29
30
# File 'lib/generated/azure_mgmt_scheduler/models/job_status.rb', line 28

def last_execution_time
  @last_execution_time
end

#next_execution_timeDateTime

format. Could be empty if the job is completed.

Returns:

  • (DateTime)

    Gets the time of the next occurrence in ISO-8601



32
33
34
# File 'lib/generated/azure_mgmt_scheduler/models/job_status.rb', line 32

def next_execution_time
  @next_execution_time
end

Class Method Details

.mapperObject

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



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
# File 'lib/generated/azure_mgmt_scheduler/models/job_status.rb', line 39

def self.mapper()
  {
    required: false,
    serialized_name: 'JobStatus',
    type: {
      name: 'Composite',
      class_name: 'JobStatus',
      model_properties: {
        execution_count: {
          required: false,
          read_only: true,
          serialized_name: 'executionCount',
          type: {
            name: 'Number'
          }
        },
        failure_count: {
          required: false,
          read_only: true,
          serialized_name: 'failureCount',
          type: {
            name: 'Number'
          }
        },
        faulted_count: {
          required: false,
          read_only: true,
          serialized_name: 'faultedCount',
          type: {
            name: 'Number'
          }
        },
        last_execution_time: {
          required: false,
          read_only: true,
          serialized_name: 'lastExecutionTime',
          type: {
            name: 'DateTime'
          }
        },
        next_execution_time: {
          required: false,
          read_only: true,
          serialized_name: 'nextExecutionTime',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end