U
    d                     @   s:  d dl Z d dlmZ d dlmZ d dlmZ dZeddded	 ed
dded	 eddded	 eddde	d	 edde
dd eddedd ededddd ededdd ededd d ed!edd"d ed#ed$d%d ed&ed'd(d ed)ed*d+d ed,e	dd-d ed.ed d/d ed0edd1d ed2edd3d ed4edd5d ed6edd7d ed8e	dd9d ed:dd;e	d	 ed<ded=d ed>edd?d ed@edAdB edCe	ddDd edEe jddFd edGe	ddHd edIedJdKd edLdMdNdB edOedPdQ edRe
ejddSd edTddUe	d	 eZdS )V    N)	Histogram)define)optionszflowerconfig.pyporti  zrun on the given port)defaulthelptypeaddress zrun on the given addressZunix_socketzpath to unix socket to binddebugFzrun in debug modeZinspect_timeouti  z!inspect timeout (in milliseconds))r   r   r   authz regexp of emails to grant access
basic_authTz enable http basic authentication)r   r   multipler   Z
oauth2_keyzOAuth2 key (requires --auth))r   r   r   Zoauth2_secretzOAuth2 secret (requires --auth)Zoauth2_redirect_uriz%OAuth2 redirect uri (requires --auth)max_workersi  z+maximum number of workers to keep in memoryZ	max_tasksi'  z)maximum number of tasks to keep in memorydbZflowerzflower database file
persistentzenable persistent modeZstate_save_intervalz%state save interval (in milliseconds)Z
broker_apiz;inspect broker e.g. http://guest:guest@localhost:15672/api/ca_certsz#SSL certificate authority (CA) filecertfilezSSL certificate filekeyfilezSSL key fileZxheadersz:enable support for the 'X-Real-Ip' and 'X-Scheme' headers.Zauto_refreshzrefresh dashboardsZpurge_offline_workerszGtime (in seconds) after which offline workers are purged from dashboardZcookie_secretzsecure cookie secretconfzconfiguration file)r   r   Zenable_eventsz!periodically enable Celery eventsZformat_taskzuse custom task formatterZnatural_timezshow time in relative formatZtasks_columnszBname,uuid,state,args,kwargs,result,received,started,runtime,workerz4slugs of columns on /tasks/ page, delimited by commaZauth_providerz)flower.views.auth.GoogleAuth2LoginHandlerzauth handler classZ
url_prefixzbase url prefix)r   r   Ztask_runtime_metric_bucketszhistogram latency bucket valueinspectzinspect workers)typesZprometheus_clientr   Ztornado.optionsr   r   ZDEFAULT_CONFIG_FILEintstrboolfloatFunctionTypeZDEFAULT_BUCKETSZdefault_options r   r   2/tmp/pip-unpacked-wheel-3pokl8eb/flower/options.py<module>   s       
 

 