Package com.dynatrace.metric.util
Interface MetricLineBuilder.MetadataStep
-
- Enclosing interface:
- MetricLineBuilder
public static interface MetricLineBuilder.MetadataStep
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringbuild()Serializes the metadata line after normalization of provided properties.MetricLineBuilder.MetadataStepdescription(java.lang.String description)Sets thedt.meta.descriptiondimension on the metadata line.MetricLineBuilder.MetadataStepdisplayName(java.lang.String name)Sets thedt.meta.displayNamedimension on the metadata line.MetricLineBuilder.MetadataStepunit(java.lang.String unit)Sets thedt.meta.unitdimension on the metadata line.
-
-
-
Method Detail
-
description
MetricLineBuilder.MetadataStep description(java.lang.String description)
Sets thedt.meta.descriptiondimension on the metadata line.- Parameters:
description- A short description of the metric.- Returns:
- A
MetricLineBuilder.MetadataStepthat can be used to build the metadata line or set other metadata settings.
-
unit
MetricLineBuilder.MetadataStep unit(java.lang.String unit)
Sets thedt.meta.unitdimension on the metadata line.- Parameters:
unit- The unit of the metric.- Returns:
- A
MetricLineBuilder.MetadataStepthat can be used to build the metadata line or set other metadata settings.
-
displayName
MetricLineBuilder.MetadataStep displayName(java.lang.String name)
Sets thedt.meta.displayNamedimension on the metadata line.- Parameters:
name- The display name of the metric.- Returns:
- A
MetricLineBuilder.MetadataStepthat can be used to build the metadata line or set other metadata settings.
-
build
java.lang.String build()
Serializes the metadata line after normalization of provided properties.- Returns:
- The metadata line as a
Stringif properties are set, andnullotherwise.
-
-