ResourceEventData

The data class for event data in Observer

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

Constructors

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

Functions

component1
Link copied to clipboard
operator fun component1(): Long
component2
Link copied to clipboard
operator fun component2(): Long?
component3
Link copied to clipboard
operator fun component3(): DataSourceType
component4
Link copied to clipboard
operator fun component4(): Request
component5
Link copied to clipboard
operator fun component5(): Response?
component6
Link copied to clipboard
operator fun component6(): Boolean
copy
Link copied to clipboard
fun copy(begin: Long, end: Long?, dataSource: DataSourceType, request: Request, response: Response?, cancelled: Boolean): ResourceEventData
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

begin
Link copied to clipboard

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

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

"cancelled" property

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

"data-source" property

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

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

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

"request" property

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

"response" property

@SerializedName(value = "response")
val response: Response?