관리-도구
편집 파일: autotracing.cpython-37.pyc
B � d) � @ s� d Z ddlmZmZmZmZ eeddd�eedd�eddd�eed d�ed dd�eedd�edd d�eedd� �dd� dd�eddd�eedd� �dd� dd�eddd�eedd� dd�eddd�eedd� �dd� dd�ed dd�eed!d� d"d�ed#dd�eed$d� d%d�ed&d'd�eed(d� d)d�ed*d+d�eed,d� d-d�ed.d/d�eed0d� d1d�ed2d+d�eed3d� d4d�ed5d6d�eed7d� �d8d�idd9�Zd:S );zJ This module contains validation scheme for external autotracing tunables � )�Schema�And�Optional�Use�only_wpT)�defaultz6bad value of `only_wp` option, should be true or false)�error� skip_nginxz9bad value of `skip_nginx` option, should be true or false�densityz6bad value of `density` option, should be true or false�density_thresholdg�������?c C s t | �S )N)�float)�n� r �V/opt/alt/python37/lib/python3.7/site-packages/ssa/configuration/schemes/autotracing.py�<lambda> � r c C s d| k odkS S )Ng g �?r )r r r r r r zOthe value of `density_threshold` option could not be negative or greater than 1�slow_duration_thresholdi � c C s t | �S )N)r )r r r r r r c C s | dkS )Ng r )r r r r r r z@the value of `slow_duration_threshold` option should be positive�slow_duration_percentage�d c C s d| kodkS S )Nr r r )r r r r r ! r zYthe value of `slow_duration_percentage` option could not be negative or greater than 100%�max_slow_duration_thresholdi���c C s t | �S )N)r )r r r r r $ r c C s | dkS )Ng r )r r r r r % r zDthe value of `max_slow_duration_threshold` option should be positive�max_slow_duration_percentagec C s d| kodkS S )Nr r r )r r r r r ( r z]the value of `max_slow_duration_percentage` option could not be negative or greater than 100%�allowed_throttling_percentagec C s d| kodkS S )Nr r r )r r r r r + r z^the value of `allowed_throttling_percentage` option could not be negative or greater than 100%�min_retracing_interval� c C s | dkS )Nr r )r r r r r . r zIthe value of `min_retracing_interval` option should be a positive integer�request_number� c C s | dkS )Nr r )r r r r r 1 r zAthe value of `request_number` option should be a positive integer�per_domain_limit� c C s | dkS )Nr r )r r r r r 4 r zKthe value of `per_domain_limit` option could not be negative or non-integer�per_server_limitc C s | dkS )Nr r )r r r r r 7 r zKthe value of `per_server_limit` option could not be negative or non-integer� rules_versionzl.0.1.4c C s t | �S )N)�str)r r r r r : r z/the value of `rules_version` should be a string)�ignore_extra_keysN) �__doc__�schemar r r r �bool�int�tunables_schemar r r r �<module> s`