StatDefinitionCollection / PartialStatDefinitionCollection
Description
A StatDefinitionCollection
represents a collection of key/value pairs, where key is a string used to identify the corresponding StatDefinition
. It extends ResourceCollection
<T>
Properties
Property |
Element |
Type |
Description |
---|---|---|---|
key |
|
string |
The identifier of the |
|
value |
The |
Example
const statDefinitions = {
minGoalsStat: { type: "min", field: "goals" }
};
Remarks
To calculate an aggregate for dataItems
present in a group, a GroupConfiguration
must fill its stats property with a StatConfiguration
having its statDefinitionKey
matching the StatDefinition
's key.
A partial type/interface is an object in which properties are optional.
Need help? Contact us!