def __init__(self,
                 service_name,
                 check_options,
                 quota_options,
                 report_options,
                 timer=datetime.utcnow,
                 create_transport=_CREATE_THREAD_LOCAL_TRANSPORT):
        """

        Args:
            service_name (str): the name of the service to be controlled
            check_options (:class:`endpoints_management.control.caches.CheckOptions`):
              configures checking
            quota_options (:class:`endpoints_management.control.caches.QuotaOptions`):
              configures quota allocation
            report_options (:class:`endpoints_management.control.caches.ReportOptions`):
              configures reporting
            timer (:func[[datetime.datetime]]: used to obtain the current time.
        """
        self._check_aggregator = check_request.Aggregator(service_name,
                                                          check_options,
                                                          timer=timer)
        self._quota_aggregator = quota_request.Aggregator(service_name,
                                                          quota_options,
                                                          timer=timer)
        self._report_aggregator = report_request.Aggregator(service_name,
                                                            report_options,
                                                            timer=timer)
        self._running = False
        self._scheduler = None
        self._stopped = False
        self._timer = to_cache_timer(timer)
        self._thread = None
        self._create_transport = create_transport
        self._lock = threading.RLock()
        self._idle_timer_started_at = None
def __init__ ( self , service_name , check_options , quota_options , report_options , timer = datetime . utcnow , create_transport = _CREATE_THREAD_LOCAL_TRANSPORT ) : self . _check_aggregator = check_request . Aggregator ( service_name , check_options , timer = timer ) self . _quota_aggregator = quota_request . Aggregator ( service_name , quota_options , timer = timer ) self . _report_aggregator = report_request . Aggregator ( service_name , report_options , timer = timer ) self . _running = False self . _scheduler = None self . _stopped = False self . _timer = to_cache_timer ( timer ) self . _thread = None self . _create_transport = create_transport self . _lock = threading . RLock ( ) self . _idle_timer_started_at = None
Args:
            service_name (str): the name of the service to be controlled
            check_options (:class:`endpoints_management.control.caches.CheckOptions`):
              configures checking
            quota_options (:class:`endpoints_management.control.caches.QuotaOptions`):
              configures quota allocation
            report_options (:class:`endpoints_management.control.caches.ReportOptions`):
              configures reporting
            timer (:func[[datetime.datetime]]: used to obtain the current time.