
    :j                          U d Z ddlmZmZ  G d d      Z G d d      Z G d d      Zd	Zee	d
<   dddddddZ
eeef   e	d<   y)z
Monitoring and Type Configuration Constants

This module defines constants used by the state management system,
including collector configurations, field mappings, cache settings,
and type-safe constants for the status monitoring system.
    )DictFinalc                   N    e Zd ZU dZdZee   ed<   dZee	   ed<   dZ
ee	   ed<   y)CacheConfigzCache configuration constantsg      @DEFAULT_TTLd   DEFAULT_MAX_SIZEDEFAULT_HISTORY_SIZEN)__name__
__module____qualname____doc__r   r   float__annotations__r	   intr
        :/root/.openclaw/workspace/harvester/constant/monitoring.pyr   r      s1    ' #Ku##&eCj&'*%**r   r   c                   N    e Zd ZU dZdZee   ed<   dZee	   ed<   dZ
ee   ed<   y)	AlertConfigzAlert configuration constantsr   r
        r@DEFAULT_COOLDOWN_SECONDS
   MIN_SAMPLE_SIZEN)r   r   r   r   r
   r   r   r   r   r   r   r   r   r   r   r      s1    ''*%**-2eEl2"$OU3Z$r   r   c                      e Zd ZU dZdZee   ed<   dZee   ed<   dZ	ee
   ed<   dZee
   ed	<   d
Zee
   ed<   dZee
   ed<   dZee
   ed<   dZee
   ed<   dZee
   ed<   dZee
   ed<   dZee
   ed<   dZee
   ed<   dZee
   ed<   y)DisplayConfigzDisplay configuration constants<   DEFAULT_WIDTH(   EMERGENCY_WIDTHz{title:^{width}}TITLE_CENTER_FORMATz<============================================================SEPARATOR_MAINz(========================================SEPARATOR_EMERGENCYzEmergency Status DisplayEMERGENCY_TITLEz+Status display system encountered an error.EMERGENCY_ERROR_MSGzBasic system information:EMERGENCY_INFO_HEADERzCRITICAL: Status system failureCRITICAL_FAILURE_MSGz  Monitoring: AvailableMONITORING_AVAILABLEz  Monitoring: Not availableMONITORING_NOT_AVAILABLEz  Task Provider: AvailableTASK_PROVIDER_AVAILABLEz  Task Provider: Not availableTASK_PROVIDER_NOT_AVAILABLEN)r   r   r   r   r   r   r   r   r    r!   strr"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r   r   r   r   r   !   s    ) "M5:""$OU3Z$&8s8 "*NE#J)&.s. #=OU3Z<&SsS(C5:C'H%*H (A%*@+HeCjH*FU3ZF.NsNr   r   r   COLLECTOR_CACHE_TTLg?i  i   @r   2   r   )
error_rate
queue_sizememory_usagemin_sample_sizemax_alert_historymax_stats_historyMONITORING_THRESHOLDSN)r   typingr   r   r   r   r   r-   r   r   r5   r,   r   r   r   <module>r7      sh    + +% %O O2 # U " + tCJ' r   