Server IP : 184.154.167.98 / Your IP : 18.191.68.112 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib64/python3.6/site-packages/pcp/__pycache__/ |
Upload File : |
3 4>�fP � @ s8 d Z ddlZddlZddlZddlmZ ddlmZmZm Z m Z mZ ddlm Z ddlmZmZmZmZmZ ddlmZmZmZmZ ee d��Zeej_eeeegej_eej_eeeeegej_eej_eeee�ee�gej_eej_eeee�ee�gej_eej_eeeeee�ee�ee�gej_eej _eegej _eej!_eegej!_eej"_eee��egej"_eej#_ee�egej#_eej$_eee��egej$_eej%_g ej%_d d � Z"dd� Z#d d� Z$dd� Z%G dd� de�Z&G dd� de�Z'G dd� de�Z(G dd� de �Z)G dd� de*�Z+G dd� de+�Z,dS )a Wrapper module for libpcp_pmda - Performace Co-Pilot Domain Agent API # # Copyright (C) 2013-2015,2017-2021 Red Hat. # # This file is part of the "pcp" module, the python interfaces for the # Performance Co-Pilot toolkit. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 2 of the License, or (at your # option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # See pmdasimple.py for an example use of this module. � N)� pmContext)�pmInDom�pmDesc�pmUnits�pmErr� pmLabelSet)�find_library)�CDLL�c_int�c_long�c_char_p�c_void_p)� addressof�byref�POINTER� StructureZpcp_pmdac C s. t t�� }tjt|�| �}|dk r*t|��|S )Nr )r r �LIBPCP_PMDA� pmdaAddLabelsr r )�label�result_p�status� r �/usr/lib64/python3.6/pmda.pyr F s r c C s t j| |�}|dk rt|��|S )Nr )r �pmdaAddLabelFlagsr )Zlabels�flagsr r r r r M s r c C s. t t�� }tjt|�| �}|dk r*t|��|S )Nr )r r r �pmdaAddNotesr r )r r r r r r r S s r c C s t j� } | dk rt| ��| S )Nr )r �pmdaGetContextr )r r r r r Z s r c @ s0 e Zd ZdZdefdefgZdd� Zdd� ZdS ) � pmdaMetricz5 Structure describing a metric definition for a PMDA �m_user�m_descc C s<