1PMIUNITS(3)                Library Functions Manual                PMIUNITS(3)
2
3
4

NAME

6       pmiUnits, pmiID, pmiInDom - construct core metric data structures
7

C SYNOPSIS

9       #include <pcp/pmapi.h>
10       #include <pcp/import.h>
11
12       pmID pmiID(int domain, int cluster, int item);
13       pmInDom pmiInDom(int domain, int serial);
14       pmUnits pmiUnits(int dimSpace, int dimTime, int dimCount,
15               int scaleSpace, int scaleTime, int scaleCount);
16
17       cc ... -lpcp_import -lpcp
18

Perl SYNOPSIS

20       use PCP::LogImport;
21
22       $pmid = pmiID($domain, $cluster, $item);
23       $indom = pmiInDom($domain, $serial);
24       $units = pmiUnits($dimSpace, $dimTime, $dimCount, $scaleSpace,
25               $scaleTime, $scaleCount);
26
27

DESCRIPTION

29       As  part of the Performance Co-Pilot Log Import API (see LOGIMPORT(3)),
30       these routines provide convenience methods (especially for script  use)
31       for  constructing pmID, pmInDom and pmUnits structures respectively, to
32       be used in subsequent calls to pmiAddMetric(3) and pmiAddInstance(3).
33
34       Refer to pmLookupDesc(3) for a complete description of the  values  and
35       semantics of the components of a pmUnits structure, and hence the valid
36       argument values for pmiUnits.
37

DIAGNOSTICS

39       None.
40

SEE ALSO

42       LOGIMPORT(3), pmiAddMetric(3), pmiAddInstance(3) and pmLookupDesc(3).
43
44
45
46Performance Co-Pilot                  PCP                          PMIUNITS(3)
Impressum