1PMIUNITS(3) Library Functions Manual PMIUNITS(3)
2
3
4
6 pmiUnits, pmiID, pmiInDom - construct core metric data structures
7
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
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
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
39 LOGIMPORT(3), pmiAddMetric(3), pmiAddInstance(3) and pmLookupDesc(3).
40
41
42
43Performance Co-Pilot PCP PMIUNITS(3)