| | 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> Response from a get service statistics request. If successful, it includes service level counters and |
| | 13 | | public partial class SearchServiceStatistics |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of SearchServiceStatistics. </summary> |
| | 16 | | /// <param name="counters"> Service level resource counters. </param> |
| | 17 | | /// <param name="limits"> Service level general limits. </param> |
| | 18 | | /// <exception cref="ArgumentNullException"> <paramref name="counters"/> or <paramref name="limits"/> is null. < |
| 6 | 19 | | internal SearchServiceStatistics(SearchServiceCounters counters, SearchServiceLimits limits) |
| | 20 | | { |
| 6 | 21 | | if (counters == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(counters)); |
| | 24 | | } |
| 6 | 25 | | if (limits == null) |
| | 26 | | { |
| 0 | 27 | | throw new ArgumentNullException(nameof(limits)); |
| | 28 | | } |
| | 29 | |
|
| 6 | 30 | | Counters = counters; |
| 6 | 31 | | Limits = limits; |
| 6 | 32 | | } |
| | 33 | |
|
| | 34 | | /// <summary> Service level resource counters. </summary> |
| 26 | 35 | | public SearchServiceCounters Counters { get; } |
| | 36 | | /// <summary> Service level general limits. </summary> |
| 2 | 37 | | public SearchServiceLimits Limits { get; } |
| | 38 | | } |
| | 39 | | } |