Class RepositoryStatsSnapshot.Builder
- All Implemented Interfaces:
CopyableBuilder<RepositoryStatsSnapshot.Builder,,RepositoryStatsSnapshot> MutableBuilder<RepositoryStatsSnapshot.Builder,,RepositoryStatsSnapshot> ObjectBuilder<RepositoryStatsSnapshot>
- Enclosing class:
RepositoryStatsSnapshot
RepositoryStatsSnapshot.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRepositoryStatsSnapshot.copy()Create a new builderCopyableBuilderthat is a copy of this one.repositoryLocation(String key, String value) The location configuration of the repository.repositoryLocation(Map<String, String> map) The location configuration of the repository.repositoryName(String value) The name of the repository.repositoryType(String value) The type of the repository.requestCounts(String key, Long value) The count of requests by operation type (when detailed mode is disabled).requestCounts(Map<String, Long> map) The count of requests by operation type (when detailed mode is disabled).requestFailuresTotal(String key, Long value) The count of failed requests by operation type (when detailed mode is enabled).requestFailuresTotal(Map<String, Long> map) The count of failed requests by operation type (when detailed mode is enabled).requestRetryCountTotal(String key, Long value) The total retry count by operation type (when detailed mode is enabled).requestRetryCountTotal(Map<String, Long> map) The total retry count by operation type (when detailed mode is enabled).requestSuccessTotal(String key, Long value) The count of successful requests by operation type (when detailed mode is enabled).requestSuccessTotal(Map<String, Long> map) The count of successful requests by operation type (when detailed mode is enabled).requestTimeInMillis(String key, Long value) The total request time in milliseconds by operation type (when detailed mode is enabled).requestTimeInMillis(Map<String, Long> map) The total request time in milliseconds by operation type (when detailed mode is enabled).Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<RepositoryStatsSnapshot.Builder,RepositoryStatsSnapshot> - Returns:
- a new builder instance.
-
repositoryLocation
The location configuration of the repository.API name:
repository_locationAdds all elements of
maptorepositoryLocation. -
repositoryLocation
The location configuration of the repository.API name:
repository_locationAdds an entry to
repositoryLocation. -
repositoryName
The name of the repository.API name:
repository_name -
repositoryType
The type of the repository.API name:
repository_type -
requestCounts
The count of requests by operation type (when detailed mode is disabled).API name:
request_countsAdds all elements of
maptorequestCounts. -
requestCounts
The count of requests by operation type (when detailed mode is disabled).API name:
request_countsAdds an entry to
requestCounts. -
requestFailuresTotal
The count of failed requests by operation type (when detailed mode is enabled).API name:
request_failures_totalAdds all elements of
maptorequestFailuresTotal. -
requestFailuresTotal
The count of failed requests by operation type (when detailed mode is enabled).API name:
request_failures_totalAdds an entry to
requestFailuresTotal. -
requestRetryCountTotal
The total retry count by operation type (when detailed mode is enabled).API name:
request_retry_count_totalAdds all elements of
maptorequestRetryCountTotal. -
requestRetryCountTotal
@Nonnull public final RepositoryStatsSnapshot.Builder requestRetryCountTotal(String key, Long value) The total retry count by operation type (when detailed mode is enabled).API name:
request_retry_count_totalAdds an entry to
requestRetryCountTotal. -
requestSuccessTotal
The count of successful requests by operation type (when detailed mode is enabled).API name:
request_success_totalAdds all elements of
maptorequestSuccessTotal. -
requestSuccessTotal
The count of successful requests by operation type (when detailed mode is enabled).API name:
request_success_totalAdds an entry to
requestSuccessTotal. -
requestTimeInMillis
The total request time in milliseconds by operation type (when detailed mode is enabled).API name:
request_time_in_millisAdds all elements of
maptorequestTimeInMillis. -
requestTimeInMillis
The total request time in milliseconds by operation type (when detailed mode is enabled).API name:
request_time_in_millisAdds an entry to
requestTimeInMillis. -
build
Builds aRepositoryStatsSnapshot.- Specified by:
buildin interfaceObjectBuilder<RepositoryStatsSnapshot>- Throws:
NullPointerException- if some of the required fields are null.
-