| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using Azure.Core; |
| | 5 | |
|
| | 6 | | namespace Azure.AI.TextAnalytics |
| | 7 | | { |
| | 8 | | /// <summary> |
| | 9 | | /// A collection of statistics describing the batch of documents submitted |
| | 10 | | /// to the service for analysis in a given request. This information is |
| | 11 | | /// provided on the result collection returned by an operation when the |
| | 12 | | /// caller passes in a <see cref="TextAnalyticsRequestOptions"/> with |
| | 13 | | /// IncludeStatistics set to true. |
| | 14 | | /// </summary> |
| | 15 | | [CodeGenModel("RequestStatistics")] |
| | 16 | | public partial class TextDocumentBatchStatistics |
| | 17 | | { |
| 48 | 18 | | internal TextDocumentBatchStatistics(int documentCount, int validDocumentCount, int invalidDocumentCount, long t |
| | 19 | | { |
| 48 | 20 | | DocumentCount = documentCount; |
| 48 | 21 | | ValidDocumentCount = validDocumentCount; |
| 48 | 22 | | InvalidDocumentCount = invalidDocumentCount; |
| 48 | 23 | | TransactionCount = transactionCount; |
| 48 | 24 | | } |
| | 25 | |
|
| | 26 | | /// <summary> |
| | 27 | | /// Gets the number of documents submitted in the request batch. |
| | 28 | | /// </summary> |
| | 29 | | [CodeGenMember("DocumentsCount")] |
| 36 | 30 | | public int DocumentCount { get; } |
| | 31 | |
|
| | 32 | | /// <summary> |
| | 33 | | /// Gets the number of valid documents submitted in the request batch. |
| | 34 | | /// This number excludes empty documents, documents whose size exceeds |
| | 35 | | /// the service's size limit, and documents in unsupported languages. |
| | 36 | | /// </summary> |
| | 37 | | [CodeGenMember("ValidDocumentsCount")] |
| 36 | 38 | | public int ValidDocumentCount { get; } |
| | 39 | |
|
| | 40 | | /// <summary> |
| | 41 | | /// Gets the number of invalid documents submitted in the request batch. |
| | 42 | | /// This number includes empty documents, documents whose size exceeds |
| | 43 | | /// the service's size limit, and documents in unsupported languages. |
| | 44 | | /// </summary> |
| | 45 | | [CodeGenMember("ErroneousDocumentsCount")] |
| 36 | 46 | | public int InvalidDocumentCount { get; } |
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// Gets the number of transactions required to complete the operation |
| | 50 | | /// on all documents submitted in the request batch. |
| | 51 | | /// </summary> |
| | 52 | | [CodeGenMember("TransactionsCount")] |
| 36 | 53 | | public long TransactionCount { get; } |
| | 54 | | } |
| | 55 | | } |