Show / Hide Table of Contents

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
Object
LoggingTransformerBase
AddSegmentation
Implements
IMetricsPlanTransformer
Inherited Members
LoggingTransformerBase.Logger
LoggingTransformerBase.TransformerName
LoggingTransformerBase.Transform(MetricsPlan, IMetricsPlanValidator)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Mangrove.MetricSetTransformers.Segmentation
Assembly: MetricSetTransformers.dll
Syntax
public class AddSegmentation : LoggingTransformerBase, IMetricsPlanTransformer

Constructors

View Source

AddSegmentation(IEnumerable<(String definition, Int32 level, Boolean aggregateAll)>)

Declaration
public AddSegmentation(IEnumerable<(string definition, int level, bool aggregateAll)> segments)
Parameters
Type Name Description
IEnumerable<ValueTuple<String, Int32, Boolean>> segments
View Source

AddSegmentation(IEnumerable<(String definition, Int32 level, Boolean aggregateAll)>, ILogger)

Declaration
public AddSegmentation(IEnumerable<(string definition, int level, bool aggregateAll)> segments, ILogger logger)
Parameters
Type Name Description
IEnumerable<ValueTuple<String, Int32, Boolean>> segments
ILogger logger

Fields

View Source

ALL_UP_VALUE

The value to be used as segment value for the "all-up" aggregations.

Declaration
public const string ALL_UP_VALUE = "**NONE**"
Field Value
Type Description
String

Methods

View Source

TransformWithTracing(MetricsPlan, IMetricsPlanValidator)

Declaration
public override MetricsPlan TransformWithTracing(MetricsPlan metricsPlan, IMetricsPlanValidator validator)
Parameters
Type Name Description
MetricsPlan metricsPlan
IMetricsPlanValidator validator
Returns
Type Description
MetricsPlan
Overrides
LoggingTransformerBase.TransformWithTracing(MetricsPlan, IMetricsPlanValidator)

Implements

IMetricsPlanTransformer

Extension Methods

ObjectExtensions.EventId(Object)
  • View Source
Back to top Generated by DocFX