Package io.vertigo.core.analytics.health
Class HealthMeasureBuilder
java.lang.Object
io.vertigo.core.analytics.health.HealthMeasureBuilder
- All Implemented Interfaces:
Builder<HealthMeasure>
This builder must be used to build a health measure.
- Author:
- pchretien
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns the final object.withGreenStatus(String message) withRedStatus(String message) withYellowStatus(String message)
-
Method Details
-
withGreenStatus
- Returns:
- this builder
-
withGreenStatus
- Returns:
- this builder
-
withYellowStatus
- Parameters:
message- a message that explains the statuscause- the exception throwed during status test- Returns:
- this builder
-
withRedStatus
- Parameters:
message- a message that explains the status- Returns:
- this builder
-
build
Description copied from interface:BuilderBuilds and returns the final object.- Specified by:
buildin interfaceBuilder<HealthMeasure>- Returns:
- Built object
-