< Summary

Class:Microsoft.Azure.CognitiveServices.Language.TextAnalytics.Models.RequestStatistics
Assembly:Microsoft.Azure.CognitiveServices.Language.TextAnalytics
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.TextAnalytics\src\Generated\TextAnalytics\Models\RequestStatistics.cs
Covered lines:0
Uncovered lines:12
Coverable lines:12
Total lines:80
Line coverage:0% (0 of 12)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_DocumentsCount()-0%100%
get_ValidDocumentsCount()-0%100%
get_ErroneousDocumentsCount()-0%100%
get_TransactionsCount()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.TextAnalytics\src\Generated\TextAnalytics\Models\RequestStatistics.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.TextAnalytics.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    public partial class RequestStatistics
 17    {
 18        /// <summary>
 19        /// Initializes a new instance of the RequestStatistics class.
 20        /// </summary>
 021        public RequestStatistics()
 22        {
 23            CustomInit();
 024        }
 25
 26        /// <summary>
 27        /// Initializes a new instance of the RequestStatistics class.
 28        /// </summary>
 29        /// <param name="documentsCount">Number of documents submitted in the
 30        /// request.</param>
 31        /// <param name="validDocumentsCount">Number of valid documents. This
 32        /// excludes empty, over-size limit or non-supported languages
 33        /// documents.</param>
 34        /// <param name="erroneousDocumentsCount">Number of invalid documents.
 35        /// This includes empty, over-size limit or non-supported languages
 36        /// documents.</param>
 37        /// <param name="transactionsCount">Number of transactions for the
 38        /// request.</param>
 039        public RequestStatistics(int? documentsCount = default(int?), int? validDocumentsCount = default(int?), int? err
 40        {
 041            DocumentsCount = documentsCount;
 042            ValidDocumentsCount = validDocumentsCount;
 043            ErroneousDocumentsCount = erroneousDocumentsCount;
 044            TransactionsCount = transactionsCount;
 45            CustomInit();
 046        }
 47
 48        /// <summary>
 49        /// An initialization method that performs custom operations like setting defaults
 50        /// </summary>
 51        partial void CustomInit();
 52
 53        /// <summary>
 54        /// Gets or sets number of documents submitted in the request.
 55        /// </summary>
 56        [JsonProperty(PropertyName = "documentsCount")]
 057        public int? DocumentsCount { get; set; }
 58
 59        /// <summary>
 60        /// Gets or sets number of valid documents. This excludes empty,
 61        /// over-size limit or non-supported languages documents.
 62        /// </summary>
 63        [JsonProperty(PropertyName = "validDocumentsCount")]
 064        public int? ValidDocumentsCount { get; set; }
 65
 66        /// <summary>
 67        /// Gets or sets number of invalid documents. This includes empty,
 68        /// over-size limit or non-supported languages documents.
 69        /// </summary>
 70        [JsonProperty(PropertyName = "erroneousDocumentsCount")]
 071        public int? ErroneousDocumentsCount { get; set; }
 72
 73        /// <summary>
 74        /// Gets or sets number of transactions for the request.
 75        /// </summary>
 76        [JsonProperty(PropertyName = "transactionsCount")]
 077        public long? TransactionsCount { get; set; }
 78
 79    }
 80}