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

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

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

import scala.concurrent.Future

/** Basic unit for declaring a metric to check
  *
  * @param id      The identifier
  * @param title   The title of the check
  * @param apply   A function when called, should return a future of target value
  * @param display A function that takes a checked value and a [[com.criteo.slab.core.Context Context]]
  * @tparam T The type of values to be checked
  */
case class Check[T](
                     id: String,
                     title: String,
                     apply: () => Future[T],
                     display: (T, Context) => View
                   )




© 2015 - 2024 Weber Informatics LLC | Privacy Policy