ai.salmonbrain.ruleofthumb.Config.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ruleofthumb_3.0.0_2.12 Show documentation
Show all versions of ruleofthumb_3.0.0_2.12 Show documentation
Apache Spark based framework for analysis A/B experiments
The newest version!
package ai.salmonbrain.ruleofthumb
import com.fasterxml.jackson.core.`type`.TypeReference
import com.fasterxml.jackson.module.scala.JsonScalaEnumeration
case class Config(
@JsonScalaEnumeration(classOf[InputTypeRef]) input: Input.Input = Input.Files,
files: Seq[String] = Seq.empty,
output: String,
postReportUrl: Option[String],
accessLog: Option[AccessLogConfig],
clickhouse: Option[ClickhouseConfig]
) {}
object Input extends Enumeration {
type Input = Value
val Files, Clickhouse = Value
}
class InputTypeRef extends TypeReference[Input.type]
case class AccessLogConfig(
metricName: String = "",
metricValue: String = "",
experimentUid: String = "",
variantId: String = ""
)
case class ClickhouseConfig(
driver: String = "com.github.housepower.jdbc.ClickHouseDriver",
url: String = "jdbc:clickhouse://127.0.0.1:9000",
user: String = "default",
password: String = "",
dbtable: String = "",
filter: String = "",
mapping: Map[String, String] = Map.empty
) {}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy