Class UtilizationProbe.Builder
java.lang.Object
com.eqixiac.equinix.design.estate.UtilizationProbe.Builder
- Enclosing class:
UtilizationProbe
Configures a probe.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the probe.Sets the clock that defines "now".includePorts(boolean include) Also probes active ports (default off: port metrics are the sum of connections).maxSubjects(int max) Sets the most resources probed in one run (default 200).pacer(UtilizationProbe.Pacer pacer) Replaces the pause implementation (tests).pauseMillis(long millis) Sets the pause between metric searches (default 100 ms).Sets the window ending now (default seven days).
-
Method Details
-
window
Sets the window ending now (default seven days).- Parameters:
window- the window- Returns:
- this builder
-
clock
Sets the clock that defines "now".- Parameters:
clock- the clock- Returns:
- this builder
-
maxSubjects
Sets the most resources probed in one run (default 200).- Parameters:
max- the ceiling- Returns:
- this builder
-
pauseMillis
Sets the pause between metric searches (default 100 ms).- Parameters:
millis- the pause- Returns:
- this builder
-
includePorts
Also probes active ports (default off: port metrics are the sum of connections).- Parameters:
include- whether to probe ports- Returns:
- this builder
-
pacer
Replaces the pause implementation (tests).- Parameters:
pacer- the pacer- Returns:
- this builder
-
build
-