class Azure::CognitiveServices::Face::V1_0::Models::TrainingStatus

Training status object.

Attributes

created[RW]

@return [DateTime] A combined UTC date and time string that describes the created time of the person group, large person group or large face list.

last_action[RW]

@return [DateTime] A combined UTC date and time string that describes the last modify time of the person group, large person group or large face list, could be null value when the group is not successfully trained.

last_successful_training[RW]

@return [DateTime] A combined UTC date and time string that describes the last successful training time of the person group, large person group or large face list.

message[RW]

@return [String] Show failure message when training failed (omitted when training succeed).

status[RW]

@return [TrainingStatusType] Training status: notstarted, running, succeeded, failed. If the training process is waiting to perform, the status is notstarted. If the training is ongoing, the status is running. Status succeed means this person group or large person group is ready for Face - Identify, or this large face list is ready for Face

  • Find Similar. Status failed is often caused by no person or no

persisted face exist in the person group or large person group, or no persisted face exist in the large face list. Possible values include: 'nonstarted', 'running', 'succeeded', 'failed'

Private Class Methods

mapper() click to toggle source

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

# File lib/1.0/generated/azure_cognitiveservices_face/models/training_status.rb, line 51
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'TrainingStatus',
    type: {
      name: 'Composite',
      class_name: 'TrainingStatus',
      model_properties: {
        status: {
          client_side_validation: true,
          required: true,
          serialized_name: 'status',
          type: {
            name: 'Enum',
            module: 'TrainingStatusType'
          }
        },
        created: {
          client_side_validation: true,
          required: true,
          serialized_name: 'createdDateTime',
          type: {
            name: 'DateTime'
          }
        },
        last_action: {
          client_side_validation: true,
          required: false,
          serialized_name: 'lastActionDateTime',
          type: {
            name: 'DateTime'
          }
        },
        last_successful_training: {
          client_side_validation: true,
          required: false,
          serialized_name: 'lastSuccessfulTrainingDateTime',
          type: {
            name: 'DateTime'
          }
        },
        message: {
          client_side_validation: true,
          required: false,
          serialized_name: 'message',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end