1PMIWRITE(3) Library Functions Manual PMIWRITE(3)
2
3
4
6 pmiWrite - flush data to a LOGIMPORT archive
7
9 #include <pcp/pmapi.h>
10 #include <pcp/import.h>
11
12 int pmiWrite(int sec, int usec);
13
14 cc ... -lpcp_import -lpcp
15
17 use PCP::LogImport;
18
19 pmiWrite($sec, $usec);
20
22 As part of the Performance Co-Pilot Log Import API (see LOGIMPORT(3)),
23 pmiWrite forces accumulated data values out to the PCP archive.
24
25 The data values and associated metadata have previously been built up
26 using calls to pmiAddMetric(3), pmiAddInstance(3), pmiPutValue(3) and
27 pmiPutValueHandle(3).
28
29 The current set of data values and any new metadata is written to the
30 archive with a timestamp of sec and usec in the source timezone of the
31 archive, see pmiSetTimezone(3).
32
34 pmiWrite returns zero on success else a negative value that can be
35 turned into an error message by calling pmiErrStr(3).
36
38 LOGIMPORT(3), pmiAddInstance(3), pmiAddMetric(3), pmiErrStr(3), pmiPutā
39 Value(3), pmiPutValueHandle(3), pmiPutText(3), pmiPutLabel(3) and
40 pmiSetTimezone(3).
41
42
43
44Performance Co-Pilot PMIWRITE(3)