Interface Metrics.SessionMetricCollector.Builder
- All Superinterfaces:
Metrics.Builder<Metrics.SessionMetricCollector.Builder>
- Enclosing interface:
- Metrics.SessionMetricCollector
public static interface Metrics.SessionMetricCollector.Builder
extends Metrics.Builder<Metrics.SessionMetricCollector.Builder>
A session metric collector builder.
A builder of this type may be created using
newSessionMetricCollectorBuilder and used to create instances of
Metrics.SessionMetricCollector that can be supplied to
putSessionMetricCollector.
-
Method Summary
Modifier and TypeMethodDescriptionCreate a newMetrics.SessionMetricCollectorusing the values currently known to this builder.groupByProperties(List<String> propertyNames) Specifies a list of session property names to group by, replacing any current list known to this builder.groupByProperty(String propertyName) Adds the name of a session property to group by to the list known to this builder.removeMetricsWithNoMatches(boolean remove) Specifies whether the metric collector should remove any metrics that have no matches.Methods inherited from interface com.pushtechnology.diffusion.client.features.control.Metrics.Builder
exportToPrometheus, maximumGroups, reset
-
Method Details
-
groupByProperty
Adds the name of a session property to group by to the list known to this builder.By default a builder will initially have no session properties to group by set.
- Parameters:
propertyName- the name of the session property. SeeSessionfor details of session properties- Returns:
- this builder
-
groupByProperties
Specifies a list of session property names to group by, replacing any current list known to this builder.- Parameters:
propertyNames- a list of session property names. SeeSessionfor details of session properties- Returns:
- this builder
-
removeMetricsWithNoMatches
Specifies whether the metric collector should remove any metrics that have no matches.The default is that the metric collector will not remove metrics with no matches.
- Parameters:
remove- true to indicate that metrics with no matches should be removed- Returns:
- this builder
-
create
Create a newMetrics.SessionMetricCollectorusing the values currently known to this builder.- Parameters:
name- the name of theMetrics.SessionMetricCollectorsessionFilter- the session filter indicating the sessions this collector should apply to. The format of a session property filter is documented inSession- Returns:
- a new
Metrics.SessionMetricCollectorwith all of the current settings of this builder
-