> ## 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.

# 统计数据更改通知的门户配置

> 通过在 Partner Center 中配置基于事件的统计数据，经由 Real-Time Activity 服务订阅 XBOX Live 统计数据更改通知。

<Note>本主题介绍仅在具备适当权限时才可用的功能。有关详细信息，请与你的客户经理或 Microsoft 的其他联系人联系。</Note>

本主题介绍在使用基于事件的数据平台的标题中，在 Partner Center 服务配置中订阅统计数据更改通知的过程。

统计数据更改通知通过使用 Real-Time Activity (RTA) 服务发出。由于不断轮询服务以获取玩家统计数据的值是低效的，因此使用 RTA 在订阅的统计数据值发生更改时通知标题。

有关服务配置的介绍，请参阅 [门户配置概述](/services/xbox-services/fundamentals/portal-config/live-portal-config-overview)。

有关 RTA 的详细信息，请参阅 [Real-Time Activity (RTA) 服务](/services/xbox-services/fundamentals/rta/live-rta-nav)。

本主题涵盖以下内容：

* [什么是统计数据更改通知？](#what-is-a-stat-change-notification)
* [配置统计数据更改通知](#configure-stat-change-notifications)
* [启用统计数据更改通知](#enable-stat-change-notifications)
* [修改统计数据更改通知](#modify-stat-change-notifications)
* [删除统计数据更改通知](#delete-a-stat-change-notification)

<a id="what-is-a-stat-change-notification" />

## 什么是统计数据更改通知？

更新玩家统计数据时，可以作为实时更新发送到任何已订阅该统计数据的客户端。在此上下文中，用户统计数据被视为 RTA。此报告功能消除了对代码的跟踪和更新，并轻松地在多个屏幕之间同步此用户统计数据。

统计数据更改通知在多人游戏中特别有用，其中计分板跟踪每个玩家的统计数据，并且需要尽快更新。

<a id="configure-stat-change-notifications" />

## 配置统计数据更改通知

1. 登录到 [Partner Center](https://developer.microsoft.com/dashboard/windows/overview) 上的帐户。

2. 选择你的标题，然后转到 **Services** > **XBOX Live**。

3. 选择 **Stat change notifications** 的链接。

4. 在 **Stat change notifications** 页面上，为统计数据更改通知启用统计数据。

必须先创建玩家统计数据，然后才能为统计数据更改通知启用它们。
有关详细信息，请参阅 [基于事件的统计数据的门户配置](/services/xbox-services/player-data/stats-leaderboards/event-based/config/live-stats-eb-portal)。

<a id="enable-stat-change-notifications" />

## 启用统计数据更改通知

1. 打开 **Stat change notifications** 页面。它包含为统计数据更改通知启用的任何统计数据的列表。

2. 选择 **Select a stat** 下拉列表，然后选择要注册用于统计数据更改通知的现有统计数据。你还可以选择 **Create a new player stat**。这会在新选项卡中打开 **Events and stat rules** 页面。然后，你可以创建新的玩家统计数据。

3. 如果你选择的统计数据的名称中包含字段，则必须为这些字段指定值。

4. 添加完统计数据更改通知后，选择 **Save** 以保存更改，或选择 **Cancel** 以放弃更改。

若要让标题处理统计数据更改通知，必须添加代码以使用 RTA 服务订阅统计数据更改通知。
有关详细信息，请参阅 [RTA 服务编程](/services/xbox-services/fundamentals/rta/how-to/live-programming-rta)。

<a id="modify-stat-change-notifications" />

## 修改统计数据更改通知

<Info>标题通过最终认证后，无法更改或删除该标题中现有的 RTA。</Info>

1. 在 **Stat change notifications** 页面上，选择要更改的统计数据实例。

2. 在下拉列表中，选择要更改通知的统计数据实例。

3. 选择 **Save** 以保存更改，或选择 **Cancel** 以放弃更改。

<a id="delete-a-stat-change-notification" />

## 删除统计数据更改通知

<Info>标题通过最终认证后，无法更改或删除该标题中现有的 RTA。</Info>

1. 在 **Stat change notifications** 页面上，选择要删除的统计数据更改通知旁边的 **Delete**。

2. 选择 **Save** 以保存更改，或选择 **Cancel** 以放弃更改。


## Related topics

- [注册玩家统计数据更改通知](/zh-CN/services/xbox-services/fundamentals/rta/concepts/live-register-for-stat-notifications.md)
- [基于事件的统计信息和排行榜门户配置](/zh-CN/services/xbox-services/player-data/stats-leaderboards/event-based/config/live-statslb-eb-config-nav.md)
- [对 RTA 服务进行编程](/zh-CN/services/xbox-services/fundamentals/rta/how-to/live-programming-rta.md)
- [基于事件的排行榜的门户配置](/zh-CN/services/xbox-services/player-data/stats-leaderboards/event-based/config/live-eb-leaderboards-portal.md)
- [门户配置概述](/zh-CN/services/xbox-services/fundamentals/portal-config/live-portal-config-overview.md)
