ActiveWorkersByFilterCountPoolAnalytics

toloka.client.analytics_request.ActiveWorkersByFilterCountPoolAnalytics | Source code

ActiveWorkersByFilterCountPoolAnalytics(
self,
*,
subject_id: str,
interval_hours: int
)

Counts the number of active Tolokers that match pool filters.

Active Tolokers are Tolokers who viewed and completed tasks recently.

Parameters description

ParametersTypeDescription
subject_idstr

The ID of a pool to get analytics about.

interval_hoursint

The interval in hours to take into account.

Examples:

operation = toloka_client.get_analytics(
[toloka.client.analytics_request.ActiveWorkersByFilterCountPoolAnalytics(subject_id='1084779', interval_hours=3)]
)
operation = toloka_client.wait_operation(operation)
count = operation.details['value'][0]['result']
print(count)

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