<commit_before>import time

from logger import logger
from perfrunner.helpers import misc
from perfrunner.helpers.remote import RemoteHelper
from perfrunner.helpers.rest import RestHelper


class Monitor(RestHelper):

    MAX_RETRY = 60
    MAX_RETRY_RECOVERY = 1200
    MAX_RETRY_TIMER_EVENT = 1200
    POLLING_INTERVAL_TIMER_EVENT = 1
    MONITORING_DELAY = 5
    POLLING_INTERVAL = 2
    POLLING_INTERVAL_INDEXING = 1
    POLLING_INTERVAL_MACHINE_UP = 10
    POLLING_INTERVAL_CBAS_SYNCING = 15
    REBALANCE_TIMEOUT = 3600 * 6
    TIMEOUT = 3600 * 12

    DISK_QUEUES = (
        'ep_queue_size',
        'ep_flusher_todo',
        'ep_diskqueue_items',
        'vb_active_queue_size',
        'vb_replica_queue_size',
    )

    DCP_QUEUES = (
        'ep_dcp_replica_items_remaining',<commit_msg>Eventing wait for timer event little longer<commit_after>import time

from logger import logger
from perfrunner.helpers import misc
from perfrunner.helpers.remote import RemoteHelper
from perfrunner.helpers.rest import RestHelper


class Monitor(RestHelper):

    MAX_RETRY = 60
    MAX_RETRY_RECOVERY = 1200
    MAX_RETRY_TIMER_EVENT = 2400
    POLLING_INTERVAL_TIMER_EVENT = 1
    MONITORING_DELAY = 5
    POLLING_INTERVAL = 2
    POLLING_INTERVAL_INDEXING = 1
    POLLING_INTERVAL_MACHINE_UP = 10
    POLLING_INTERVAL_CBAS_SYNCING = 15
    REBALANCE_TIMEOUT = 3600 * 6
    TIMEOUT = 3600 * 12

    DISK_QUEUES = (
        'ep_queue_size',
        'ep_flusher_todo',
        'ep_diskqueue_items',
        'vb_active_queue_size',
        'vb_replica_queue_size',
    )

    DCP_QUEUES = (
        'ep_dcp_replica_items_remaining',
{'fraction_non_alphanumeric': 0.05759803921568627, 'fraction_numerical': 0.03553921568627451, 'mean_word_length': 3.3546666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3195523', 'n_tokens_mistral': 654, 'n_tokens_neox': 594, 'n_words': 109}