pmiUnits(3) — Linux manual page


PMIUNITS(3)               Library Functions Manual               PMIUNITS(3)

NAME         top

       pmiUnits, pmiID, pmiInDom - construct core metric data structures

C SYNOPSIS         top

       #include <pcp/pmapi.h>
       #include <pcp/import.h>

       pmID pmiID(int domain, int cluster, int item);
       pmInDom pmiInDom(int domain, int serial);
       pmUnits pmiUnits(int dimSpace, int dimTime, int dimCount,
               int scaleSpace, int scaleTime, int scaleCount);

       cc ... -lpcp_import -lpcp

Perl SYNOPSIS         top

       use PCP::LogImport;

       $pmid = pmiID($domain, $cluster, $item);
       $indom = pmiInDom($domain, $serial);
       $units = pmiUnits($dimSpace, $dimTime, $dimCount, $scaleSpace,
               $scaleTime, $scaleCount);

DESCRIPTION         top

       As part of the Performance Co-Pilot Log Import API (see
       LOGIMPORT(3)), these routines provide convenience methods (especially
       for script use) for constructing pmID, pmInDom and pmUnits structures
       respectively, to be used in subsequent calls to pmiAddMetric(3) and

       Refer to pmLookupDesc(3) for a complete description of the values and
       semantics of the components of a pmUnits structure, and hence the
       valid argument values for pmiUnits.

DIAGNOSTICS         top


SEE ALSO         top

       LOGIMPORT(3), pmiAddMetric(3), pmiAddInstance(3) and pmLookupDesc(3).

COLOPHON         top

       This page is part of the PCP (Performance Co-Pilot) project.
       Information about the project can be found at ⟨⟩.
       If you have a bug report for this manual page, send it to  This page was obtained from the project's upstream
       Git repository ⟨⟩ on
       2020-09-18.  (At that time, the date of the most recent commit that
       was found in the repository was 2020-09-18.)  If you discover any
       rendering problems in this HTML version of the page, or you believe
       there is a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to

Performance Co-Pilot                 PCP                         PMIUNITS(3)

Pages that refer to this page: sheet2pcp(1)pmiaddmetric(3)pmiAddMetric(3)