Metric

In package com.cdsap.talaiot.metrics.base

class com.cdsap.talaiot.metrics.base.Metric

A generic metric representation

Each metric has a return type T and a Context which is used to calculate the metric value

Fields

provider: (Context)->T
assigner: (ExecutionReport, T)->Unit

Constructors

constructor(provider: (Context)->T, assigner: (ExecutionReport, T)->Unit)

A generic metric representation

Each metric has a return type T and a Context which is used to calculate the metric value

Parameters:

Methods

open fun get(context: Context, report: ExecutionReport)
Parameters: