/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the sagemaker-2017-07-24.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.SageMaker.Model
{
///
/// An array element of SecondaryStatusTransitions
for DescribeTrainingJob.
/// It provides additional details about a status that the training job has transitioned
/// through. A training job can be in one of several states, for example, starting, downloading,
/// training, or uploading. Within each state, there are a number of intermediate states.
/// For example, within the starting state, SageMaker could be starting the training job
/// or launching the ML instances. These transitional states are referred to as the job's
/// secondary status.
///
public partial class SecondaryStatusTransition
{
private DateTime? _endTime;
private DateTime? _startTime;
private SecondaryStatus _status;
private string _statusMessage;
///
/// Gets and sets the property EndTime.
///
/// A timestamp that shows when the training job transitioned out of this secondary status
/// state into another secondary status state or when the training job has ended.
///
///
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime.HasValue;
}
///
/// Gets and sets the property StartTime.
///
/// A timestamp that shows when the training job transitioned to the current secondary
/// status state.
///
///
[AWSProperty(Required=true)]
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
///
/// Gets and sets the property Status.
///
/// Contains a secondary status information from a training job.
///
///
///
/// Status might be one of the following secondary statuses:
///
/// - InProgress
-
-
///
///
Starting
- Starting the training job.
///
/// -
///
///
Downloading
- An optional stage for algorithms that support File
/// training input mode. It indicates that data is being downloaded to the ML storage
/// volumes.
///
/// -
///
///
Training
- Training is in progress.
///
/// -
///
///
Uploading
- Training is complete and the model artifacts are being uploaded
/// to the S3 location.
///
///
- Completed
-
-
///
///
Completed
- The training job has completed.
///
///
- Failed
-
-
///
///
Failed
- The training job has failed. The reason for the failure is
/// returned in the FailureReason
field of DescribeTrainingJobResponse
.
///
///
- Stopped
-
-
///
///
MaxRuntimeExceeded
- The job stopped because it exceeded the maximum
/// allowed runtime.
///
/// -
///
///
Stopped
- The training job has stopped.
///
///
- Stopping
-
-
///
///
Stopping
- Stopping the training job.
///
///
///
/// We no longer support the following secondary statuses:
///
/// -
///
///
LaunchingMLInstances
///
/// -
///
///
PreparingTrainingStack
///
/// -
///
///
DownloadingTrainingImage
///
///
///
[AWSProperty(Required=true)]
public SecondaryStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property StatusMessage.
///
/// A detailed description of the progress within a secondary status.
///
///
///
/// SageMaker provides secondary statuses and status messages that apply to each of them:
///
/// - Starting
-
-
///
/// Starting the training job.
///
///
-
///
/// Launching requested ML instances.
///
///
-
///
/// Insufficient capacity error from EC2 while launching instances, retrying!
///
///
-
///
/// Launched instance was unhealthy, replacing it!
///
///
-
///
/// Preparing the instances for training.
///
///
- Training
-
-
///
/// Downloading the training image.
///
///
-
///
/// Training image download completed. Training in progress.
///
///
///
/// Status messages are subject to change. Therefore, we recommend not including them
/// in code that programmatically initiates actions. For examples, don't use status messages
/// in if statements.
///
///
///
/// To have an overview of your training job's progress, view TrainingJobStatus
/// and SecondaryStatus
in DescribeTrainingJob,
/// and StatusMessage
together. For example, at the start of a training job,
/// you might see the following:
///
/// -
///
///
TrainingJobStatus
- InProgress
///
/// -
///
///
SecondaryStatus
- Training
///
/// -
///
///
StatusMessage
- Downloading the training image
///
///
///
public string StatusMessage
{
get { return this._statusMessage; }
set { this._statusMessage = value; }
}
// Check to see if StatusMessage property is set
internal bool IsSetStatusMessage()
{
return this._statusMessage != null;
}
}
}