Class AddSegmentation
This is the main class that adds segmentation logic to a MetricPlan.
It serves as a mini-coordinator: transforms a metric plan to replace all the
aggregations by their recursive counterparts, add all the necessary
expressions for the segmentation and all-up aggregations.
Inheritance
AddSegmentation
Assembly: MetricSetTransformers.dll
public class AddSegmentation : LoggingTransformerBase, IMetricsPlanTransformer
Constructors
View Source
Declaration
public AddSegmentation(IEnumerable<(string definition, int level, bool aggregateAll)> segments)
Parameters
View Source
Declaration
public AddSegmentation(IEnumerable<(string definition, int level, bool aggregateAll)> segments, ILogger logger)
Parameters
Fields
View Source
The value to be used as segment value for the "all-up" aggregations.
Declaration
public const string ALL_UP_VALUE = "**NONE**"
Field Value
Methods
View Source
Declaration
public override MetricsPlan TransformWithTracing(MetricsPlan metricsPlan, IMetricsPlanValidator validator)
Parameters
Returns
Overrides
Implements
Extension Methods