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

com.criteo.slab.core.View.scala Maven / Gradle / Ivy

There is a newer version: 0.4.14
Show newest version
package com.criteo.slab.core

/** A view represents the status of a given check
  *
  * @param status The status of the underlying check
  * @param message The message to show
  * @param label The label
  */
case class View(
                 status: Status,
                 message: String,
                 label: Option[String] = None
               )

object View {
  implicit object DefaultOrd extends Ordering[View] {
    override def compare(x: View, y: View): Int = x.status.level - y.status.level
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy