Class CgroupCpuStat.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CgroupCpuStat.Builder>
co.elastic.clients.elasticsearch.nodes.CgroupCpuStat.Builder
- All Implemented Interfaces:
WithJson<CgroupCpuStat.Builder>
,ObjectBuilder<CgroupCpuStat>
- Enclosing class:
- CgroupCpuStat
public static class CgroupCpuStat.Builder
extends WithJsonObjectBuilderBase<CgroupCpuStat.Builder>
implements ObjectBuilder<CgroupCpuStat>
Builder for
CgroupCpuStat
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aCgroupCpuStat
.final CgroupCpuStat.Builder
numberOfElapsedPeriods
(Long value) The number of reporting periods (as specified bycfs_period_micros
) that have elapsed.final CgroupCpuStat.Builder
numberOfTimesThrottled
(Long value) The number of times all tasks in the same cgroup as the Elasticsearch process have been throttled.protected CgroupCpuStat.Builder
self()
final CgroupCpuStat.Builder
timeThrottledNanos
(Long value) The total amount of time, in nanoseconds, for which all tasks in the same cgroup as the Elasticsearch process have been throttled.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
numberOfElapsedPeriods
The number of reporting periods (as specified bycfs_period_micros
) that have elapsed.API name:
number_of_elapsed_periods
-
numberOfTimesThrottled
The number of times all tasks in the same cgroup as the Elasticsearch process have been throttled.API name:
number_of_times_throttled
-
timeThrottledNanos
The total amount of time, in nanoseconds, for which all tasks in the same cgroup as the Elasticsearch process have been throttled.API name:
time_throttled_nanos
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<CgroupCpuStat.Builder>
-
build
Builds aCgroupCpuStat
.- Specified by:
build
in interfaceObjectBuilder<CgroupCpuStat>
- Throws:
NullPointerException
- if some of the required fields are null.
-