AttemptMetrics
object, accessible via the Attempt -> metrics
field. This applies to all learning items (e.g. trainings, modules activities).
See the example below:
attempt
field is available for both training and navigation items. Within it, youโll find the time spent (in seconds) for each attempt.
getCumulativeTimeSpent
query. This query accepts several optional arguments that can be combined to filter the results.Argument | Type | Required | Description |
---|---|---|---|
userContextId | ID | No | The user context ID. If omitted, the user context from the API request will be used. |
lpId | ID | No | The learning path ID. |
edgeRid | ID | No | The edge revision ID (e.g., for a specific activity or module). Requires lpId to be provided. |
startDate | Date | No | Start date in YYYY-MM-DD format. Must be used together with endDate . |
endDate | Date | No | End date in YYYY-MM-DD format. Must be used together with startDate . |