LuauExecutionSessionTaskLog

Represents a chunk of log messages generated by a LuauExecutionSessionTask.

The amount of logs that is retained is limited. See the documentation of the LuauExecutionSessionTask resource for more details.

Logs have the same retention time as the parent task.

  • CHEMINS POUR RESSOURCES
  • /cloud/v2/universes/{universe_id}/places/{place_id}/luau-execution-session-tasks/{luau_execution_session_task_id}/logs
  • /cloud/v2/universes/{universe_id}/places/{place_id}/luau-execution-sessions/{luau_execution_session_id}/tasks/{task_id}/logs
  • /cloud/v2/universes/{universe_id}/places/{place_id}/versions/{version_id}/luau-execution-session-tasks/{luau_execution_session_task_id}/logs
  • /cloud/v2/universes/{universe_id}/places/{place_id}/versions/{version_id}/luau-execution-sessions/{luau_execution_session_id}/tasks/{task_id}/logs

Attributs

pathstring

The resource path of the luau execution session task log.

Formats:

  • 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>
Sortie seule

A list of log messages generated by the task execution. Each call to the Luau print() function from the task's script's code results in a single list item here, even if the message itself contains newlines. This field is populated when the View is FLAT (which is the default).

structuredMessagesarray<object>
Sortie seule

A list of log messages generated by the task execution and associated metadata. Each call to the Luau print() function from the task's script's code results in a single list item here, even if the message itself contains newlines. This field is populated when the View is STRUCTURED.

URL de base

https://apis.roblox.com
La ressource 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
Bêta

GET /cloud/v2/universes/{universe_id}/places/{place_id}/luau-execution-session-tasks/{luau_execution_session_task_id}/logs

Lists log chunks generated by a LuauExecutionSessionTask.

Quotas:

  • 45 calls per minute per API key owner or IP address
Périmètres d'application
universe.place.luau-execution-session:readuniverse.place.luau-execution-session:write
RequêteParamètres du chemin
universe_idstring
Requis

The universe ID.

place_idstring
Requis

The place ID.

luau_execution_session_task_idstring
Requis

The luau-execution-session-task ID.

Paramètres de requête
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>

The view in which to retrieve the luau execution session task log.

Supports FLAT and STRUCTURED.

Defaults to FLAT.

Possible values:

ValueDescription
VIEW_UNSPECIFIEDThe luau execution session task log view is not specified; the default will be used.
FLATIf this view is selected, the messages field will be populated (and the structuredMessages field will not). Each entry of the messages array contains only the log message, without additional medata. This is the default.
STRUCTUREDIf this view is selected, the structuredMessages field will be populated (and the messages field will not). Each entry of the structuredMessages array contains the log message plus additional metadata (see LogMessage for details).
Réponse

A list of LuauExecutionSessionTaskLogs in the parent collection.

luauExecutionSessionTaskLogsarray<LuauExecutionSessionTaskLog>

The LuauExecutionSessionTaskLogs from the specified LuauExecutionSessionTask.

nextPageTokenstring

A token that you can send as a pageToken parameter to retrieve the next page. If this field is omitted, there are no subsequent pages.

GET /cloud/v2/universes/{universe_id}/places/{place_id}/luau-execution-session-tasks/{luau_execution_session_task_id}/logs

curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/places/{place_id}/luau-execution-session-tasks/{luau_execution_session_task_id}/logs?maxPageSize=10000&pageToken={string}&view={string}' \
-H 'x-api-key: {your-api-key}'
Réponse

{
"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"
}