Package com.mendix.metrics
Interface Metric.Builder<M extends Metric>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description M
build()
Builds the metric based on the properties given to this builder.Metric.Builder<M>
withDescription(java.lang.String description)
Returns this Builder with the given description of the metric being built.Metric.Builder<M>
withTag(java.lang.String name, java.lang.String value)
Returns this Builder with the given tag added to the list of tags of the metric being built.
-
-
-
Method Detail
-
withDescription
Metric.Builder<M> withDescription(java.lang.String description)
Returns this Builder with the given description of the metric being built.- Parameters:
description
- Description of the metric- Returns:
- The builder with added description
-
withTag
Metric.Builder<M> withTag(java.lang.String name, java.lang.String value)
Returns this Builder with the given tag added to the list of tags of the metric being built.- Parameters:
name
- Tag keyvalue
- Tag value- Returns:
- The builder with added tag
-
build
M build()
Builds the metric based on the properties given to this builder.- Returns:
- Ready-to-use metric
-
-