Criar definição de estatística
Create a new entity statistic definition.
Allowed entity token types: title, game_server
Error codes
This operation may return the following PlayFab errors:
| Error | Code |
|---|---|
| AggregationTypeNotAllowedForLinkedStat | 23008 |
| AggregationTypeNotAllowedForMultiColumnStatistic | 1590 |
| ApiNotEnabledForTitle | 1520 |
| DuplicateColumnNameFound | 1585 |
| DuplicateStatisticName | 1253 |
| EntityTypeSpecifiedRequiresAggregationSource | 23012 |
| ExternalEntityNotAllowedForTier | 1580 |
| InvalidBaseTimeForInterval | 1581 |
| InvalidEntityTypeForAggregation | 23006 |
| MaxQueryableVersionsExceeded | 23015 |
| MaxQueryableVersionsValueNotAllowedForTier | 1591 |
| MultiLevelAggregationNotAllowed | 23007 |
| PlayFabErrorEventNotSupportedForEntityType | 23013 |
| StatisticColumnAggregationMismatch | 23002 |
| StatisticColumnLengthMismatch | 1593 |
| StatisticCountLimitExceeded | 1203 |
| StatisticDefinitionHasNullOrEmptyVersionConfiguration | 1592 |
| StatisticNameConflict | 1196 |
| StatisticNotFound | 1195 |
| VersionConfigurationCannotBeSpecifiedForLinkedStat | 23004 |
| VersionConfigurationIsRequired | 23005 |
Autorizações
This API requires an Entity Session Token, available from the Entity GetEntityToken method.
Corpo
Name of the statistic. Must be less than 150 characters. Restricted to a-Z, 0-9, '(', ')', '_', '-' and '.'.
[In Preview]: The list of statistic definition names whose scores 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.
The columns for the statistic defining the aggregation method for each column. A maximum of 5 columns are allowed.
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
The entity type allowed to have score(s) for this statistic.
[In Preview]: Configurations for different Statistics events that can be emitted by the service.
The version reset configuration for the statistic definition.
Tópicos relacionados
Criar definição de estatística do jogadorCriar uma estatística básicaEstatísticas sazonaisFazendo mais com estatísticasObter definição de estatística