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