Package com.dynatrace.metric.util
Interface MetricLineBuilder.TypeStep
-
- Enclosing interface:
- MetricLineBuilder
public static interface MetricLineBuilder.TypeStepInterface to set the dimensions of the metric and to decide which type it is.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetricLineBuilder.CounterStepcount()Sets the metric line type to counter.MetricLineBuilder.TypeStepdimension(java.lang.String key, java.lang.String value)Sets a dimension of the metric line.MetricLineBuilder.TypeStepdimensions(java.util.Map<java.lang.String,java.lang.String> dimensions)Sets multiple dimensions (seedimension(java.lang.String, java.lang.String)).MetricLineBuilder.GaugeStepgauge()Sets the metric line type to gauge (summary or single value).
-
-
-
Method Detail
-
dimension
MetricLineBuilder.TypeStep dimension(java.lang.String key, java.lang.String value) throws MetricException
Sets a dimension of the metric line. The key and value will be normalized. If a value is already present for that key, it will be overwritten.- Parameters:
key- dimension key.value- dimension value.- Returns:
- A
MetricLineBuilder.TypeStep. - Throws:
MetricException- if the dimension limit of 50 would be exceeded after adding this dimension.
-
dimensions
MetricLineBuilder.TypeStep dimensions(java.util.Map<java.lang.String,java.lang.String> dimensions) throws MetricException
Sets multiple dimensions (seedimension(java.lang.String, java.lang.String)). Duplicate keys will be overwritten.- Parameters:
dimensions- The dimensions to be added.- Returns:
- A
MetricLineBuilder.TypeStep. - Throws:
MetricException- if the dimension limit of 50 would be exceeded after adding this dimension.
-
gauge
MetricLineBuilder.GaugeStep gauge()
Sets the metric line type to gauge (summary or single value).- Returns:
- A
MetricLineBuilder.GaugeStepthat can be used to set the gauge value.
-
count
MetricLineBuilder.CounterStep count()
Sets the metric line type to counter.- Returns:
- A
MetricLineBuilder.CounterStepthat can be used to set the delta value.
-
-