| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace Azure.Search.Documents.Indexes.Models |
| | 11 | | { |
| | 12 | | /// <summary> Represents service-level resource counters and quotas. </summary> |
| | 13 | | public partial class SearchServiceCounters |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of SearchServiceCounters. </summary> |
| | 16 | | /// <param name="documentCounter"> Total number of documents across all indexes in the service. </param> |
| | 17 | | /// <param name="indexCounter"> Total number of indexes. </param> |
| | 18 | | /// <param name="indexerCounter"> Total number of indexers. </param> |
| | 19 | | /// <param name="dataSourceCounter"> Total number of data sources. </param> |
| | 20 | | /// <param name="storageSizeCounter"> Total size of used storage in bytes. </param> |
| | 21 | | /// <param name="synonymMapCounter"> Total number of synonym maps. </param> |
| | 22 | | /// <exception cref="ArgumentNullException"> <paramref name="documentCounter"/>, <paramref name="indexCounter"/> |
| 6 | 23 | | internal SearchServiceCounters(SearchResourceCounter documentCounter, SearchResourceCounter indexCounter, Search |
| | 24 | | { |
| 6 | 25 | | if (documentCounter == null) |
| | 26 | | { |
| 0 | 27 | | throw new ArgumentNullException(nameof(documentCounter)); |
| | 28 | | } |
| 6 | 29 | | if (indexCounter == null) |
| | 30 | | { |
| 0 | 31 | | throw new ArgumentNullException(nameof(indexCounter)); |
| | 32 | | } |
| 6 | 33 | | if (indexerCounter == null) |
| | 34 | | { |
| 0 | 35 | | throw new ArgumentNullException(nameof(indexerCounter)); |
| | 36 | | } |
| 6 | 37 | | if (dataSourceCounter == null) |
| | 38 | | { |
| 0 | 39 | | throw new ArgumentNullException(nameof(dataSourceCounter)); |
| | 40 | | } |
| 6 | 41 | | if (storageSizeCounter == null) |
| | 42 | | { |
| 0 | 43 | | throw new ArgumentNullException(nameof(storageSizeCounter)); |
| | 44 | | } |
| 6 | 45 | | if (synonymMapCounter == null) |
| | 46 | | { |
| 0 | 47 | | throw new ArgumentNullException(nameof(synonymMapCounter)); |
| | 48 | | } |
| | 49 | |
|
| 6 | 50 | | DocumentCounter = documentCounter; |
| 6 | 51 | | IndexCounter = indexCounter; |
| 6 | 52 | | IndexerCounter = indexerCounter; |
| 6 | 53 | | DataSourceCounter = dataSourceCounter; |
| 6 | 54 | | StorageSizeCounter = storageSizeCounter; |
| 6 | 55 | | SynonymMapCounter = synonymMapCounter; |
| 6 | 56 | | } |
| | 57 | |
|
| | 58 | | /// <summary> Total number of documents across all indexes in the service. </summary> |
| 2 | 59 | | public SearchResourceCounter DocumentCounter { get; } |
| | 60 | | /// <summary> Total number of indexes. </summary> |
| 14 | 61 | | public SearchResourceCounter IndexCounter { get; } |
| | 62 | | /// <summary> Total number of indexers. </summary> |
| 2 | 63 | | public SearchResourceCounter IndexerCounter { get; } |
| | 64 | | /// <summary> Total number of data sources. </summary> |
| 2 | 65 | | public SearchResourceCounter DataSourceCounter { get; } |
| | 66 | | /// <summary> Total size of used storage in bytes. </summary> |
| 2 | 67 | | public SearchResourceCounter StorageSizeCounter { get; } |
| | 68 | | /// <summary> Total number of synonym maps. </summary> |
| 2 | 69 | | public SearchResourceCounter SynonymMapCounter { get; } |
| | 70 | | } |
| | 71 | | } |