SearchServiceStatistics.java

  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Licensed under the MIT License.
  3. //
  4. // Code generated by Microsoft (R) AutoRest Code Generator.
  5. // Changes may cause incorrect behavior and will be lost if the code is
  6. // regenerated.

  7. package com.azure.search.documents.indexes.models;

  8. import com.azure.core.annotation.Fluent;
  9. import com.fasterxml.jackson.annotation.JsonCreator;
  10. import com.fasterxml.jackson.annotation.JsonProperty;

  11. /** Response from a get service statistics request. If successful, it includes service level counters and limits. */
  12. @Fluent
  13. public final class SearchServiceStatistics {
  14.     /*
  15.      * Service level resource counters.
  16.      */
  17.     @JsonProperty(value = "counters", required = true)
  18.     private SearchServiceCounters counters;

  19.     /*
  20.      * Service level general limits.
  21.      */
  22.     @JsonProperty(value = "limits", required = true)
  23.     private SearchServiceLimits limits;

  24.     /**
  25.      * Creates an instance of SearchServiceStatistics class.
  26.      *
  27.      * @param counters the counters value to set.
  28.      * @param limits the limits value to set.
  29.      */
  30.     @JsonCreator
  31.     public SearchServiceStatistics(
  32.             @JsonProperty(value = "counters", required = true) SearchServiceCounters counters,
  33.             @JsonProperty(value = "limits", required = true) SearchServiceLimits limits) {
  34.         this.counters = counters;
  35.         this.limits = limits;
  36.     }

  37.     /**
  38.      * Get the counters property: Service level resource counters.
  39.      *
  40.      * @return the counters value.
  41.      */
  42.     public SearchServiceCounters getCounters() {
  43.         return this.counters;
  44.     }

  45.     /**
  46.      * Get the limits property: Service level general limits.
  47.      *
  48.      * @return the limits value.
  49.      */
  50.     public SearchServiceLimits getLimits() {
  51.         return this.limits;
  52.     }
  53. }