yaooqinn opened a new issue #906:
URL: https://github.com/apache/incubator-kyuubi/issues/906
### 1. Describe the feature
``` scala
/**
*
* @param sessionId the identifier of a session
* @param applicationId the engine id
* @param startTime Start time
* @param endTime End time
* @param ip Client IP address
* @param totalExecution how many operations
*/
case class SessionEvent(
sessionId: String,
applicationId: String,
ip: String,
startTime: Long,
var endTime: Long = 0L,
var totalExecution: Int = 0) extends KyuubiEvent {
override def eventType: String = ???
override def schema: StructType = ???
override def toJson: String = ???
}
object SessionEvent {
def apply(session: Session, applicationId: String): SessionEvent = {
new SessionEvent(
session.handle.identifier.toString,
applicationId,
session.ipAddress,
session.createTime)
}
}
```
### 2. Motivation
### 3. Describe the solution
### 4. Additional context
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]