Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
PFCloudScriptExecuteCloudScriptResult data model.
Syntax
typedef struct PFCloudScriptExecuteCloudScriptResult {
int32_t aPIRequestsIssued;
PFCloudScriptScriptExecutionError const* error;
double executionTimeSeconds;
const char* functionName;
PFJsonObject functionResult;
bool const* functionResultTooLarge;
int32_t httpRequestsIssued;
PFCloudScriptLogStatement const* logs;
uint32_t logsCount;
bool const* logsTooLarge;
uint32_t memoryConsumedBytes;
double processorTimeSeconds;
int32_t revision;
} PFCloudScriptExecuteCloudScriptResult;
Members
aPIRequestsIssued int32_t
Number of PlayFab API requests issued by the CloudScript function.
error PFCloudScriptScriptExecutionError const*
may be nullptr
(Optional) Information about the error, if any, that occurred during execution.
executionTimeSeconds double
ExecutionTimeSeconds property.
functionName const char*
is null-terminated
(Optional) The name of the function that executed.
functionResult PFJsonObject
(Optional) The object returned from the CloudScript function, if any.
functionResultTooLarge bool const*
may be nullptr
(Optional) Flag indicating if the FunctionResult was too large and was subsequently dropped from this event. This only occurs if the total event size is larger than 350KB.
httpRequestsIssued int32_t
Number of external HTTP requests issued by the CloudScript function.
logs PFCloudScriptLogStatement const*
may be nullptr
(Optional) Entries logged during the function execution. These include both entries logged in the function code using log.info() and log.error() and error entries for API and HTTP request failures.
logsCount uint32_t
Count of logs
logsTooLarge bool const*
may be nullptr
(Optional) Flag indicating if the logs were too large and were subsequently dropped from this event. This only occurs if the total event size is larger than 350KB after the FunctionResult was removed.
memoryConsumedBytes uint32_t
MemoryConsumedBytes property.
processorTimeSeconds double
Processor time consumed while executing the function. This does not include time spent waiting on API calls or HTTP requests.
revision int32_t
The revision of the CloudScript that executed.
Requirements
Header: PFCloudScriptTypes.h