
    9Yf	                     B    d dl mZmZ  G d de      Z G d dee      Zy)    )ActionAPIResourceSearchableAPIResourcec                   D     e Zd ZdZdZe fd       Ze fd       Z xZS )Hostz)
    A wrapper around Host HTTP API.
    hostc                 0    t        t        | 
  dd|fi |S )a  
        Mute a host.

        :param host_name: hostname
        :type host_name: string

        :param end: timestamp to end muting
        :type end: POSIX timestamp

        :param override: if true and the host is already muted, will override         existing end on the host
        :type override: bool

        :param message: message to associate with the muting of this host
        :type message: string

        :returns: Dictionary representing the API's JSON response

        POSTmutesuperr   _trigger_class_action)cls	host_namebody	__class__s      Q/var/www/highfloat_scraper/venv/lib/python3.12/site-packages/datadog/api/hosts.pyr
   z	Host.mute   s!    * T35ffiXSWXX    c                 .    t         t        |   dd|      S )z
        Unmute a host.

        :param host_name: hostname
        :type host_name: string

        :returns: Dictionary representing the API's JSON response

        r	   unmuter   )r   r   r   s     r   r   zHost.unmute%   s     T35fh	RRr   )	__name__
__module____qualname____doc___resource_nameclassmethodr
   r   __classcell__r   s   @r   r   r      s9     NY Y, 
S 
Sr   r   c                   D     e Zd ZdZdZe fd       Ze fd       Z xZS )Hostsz*
    A wrapper around Hosts HTTP API.
    hostsc                 *    t        t        | 
  di |S )aQ  
        Search among hosts live within the past 2 hours. Max 100
        results at a time.

        :param filter: query to filter search results
        :type filter: string

        :param sort_field: "status", "apps", "cpu", "iowait", or "load"
        :type sort_field: string

        :param sort_dir: "asc" or "desc"
        :type sort_dir: string

        :param start: host result to start at
        :type start: integer

        :param count: number of host results to return
        :type count: integer

        :returns: Dictionary representing the API's JSOn response

         )r   r   _search)r   paramsr   s     r   searchzHosts.search:   s    0 UC(2622r   c                 ,    t         t        |   dd      S )z}
        Get total number of hosts active and up.

        :returns: Dictionary representing the API's JSON response
        GETtotals)r   r   r   )r   r   s    r   r(   zHosts.totalsT   s     UC6uhGGr   )	r   r   r   r   r   r   r%   r(   r   r   s   @r   r   r   3   s7     N3 32 H Hr   r   N)datadog.api.resourcesr   r   r   r   r"   r   r   <module>r*      s-    K)S )SX(H4 (Hr   