All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.salmonbrain.ruleofthumb.Config.scala Maven / Gradle / Ivy

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