SearchServiceStatistics.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
package com.azure.search.documents.indexes.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Response from a get service statistics request. If successful, it includes service level counters and limits. */
@Fluent
public final class SearchServiceStatistics {
/*
* Service level resource counters.
*/
@JsonProperty(value = "counters", required = true)
private SearchServiceCounters counters;
/*
* Service level general limits.
*/
@JsonProperty(value = "limits", required = true)
private SearchServiceLimits limits;
/**
* Creates an instance of SearchServiceStatistics class.
*
* @param counters the counters value to set.
* @param limits the limits value to set.
*/
@JsonCreator
public SearchServiceStatistics(
@JsonProperty(value = "counters", required = true) SearchServiceCounters counters,
@JsonProperty(value = "limits", required = true) SearchServiceLimits limits) {
this.counters = counters;
this.limits = limits;
}
/**
* Get the counters property: Service level resource counters.
*
* @return the counters value.
*/
public SearchServiceCounters getCounters() {
return this.counters;
}
/**
* Get the limits property: Service level general limits.
*
* @return the limits value.
*/
public SearchServiceLimits getLimits() {
return this.limits;
}
}