ScheduledActionView

data class ScheduledActionView(val id: Long, val action: ScheduledActionViewAction, val eventData: JsonContent? = null, val did: Did, val executeAt: Timestamp? = null, val executeAfter: Timestamp? = null, val executeUntil: Timestamp? = null, val randomizeExecution: Boolean? = null, val createdBy: Did, val createdAt: Timestamp, val updatedAt: Timestamp? = null, val status: ScheduledActionViewStatus, val lastExecutedAt: Timestamp? = null, val lastFailureReason: String? = null, val executionEventId: Long? = null)

View of a scheduled moderation action

Parameters

id

Auto-incrementing row ID

action

Type of action to be executed

eventData

Serialized event object that will be propagated to the event when performed

did

Subject DID for the action

executeAt

Exact time to execute the action

executeAfter

Earliest time to execute the action (for randomized scheduling)

executeUntil

Latest time to execute the action (for randomized scheduling)

randomizeExecution

Whether execution time should be randomized within the specified range

createdBy

DID of the user who created this scheduled action

createdAt

When the scheduled action was created

updatedAt

When the scheduled action was last updated

status

Current status of the scheduled action

lastExecutedAt

When the action was last attempted to be executed

lastFailureReason

Reason for the last execution failure

executionEventId

ID of the moderation event created when action was successfully executed

Constructors

Link copied to clipboard
constructor(id: Long, action: ScheduledActionViewAction, eventData: JsonContent? = null, did: Did, executeAt: Timestamp? = null, executeAfter: Timestamp? = null, executeUntil: Timestamp? = null, randomizeExecution: Boolean? = null, createdBy: Did, createdAt: Timestamp, updatedAt: Timestamp? = null, status: ScheduledActionViewStatus, lastExecutedAt: Timestamp? = null, lastFailureReason: String? = null, executionEventId: Long? = null)

Properties

Link copied to clipboard

Type of action to be executed

Link copied to clipboard

When the scheduled action was created

Link copied to clipboard

DID of the user who created this scheduled action

Link copied to clipboard
val did: Did

Subject DID for the action

Link copied to clipboard

Serialized event object that will be propagated to the event when performed

Link copied to clipboard

Earliest time to execute the action (for randomized scheduling)

Link copied to clipboard

Exact time to execute the action

Link copied to clipboard

Latest time to execute the action (for randomized scheduling)

Link copied to clipboard

ID of the moderation event created when action was successfully executed

Link copied to clipboard
val id: Long

Auto-incrementing row ID

Link copied to clipboard

When the action was last attempted to be executed

Link copied to clipboard

Reason for the last execution failure

Link copied to clipboard

Whether execution time should be randomized within the specified range

Link copied to clipboard

Current status of the scheduled action

Link copied to clipboard

When the scheduled action was last updated