From 376cfcff70dda6d147b39dc564af90d744c187d9 Mon Sep 17 00:00:00 2001 From: Malik Diarra Date: Wed, 18 Dec 2024 17:09:03 -0800 Subject: [PATCH] feat: add connector update event model (#14849) --- .../data/services/shared/ConnectorUpdate.kt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 airbyte-data/src/main/kotlin/io/airbyte/data/services/shared/ConnectorUpdate.kt diff --git a/airbyte-data/src/main/kotlin/io/airbyte/data/services/shared/ConnectorUpdate.kt b/airbyte-data/src/main/kotlin/io/airbyte/data/services/shared/ConnectorUpdate.kt new file mode 100644 index 0000000000..d3624fa13b --- /dev/null +++ b/airbyte-data/src/main/kotlin/io/airbyte/data/services/shared/ConnectorUpdate.kt @@ -0,0 +1,18 @@ +package io.airbyte.data.services.shared + +class ConnectorUpdate( + val fromVersion: String, + val toVersion: String, + val connectorType: ConnectorType, + val connectorName: String, + val triggeredBy: String, +) : ConnectionEvent { + enum class ConnectorType { + SOURCE, + DESTINATION, + } + + override fun getEventType(): ConnectionEvent.Type { + return ConnectionEvent.Type.CONNECTOR_UPDATE + } +}