3 @qhcŒ ã@s>ddlmZddlmZddlmZdgZGdd„deƒZdS)é)Úcli)Ú exceptions)Ú RESTManagerÚSidekiqManagerc@sˆeZdZdZejdƒejejƒdd„ƒƒZ ejdƒejejƒdd„ƒƒZ ejdƒejejƒdd„ƒƒZ ejdƒejejƒ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|jjd|Ž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)ÚgitlabÚhttp_get)ÚselfÚkwargs©r úX/home/ec2-user/environment/venv/lib/python3.6/dist-packages/gitlab/v4/objects/sidekiq.pyÚ queue_metricsszSidekiqManager.queue_metricscKs|jjd|Ž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)r)rr)r r r r r Úprocess_metrics"szSidekiqManager.process_metricscKs|jjd|Ž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)r)rr)r r r r r Ú job_stats3szSidekiqManager.job_statscKs|jjd|Ž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)r)rr)r r r r r Úcompound_metricsDszSidekiqManager.compound_metricsN) Ú__name__Ú __module__Ú __qualname__Ú__doc__rZregister_custom_actionÚexcZ on_http_errorZGitlabGetErrorr rrrr r r r r sN)rrrrZ gitlab.baserÚ__all__rr r r r Ús