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

com.iheart.thomas.bandit.ArmSpec.scala Maven / Gradle / Ivy

The newest version!
package com.iheart.thomas
package bandit

import com.iheart.thomas.abtest.model.{Group, GroupMeta, GroupSize}

case class ArmSpec(
    name: ArmName,
    initialSize: Option[GroupSize] = None,
    meta: Option[GroupMeta] = None,
    reserved: Boolean = false,
    description: Option[String] = None)

object ArmSpec {
  def fromGroup(group: Group): ArmSpec =
    ArmSpec(group.name, Some(group.size), group.meta, false, description = group.description)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy