*此内容使用人工智能(Beta)翻译,可能包含错误。若要查看英文页面,请点按 此处

LuauExecutionSessionTaskLog

表示 LuauExecutionSessionTask 生成的一块日志消息。

保留的日志数量有限。有关详细信息,请参见 LuauExecutionSessionTask 资源的文档。

日志的保留时间与父任务相同。

属性

pathstring

luau 执行会话任务日志的资源路径。

格式:

  • universes/{universe_id}/places/{place_id}/luau-execution-session-tasks/{luau_execution_session_task_id}/logs/{luau_execution_session_task_log_id}
  • universes/{universe_id}/places/{place_id}/versions/{place_version_id}/luau-execution-session-tasks/{luau_execution_session_task_id}/logs/{luau_execution_session_task_log_id}
  • universes/{universe_id}/places/{place_id}/luau-execution-sessions/{luau_execution_session_id}/tasks/{luau_execution_session_task_id}/logs/{luau_execution_session_task_log_id}
  • universes/{universe_id}/places/{place_id}/versions/{place_version_id}/luau-execution-sessions/{luau_execution_session_id}/tasks/{luau_execution_session_task_id}/logs/{luau_execution_session_task_log_id}.
messagesarray<string>
仅输出

由任务执行生成的日志消息列表。 任务脚本代码中每次调用 Luau print() 函数 都会在此处生成一个单独的列表项,即使消息本身包含 换行符。当视图为 FLAT(这是 默认值)时,此字段被填充。.

structuredMessagesarray<object>
仅输出

由任务执行生成的日志消息及相关 元数据的列表。 任务脚本代码中每次调用 Luau print() 函数 都会在此处生成一个单独的列表项,即使消息本身包含 换行符。当视图为 STRUCTURED 时,此字段被填充。.

基本网址

https://apis.roblox.com
LuauExecutionSessionTaskLog 资源

{
"path": "universes/123/places/123/luau-execution-session-tasks/123e4567-e89b-12d3-a456-426655440000/logs/123",
"messages": [
"string"
],
"structuredMessages": [
{
"message": "string",
"createTime": "2023-07-05T12:34:56Z",
"messageType": "MESSAGE_TYPE_UNSPECIFIED"
}
]
}

LuauExecutionSessionTaskLog

List Luau Execution Session Task Logs
Beta

GET /cloud/v2/universes/{universe_id}/places/{place_id}/versions/{version_id}/luau-execution-sessions/{luau_execution_session_id}/tasks/{task_id}/logs

Lists log chunks generated by a LuauExecutionSessionTask.

Quotas:

  • 45 calls per minute per API key owner or IP address
范围
universe.place.luau-execution-session:readuniverse.place.luau-execution-session:write
限制
  • API 密钥: 45 requests per minute across all API keys for a user or group

Note: Rate limits can be lower during high-traffic periods. Certain endpoints have additional rate limits. Learn more about rate limits.

请求路径参数
universe_idstring
必填

The universe ID.

place_idstring
必填

The place ID.

version_idstring
必填

The version ID.

luau_execution_session_idstring
必填

The luau-execution-session ID.

task_idstring
必填

The task ID.

查询参数
maxPageSizenumber

The maximum number of luau execution session task logs to return. The service might return fewer than this value. If unspecified, at most 10000 luau execution session task logs are returned. The maximum value is 10000 and higher values are set to 10000.

pageTokenstring

A page token, received from a previous call, to retrieve a subsequent page.

When paginating, all other parameters provided to the subsequent call must match the call that provided the page token.

viewEnum<string>

用于检索 luau 执行会话任务日志的视图。

支持 FLAT 和 STRUCTURED。

默认为 FLAT。

可能的值:

描述
VIEW_UNSPECIFIED未指定 luau 执行会话任务日志视图;将使用默认值。
FLAT如果选择此视图,则 messages 字段将被填充(而 structuredMessages 字段将不会)。 messages 数组的每个条目仅包含日志消息,没有其他元数据。这是默认值。
STRUCTURED如果选择此视图,则 structuredMessages 字段将被填充(而 messages 字段将不会)。 structuredMessages 数组的每个条目包含日志消息及其附加元数据(详细信息请参见 LogMessage)。
回复

父集合中的 LuauExecutionSessionTaskLogs 列表。

nextPageTokenstring

您可以作为 pageToken 参数发送的令牌,以检索下一页。如果此字段被省略,则没有后续页面。.

GET /cloud/v2/universes/{universe_id}/places/{place_id}/versions/{version_id}/luau-execution-sessions/{luau_execution_session_id}/tasks/{task_id}/logs

curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/places/{place_id}/versions/{version_id}/luau-execution-sessions/{luau_execution_session_id}/tasks/{task_id}/logs?maxPageSize=10000&pageToken={string}&view={string}' \
-H 'x-api-key: {your-api-key}'
回复

{
"luauExecutionSessionTaskLogs": [
{
"path": "universes/123/places/123/luau-execution-session-tasks/123e4567-e89b-12d3-a456-426655440000/logs/123",
"messages": [
"string"
],
"structuredMessages": [
{
"message": "string",
"createTime": "2023-07-05T12:34:56Z",
"messageType": "MESSAGE_TYPE_UNSPECIFIED"
}
]
}
],
"nextPageToken": "string"
}