Toloka documentation


toloka.metrics.metrics.BaseMetric | Source code

    toloka_client: Optional[TolokaClient] = None,
    atoloka_client: Optional[AsyncTolokaClient] = None,
    timeout: timedelta = ...

Base class for all metrics.

Stores TolokaClient instance for this metric.

Methods Summary

Method Description
get_line_names Returns a list of metric names that can be generated by this class instance.
get_lines Gather and return metrics
set_client Sets both TolokaClient and AsyncTolokaClient for the object.