> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFStatisticsStatisticDefinition

> Reference for the PFStatisticsStatisticDefinition struct in the PlayFab Services C API, describing a statistic's columns, versions, and entity type.

PFStatisticsStatisticDefinition data model.

## Syntax

```cpp theme={null}
typedef struct PFStatisticsStatisticDefinition {  
    const char* const* aggregationDestinations;  
    uint32_t aggregationDestinationsCount;  
    const char* const* aggregationSources;  
    uint32_t aggregationSourcesCount;  
    PFStatisticsStatisticColumn const* columns;  
    uint32_t columnsCount;  
    time_t created;  
    const char* entityType;  
    PFStatisticsStatisticsEventEmissionConfig const* eventEmissionConfig;  
    time_t const* lastResetTime;  
    const char* const* linkedLeaderboardNames;  
    uint32_t linkedLeaderboardNamesCount;  
    const char* name;  
    uint32_t version;  
    PFVersionConfiguration const* versionConfiguration;  
} PFStatisticsStatisticDefinition;  
```

### Members

**`aggregationDestinations`**   const char\* const\*<br />*may be nullptr*

(Optional) The list of statistic definitions names this definition aggregates to.

**`aggregationDestinationsCount`**   uint32\_t

Count of aggregationDestinations

**`aggregationSources`**   const char\* const\*<br />*may be nullptr*

(Optional) The list of statistic definitions names whose values must be aggregated towards this stat. If AggregationSource is specified, the entityType of this definition MUST be Title (making it a CommunityStat). Currently, only one aggregation source can be specified.

**`aggregationSourcesCount`**   uint32\_t

Count of aggregationSources

**`columns`**   [PFStatisticsStatisticColumn](/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsstatisticcolumn) const\*<br />*may be nullptr*

(Optional) The columns for the statistic defining the aggregation method for each column.

**`columnsCount`**   uint32\_t

Count of columns

**`created`**   time\_t

Created time, in UTC.

**`entityType`**   const char\*<br />*is null-terminated*

(Optional) The entity type that can have this statistic.

**`eventEmissionConfig`**   [PFStatisticsStatisticsEventEmissionConfig](/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsstatisticseventemissionconfig) const\*<br />*may be nullptr*

(Optional) \[In Preview]: Configurations for different Statistics events that can be emitted by the service.

**`lastResetTime`**   time\_t const\*<br />*may be nullptr*

(Optional) Last time, in UTC, statistic version was incremented.

**`linkedLeaderboardNames`**   const char\* const\*<br />*may be nullptr*

(Optional) The list of leaderboards that are linked to this statistic definition.

**`linkedLeaderboardNamesCount`**   uint32\_t

Count of linkedLeaderboardNames

**`name`**   const char\*<br />*is null-terminated*

(Optional) Name of the statistic.

**`version`**   uint32\_t

Statistic version.

**`versionConfiguration`**   PFVersionConfiguration const\*<br />*may be nullptr*

(Optional) The version reset configuration for the leaderboard definition.

## Requirements

**Header:** PFStatisticsTypes.h

## See also

[PFStatisticsTypes members](/services/playfab/api-references/c/pfstatisticstypes/pfstatisticstypes_members)


## Related topics

- [PFStatisticsListStatisticDefinitionsResponse](/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsliststatisticdefinitionsresponse.md)
- [Services C API overview - PFStatisticsTypes.h](/services/playfab/api-references/c/pfstatisticstypes/pfstatisticstypes_members.md)
- [Community Statistics](/services/playfab/player-progression/statistics/community-statistics.md)
- [PFStatisticsGetStatisticDefinitionAsync](/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsgetstatisticdefinitionasync.md)
- [PFStatisticsListStatisticDefinitionsAsync](/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsliststatisticdefinitionsasync.md)
