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

# entity_executed_cloud_script

> entity_executed_cloud_script 事件。

通过调用 ExecuteEntityCloudScript API 执行 CloudScript 函数时可选择性地触发此事件。如果希望记录该事件，可以传入 GeneratePlayStreamEvent。

## 属性

| 名称 | 类型 | 说明 |
| :- | :- | :- |
| CloudScriptExecutionResult | [ExecuteCloudScriptResult](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/data-types/executecloudscriptresult.md) | CloudScript 函数的结果，包括对调试有用的诊断信息。 |
| EntityChain | String | 此实体的所有权链。 |
| EntityLineage | [EntityLineage](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/data-types/entitylineage.md) | 此实体所属的父实体。 |
| FunctionName | String | 被调用的 CloudScript 函数的名称。 |

## 通用属性

所有 V1 PlayStream 事件均格式化为 JSON 对象，并共享以下通用属性：

| 名称 | 类型 | 说明 |
| :- | :- | :- |
| EntityId | String | 此事件适用的实体（title、player 等）的标识符。 |
| EntityType | String | 此事件适用的实体（player、title 等）的类型。如果 PlayFab 需要对此实体执行操作，则 EntityType 必须为 "player"、"character" 或 "title"。要求 PlayFab 当前不解析的任何实体类型都应加上命名空间前缀（如 "com.mygame.guild"），因为 PlayFab 可能随时开始解析根实体。 |
| EventId | String | PlayFab 为此事件分配的唯一标识符。 |
| EventName | String | 此事件的名称。 |
| EventNamespace | String | 分配给此事件的命名空间。例如："com.myprogram.ads" |
| Source | String | 此 PlayStream 事件的来源名称；如果事件源自我们，则为 PlayFab。 |
| SourceType | [SourceType](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/data-types/sourcetype.md) | 此事件的来源类型（PlayFab 合作伙伴、其他后端或来自 PlayFab API）。 |
| Timestamp | DateTime | 与此事件关联的时间（UTC）。 |


## Related topics

- [PlayFab 2018 版本发布说明](https://docs.xbox.com/zh-CN/services/playfab/release-notes/2018.md)
- [PlayStream 事件模型参考](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/index.md)
- [PFCloudScriptExecuteEntityCloudScriptRequest](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfcloudscripttypes/structs/pfcloudscriptexecuteentitycloudscriptrequest.md)
- [Execute Entity Cloud Script](https://docs.xbox.com/api-reference/server-side-cloud-script/execute-entity-cloud-script.md)
- [PFCloudScriptExecuteEntityCloudScriptAsync](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfcloudscript/functions/pfcloudscriptexecuteentitycloudscriptasync.md)
