IncomeSumForLast24Hours

toloka.client.conditions.IncomeSumForLast24Hours | Source code

IncomeSumForLast24Hours(
self,
operator: CompareOperator,
value: Optional[float] = None
)

The Toloker's earnings for completed tasks in the pool during the last 24 hours.

IncomeSumForLast24Hours is used with collectors:

Examples:

pool = toloka.client.pool.Pool()
pool.quality_control.add_action(
collector=toloka.client.collectors.Income(),
conditions=[toloka.client.conditions.IncomeSumForLast24Hours > 0.8],
action=toloka.client.actions.RestrictionV2(
scope='PROJECT', duration=1, duration_unit='DAYS',
private_comment='Earnings limit is reached',
)
)

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming