package ru.yandex.featurer.data

import ru.yandex.autodoc.spray.common.res.Json

/**
 * @author avhaliullin
 */
case class ContainerInfo(appId: AppId, featureId: FeatureId, state: ContainerStateEnum, ip: Option[String], name: String)

object ContainerInfo {
  implicit val renderer = Json.Object[ContainerInfo](
    "name" -> Json.field(_.name),
    "state" -> Json.field(_.state),
    "ip" -> Json.field(_.ip)
  )
}
