# SimulationMetricAggregationType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

Specification of how metric values are aggregated. There are two key terms here: - domain: The set of objects for which the metric is computed (and thus aggregated); - selection: The set of "more relevant" objects is used in some aggregation functions, like SELECTION_SIZE_TO_DOMAIN_SIZE or SELECTION_TOTAL_VALUE_TO_DOMAIN_TOTAL_VALUE.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
aggregationFunction | property SimulationMetricAggregationFunctionType | [0,1] | An aggregation function used to compute the (aggregated) metric value.
source | container SimulationMetricReferenceType | [0,1] | Source metric that is to be aggregated.
domainRestriction | container SimulationObjectPredicateType | [0,1] | Restriction of the domain of original metric.
selectionRestriction | container SimulationObjectPredicateType | [0,1] | Restriction of the "selection" predicate of original metric.

- ### Items

  - #### aggregationFunction

    Flags: RAM,runtime,AVals:13

    Multiplicity: [0,1]

    An aggregation function used to compute the (aggregated) metric value.

  - #### source

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Source metric that is to be aggregated. The metric must be present on individual processed objects, i.e. it is not possible to aggregate the aggregation-only metric.

  - #### domainRestriction

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Restriction of the domain of original metric.

  - #### selectionRestriction

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Restriction of the "selection" predicate of original metric.