< Summary

Class:Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models.ModelTrainingDetails
Assembly:Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.LUIS.Authoring\src\Generated\Models\ModelTrainingDetails.cs
Covered lines:3
Uncovered lines:11
Coverable lines:14
Total lines:87
Line coverage:21.4% (3 of 14)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_StatusId()-0%100%
get_Status()-100%100%
get_ExampleCount()-0%100%
get_TrainingDateTime()-0%100%
get_FailureReason()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.LUIS.Authoring\src\Generated\Models\ModelTrainingDetails.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// Model Training Details.
 18    /// </summary>
 19    public partial class ModelTrainingDetails
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the ModelTrainingDetails class.
 23        /// </summary>
 2124        public ModelTrainingDetails()
 25        {
 26            CustomInit();
 2127        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the ModelTrainingDetails class.
 31        /// </summary>
 32        /// <param name="statusId">The train request status ID.</param>
 33        /// <param name="status">Possible values include: 'Queued',
 34        /// 'InProgress', 'UpToDate', 'Fail', 'Success'</param>
 35        /// <param name="exampleCount">The count of examples used to train the
 36        /// model.</param>
 37        /// <param name="trainingDateTime">When the model was trained.</param>
 38        /// <param name="failureReason">Reason for the training
 39        /// failure.</param>
 040        public ModelTrainingDetails(int? statusId = default(int?), string status = default(string), int? exampleCount = 
 41        {
 042            StatusId = statusId;
 043            Status = status;
 044            ExampleCount = exampleCount;
 045            TrainingDateTime = trainingDateTime;
 046            FailureReason = failureReason;
 47            CustomInit();
 048        }
 49
 50        /// <summary>
 51        /// An initialization method that performs custom operations like setting defaults
 52        /// </summary>
 53        partial void CustomInit();
 54
 55        /// <summary>
 56        /// Gets or sets the train request status ID.
 57        /// </summary>
 58        [JsonProperty(PropertyName = "statusId")]
 059        public int? StatusId { get; set; }
 60
 61        /// <summary>
 62        /// Gets or sets possible values include: 'Queued', 'InProgress',
 63        /// 'UpToDate', 'Fail', 'Success'
 64        /// </summary>
 65        [JsonProperty(PropertyName = "status")]
 3566        public string Status { get; set; }
 67
 68        /// <summary>
 69        /// Gets or sets the count of examples used to train the model.
 70        /// </summary>
 71        [JsonProperty(PropertyName = "exampleCount")]
 072        public int? ExampleCount { get; set; }
 73
 74        /// <summary>
 75        /// Gets or sets when the model was trained.
 76        /// </summary>
 77        [JsonProperty(PropertyName = "trainingDateTime")]
 078        public System.DateTime? TrainingDateTime { get; set; }
 79
 80        /// <summary>
 81        /// Gets or sets reason for the training failure.
 82        /// </summary>
 83        [JsonProperty(PropertyName = "failureReason")]
 084        public string FailureReason { get; set; }
 85
 86    }
 87}