Package com.mendix.metrics
Interface Metric.Builder<M extends Metric>
- Enclosing interface:
Metric
public static interface Metric.Builder<M extends Metric>
Represents a builder for metric objects.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the metric based on the properties given to this builder.withDescription
(String description) Returns this Builder with the given description of the metric being built.Returns this Builder with the given tag added to the list of tags of the metric being built.
-
Method Details
-
withDescription
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
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
-