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

# function_executed

> function_executed 事件。

执行 CloudScript 函数时触发此事件。

## 属性

| 名称                        | 类型                                                                                                | 说明                 |
| :------------------------ | :------------------------------------------------------------------------------------------------ | :----------------- |
| ExecutionTimeMilliseconds | int                                                                                               | 函数的执行时间（毫秒）。       |
| FunctionName              | String                                                                                            | 已执行函数的名称。          |
| Result                    | [ExecuteFunctionResult](/services/playfab/api-references/events/data-types/executefunctionresult) | 函数执行返回的结果。         |
| ResultTooLarge            | Boolean                                                                                           | 指示结果是否过大而无法返回并被截断。 |
| Source                    | String                                                                                            | 导致函数执行的来源或触发器。     |

## 通用属性

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

| 名称                 | 类型                                                                            | 说明                             |
| :----------------- | :---------------------------------------------------------------------------- | :----------------------------- |
| SchemaVersion      | String                                                                        | PlayStream 事件格式版本，遵循语义化版本控制方案。 |
| FullName           | [Object](/services/playfab/api-references/events/data-types/fullnameobject)   | 事件名称和事件命名空间的组合，用于完全指定事件类型。     |
| Id                 | String                                                                        | PlayFab 为此事件分配的唯一标识符。          |
| Timestamp          | DateTime                                                                      | 与此事件关联的时间（UTC）。                |
| Entity             | [Object](/services/playfab/api-references/events/data-types/entityobject)     | 与此事件相关的实体的详细信息，包括实体 ID 和实体类型。  |
| Originator         | [Object](/services/playfab/api-references/events/data-types/originatorobject) | 描述发起此事件的来源和来源类型的对象。            |
| PayloadContentType | String                                                                        | 指定事件负载的内容。默认为 "JSON"。          |
| Origin Info        | Object                                                                        | 可选字段，包含关于源自 PlayFab 外部的事件的信息。  |


## Related topics

- [PlayFab 的 PlayStream 事件模型参考](/zh-CN/services/playfab/api-references/events/index.md)
- [title_scheduled_function_executed](/zh-CN/services/playfab/api-references/events/Functions/title-scheduled-function-executed.md)
- [player_triggered_action_executed_function](/zh-CN/services/playfab/api-references/events/Functions/player-triggered-action-executed-function.md)
- [cloudscript_executed](/zh-CN/services/playfab/api-references/events/CloudScript/cloudscript-executed.md)
- [action_executed](/zh-CN/services/playfab/api-references/events/PlayStream/action-executed.md)
