class Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecution

An execution of a job

Attributes

create_time[RW]

@return [DateTime] The time that the job execution was created.

current_attempt_start_time[RW]

@return [DateTime] Start time of the current attempt.

current_attempts[RW]

@return [Integer] Number of times the job execution has been attempted.

end_time[RW]

@return [DateTime] The time that the job execution completed.

job_execution_id[RW]

@return The unique identifier of the job execution.

job_version[RW]

@return [Integer] The job version number.

last_message[RW]

@return [String] The last status or error message.

lifecycle[RW]

@return [JobExecutionLifecycle] The detailed state of the job execution. Possible values include: 'Created', 'InProgress', 'WaitingForChildJobExecutions', 'WaitingForRetry', 'Succeeded', 'SucceededWithSkipped', 'Failed', 'TimedOut', 'Canceled', 'Skipped'

provisioning_state[RW]

@return [ProvisioningState] The ARM provisioning state of the job execution. Possible values include: 'Created', 'InProgress', 'Succeeded', 'Failed', 'Canceled'

start_time[RW]

@return [DateTime] The time that the job execution started.

step_id[RW]

@return [Integer] The job step id.

step_name[RW]

@return [String] The job step name.

target[RW]

@return [JobExecutionTarget] The target that this execution is executed on.

Private Class Methods

mapper() click to toggle source

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

# File lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_execution.rb, line 65
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'JobExecution',
    type: {
      name: 'Composite',
      class_name: 'JobExecution',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        job_version: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.jobVersion',
          type: {
            name: 'Number'
          }
        },
        step_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.stepName',
          type: {
            name: 'String'
          }
        },
        step_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.stepId',
          type: {
            name: 'Number'
          }
        },
        job_execution_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.jobExecutionId',
          type: {
            name: 'String'
          }
        },
        lifecycle: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.lifecycle',
          type: {
            name: 'String'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        create_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.createTime',
          type: {
            name: 'DateTime'
          }
        },
        start_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.startTime',
          type: {
            name: 'DateTime'
          }
        },
        end_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.endTime',
          type: {
            name: 'DateTime'
          }
        },
        current_attempts: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.currentAttempts',
          type: {
            name: 'Number'
          }
        },
        current_attempt_start_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.currentAttemptStartTime',
          type: {
            name: 'DateTime'
          }
        },
        last_message: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.lastMessage',
          type: {
            name: 'String'
          }
        },
        target: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.target',
          type: {
            name: 'Composite',
            class_name: 'JobExecutionTarget'
          }
        }
      }
    }
  }
end