a Æ*NaŒ ã@s>ddlmZddlmZddlmZdgZGdd„deƒZdS)é)Úcli)Ú exceptions)Ú RESTManagerÚSidekiqManagerc@sˆeZdZdZe d¡e ej¡dd„ƒƒZ e d¡e ej¡dd„ƒƒZ e d¡e ej¡dd„ƒƒZ e d¡e ej¡dd „ƒƒZ d S) rz•Manager for the Sidekiq methods. This manager doesn't actually manage objects but provides helper fonction for the sidekiq metrics API. cKs|jjdi|¤ŽS)amReturn the registred queues information. Args: **kwargs: Extra options to send to the server (e.g. sudo) Raises: GitlabAuthenticationError: If authentication is not correct GitlabGetError: If the information couldn't be retrieved Returns: dict: Information about the Sidekiq queues ú/sidekiq/queue_metrics)r©ÚgitlabZhttp_get©ÚselfÚkwargs©r út/private/var/folders/js/6pj4vh5d4zd0k6bxv74qrbhr0000gr/T/pip-target-22xwyzbs/lib/python/gitlab/v4/objects/sidekiq.pyÚ queue_metricsszSidekiqManager.queue_metricscKs|jjdi|¤ŽS)asReturn the registred sidekiq workers. Args: **kwargs: Extra options to send to the server (e.g. sudo) Raises: GitlabAuthenticationError: If authentication is not correct GitlabGetError: If the information couldn't be retrieved Returns: dict: Information about the register Sidekiq worker ú/sidekiq/process_metrics)rrr r r r Úprocess_metrics"szSidekiqManager.process_metricscKs|jjdi|¤ŽS)awReturn statistics about the jobs performed. Args: **kwargs: Extra options to send to the server (e.g. sudo) Raises: GitlabAuthenticationError: If authentication is not correct GitlabGetError: If the information couldn't be retrieved Returns: dict: Statistics about the Sidekiq jobs performed ú/sidekiq/job_stats)rrr r r r Ú job_stats3szSidekiqManager.job_statscKs|jjdi|¤ŽS)ayReturn all available metrics and statistics. Args: **kwargs: Extra options to send to the server (e.g. sudo) Raises: GitlabAuthenticationError: If authentication is not correct GitlabGetError: If the information couldn't be retrieved Returns: dict: All available Sidekiq metrics and statistics ú/sidekiq/compound_metrics)rrr r r r Úcompound_metricsDszSidekiqManager.compound_metricsN) Ú__name__Ú __module__Ú __qualname__Ú__doc__rZregister_custom_actionÚexcZ on_http_errorZGitlabGetErrorrrrrr r r r r s       N)rrrrZ gitlab.baserÚ__all__rr r r r Ús   ÿ