# \WorkerApi
All URIs are relative to */api*
[**exists_workers_with_tags**](WorkerApi.md#exists_workers_with_tags) | **GET** /workers/exists_workers_with_tags | exists workers with tags
[**ge_default_tags**](WorkerApi.md#ge_default_tags) | **GET** /workers/get_default_tags | get all instance default tags
[**get_counts_of_jobs_waiting_per_tag**](WorkerApi.md#get_counts_of_jobs_waiting_per_tag) | **GET** /workers/queue_counts | get counts of jobs waiting for an executor per tag
[**get_counts_of_running_jobs_per_tag**](WorkerApi.md#get_counts_of_running_jobs_per_tag) | **GET** /workers/queue_running_counts | get counts of currently running jobs per tag
[**get_custom_tags**](WorkerApi.md#get_custom_tags) | **GET** /workers/custom_tags | get all instance custom tags (tags are used to dispatch jobs to different worker groups)
[**get_custom_tags_for_workspace**](WorkerApi.md#get_custom_tags_for_workspace) | **GET** /w/{workspace}/workers/custom_tags | get custom tags available for this workspace
[**get_queue_metrics**](WorkerApi.md#get_queue_metrics) | **GET** /workers/queue_metrics | get queue metrics
[**is_default_tags_per_workspace**](WorkerApi.md#is_default_tags_per_workspace) | **GET** /workers/is_default_tags_per_workspace | is default tags per workspace
[**list_workers**](WorkerApi.md#list_workers) | **GET** /workers/list | list workers
## exists_workers_with_tags
> std::collections::HashMap<String, bool> exists_workers_with_tags(tags, workspace)
exists workers with tags
### Parameters
**tags** | **String** | comma separated list of tags | [required] |
**workspace** | Option<**String**> | workspace to filter tags visibility (required when TAGS_ARE_SENSITIVE is enabled for non-superadmins) | |
### Return type
**std::collections::HashMap<String, bool>**
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## ge_default_tags
> Vec<String> ge_default_tags()
get all instance default tags
### Parameters
This endpoint does not need any parameter.
### Return type
**Vec<String>**
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## get_counts_of_jobs_waiting_per_tag
> std::collections::HashMap<String, i32> get_counts_of_jobs_waiting_per_tag()
get counts of jobs waiting for an executor per tag
### Parameters
This endpoint does not need any parameter.
### Return type
**std::collections::HashMap<String, i32>**
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## get_counts_of_running_jobs_per_tag
> std::collections::HashMap<String, i32> get_counts_of_running_jobs_per_tag()
get counts of currently running jobs per tag
### Parameters
This endpoint does not need any parameter.
### Return type
**std::collections::HashMap<String, i32>**
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## get_custom_tags
> Vec<String> get_custom_tags(show_workspace_restriction)
get all instance custom tags (tags are used to dispatch jobs to different worker groups)
### Parameters
**show_workspace_restriction** | Option<**bool**> | | |
### Return type
**Vec<String>**
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## get_custom_tags_for_workspace
> Vec<String> get_custom_tags_for_workspace(workspace)
get custom tags available for this workspace
### Parameters
**workspace** | **String** | | [required] |
### Return type
**Vec<String>**
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## get_queue_metrics
> Vec<models::GetQueueMetrics200ResponseInner> get_queue_metrics()
get queue metrics
### Parameters
This endpoint does not need any parameter.
### Return type
[**Vec<models::GetQueueMetrics200ResponseInner>**](getQueueMetrics_200_response_inner.md)
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## is_default_tags_per_workspace
> bool is_default_tags_per_workspace()
is default tags per workspace
### Parameters
This endpoint does not need any parameter.
### Return type
**bool**
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## list_workers
> Vec<models::WorkerPing> list_workers(page, per_page, ping_since)
list workers
### Parameters
**page** | Option<**i32**> | which page to return (start at 1, default 1) | |
**per_page** | Option<**i32**> | number of items to return for a given page (default 30, max 100) | |
**ping_since** | Option<**i32**> | number of seconds the worker must have had a last ping more recent of (default to 300) | |
### Return type
[**Vec<models::WorkerPing>**](WorkerPing.md)
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)