StudyPlanClickedActivityHyperskillAnalyticEvent

class StudyPlanClickedActivityHyperskillAnalyticEvent(val activityId: Long, val activityType: Int?, val activityTargetType: ContentType?, val activityTargetId: Long?, val isLocked: Boolean) : HyperskillAnalyticEvent

Represents an analytic event for clicking on an activity in the study plan.

JSON payload:

{
"route": "/study-plan"",
"action": "click",
"part": "study_plan_section_activities",
"target": "activity",
"context":
{
"id": 1,
"type": 10,
"target_type": "step",
"target_id": 1
}
}

See also

Constructors

constructor(activityId: Long, activityType: Int?, activityTargetType: ContentType?, activityTargetId: Long?, isLocked: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Event action, for example: click, view.

Link copied to clipboard

id of the activity

Link copied to clipboard

id of the activity target

Link copied to clipboard
val activityTargetType: ContentType?

type of the activity target

Link copied to clipboard

type of the activity

Link copied to clipboard
val context: Map<String, Any>? = null

Context that describes an event, for example: stepId, notificationId.

Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val params: Map<String, Any>
Link copied to clipboard

Event part where action occurred, for example: main, step_hints.

Link copied to clipboard

Event route path, for example: /home, /onboarding.

Link copied to clipboard
override val sources: Set<AnalyticSource>
Link copied to clipboard

Target that triggered event, for example: send, refresh.