ResourceEventData

data class ResourceEventData(begin: Long, end: Long?, dataSource: DataSourceType, request: Request, response: Response?, cancelled: Boolean)

The data class for event data in Observer

Constructors

ResourceEventData
Link copied to clipboard
fun ResourceEventData(begin: Long, end: Long?, dataSource: DataSourceType, request: Request, response: Response?, cancelled: Boolean)

Properties

begin
Link copied to clipboard
@SerializedName(value = "begin")
val begin: Long

Representing timestamp taken at the time of an event creation, in microseconds, since the epoch.

cancelled
Link copied to clipboard
@SerializedName(value = "cancelled")
val cancelled: Boolean

"cancelled" property

dataSource
Link copied to clipboard
@SerializedName(value = "data-source")
val dataSource: DataSourceType

"data-source" property

end
Link copied to clipboard
@SerializedName(value = "end")
val end: Long?

For an interval events, an optional end property will be present that represents timestamp taken at the time of an event completion.

request
Link copied to clipboard
@SerializedName(value = "request")
val request: Request

"request" property

response
Link copied to clipboard
@SerializedName(value = "response")
val response: Response?

"response" property