< Summary

Class:Microsoft.Azure.Batch.Protocol.Models.TaskCounts
Assembly:Microsoft.Azure.Batch
File(s):C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\GeneratedProtocol\Models\TaskCounts.cs
Covered lines:7
Uncovered lines:7
Coverable lines:14
Total lines:92
Line coverage:50% (7 of 14)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Active()-100%100%
get_Running()-100%100%
get_Completed()-100%100%
get_Succeeded()-100%100%
get_Failed()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\GeneratedProtocol\Models\TaskCounts.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.Batch.Protocol.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// The Task counts for a Job.
 18    /// </summary>
 19    public partial class TaskCounts
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the TaskCounts class.
 23        /// </summary>
 124        public TaskCounts()
 25        {
 26            CustomInit();
 127        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the TaskCounts class.
 31        /// </summary>
 32        /// <param name="active">The number of Tasks in the active
 33        /// state.</param>
 34        /// <param name="running">The number of Tasks in the running or
 35        /// preparing state.</param>
 36        /// <param name="completed">The number of Tasks in the completed
 37        /// state.</param>
 38        /// <param name="succeeded">The number of Tasks which succeeded. A Task
 39        /// succeeds if its result (found in the executionInfo property) is
 40        /// 'success'.</param>
 41        /// <param name="failed">The number of Tasks which failed. A Task fails
 42        /// if its result (found in the executionInfo property) is
 43        /// 'failure'.</param>
 044        public TaskCounts(int active, int running, int completed, int succeeded, int failed)
 45        {
 046            Active = active;
 047            Running = running;
 048            Completed = completed;
 049            Succeeded = succeeded;
 050            Failed = failed;
 51            CustomInit();
 052        }
 53
 54        /// <summary>
 55        /// An initialization method that performs custom operations like setting defaults
 56        /// </summary>
 57        partial void CustomInit();
 58
 59        /// <summary>
 60        /// Gets or sets the number of Tasks in the active state.
 61        /// </summary>
 62        [JsonProperty(PropertyName = "active")]
 263        public int Active { get; set; }
 64
 65        /// <summary>
 66        /// Gets or sets the number of Tasks in the running or preparing state.
 67        /// </summary>
 68        [JsonProperty(PropertyName = "running")]
 269        public int Running { get; set; }
 70
 71        /// <summary>
 72        /// Gets or sets the number of Tasks in the completed state.
 73        /// </summary>
 74        [JsonProperty(PropertyName = "completed")]
 275        public int Completed { get; set; }
 76
 77        /// <summary>
 78        /// Gets or sets the number of Tasks which succeeded. A Task succeeds
 79        /// if its result (found in the executionInfo property) is 'success'.
 80        /// </summary>
 81        [JsonProperty(PropertyName = "succeeded")]
 282        public int Succeeded { get; set; }
 83
 84        /// <summary>
 85        /// Gets or sets the number of Tasks which failed. A Task fails if its
 86        /// result (found in the executionInfo property) is 'failure'.
 87        /// </summary>
 88        [JsonProperty(PropertyName = "failed")]
 289        public int Failed { get; set; }
 90
 91    }
 92}