centos man page for pmiputresult

Query: pmiputresult

OS: centos

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

PMIPUTRESULT(3) 					     Library Functions Manual						   PMIPUTRESULT(3)

NAME
pmiPutResult - add a data record to a LOGIMPORT archive
C SYNOPSIS
#include <pcp/pmapi.h> #include <pcp/impl.h> #include <pcp/import.h> int pmiPutResult(const pmResult *result); cc ... -lpcp_import -lpcp
DESCRIPTION
As part of the Performance Co-Pilot Log Import API (see LOGIMPORT(3)), pmiPutResult provides an interface for developers familiar with the internal PCP data structures to create output archives directly. By building the pmResult data structure directly, then calling pmiPutResult the developer avoids calls to pmiPutValue(3) and/or pmiPutVal- ueHandle(3) followed by a call to pmiWrite(3) for each record written to the archive. Any metrics and instances appearing in the result must have been defined by prior calls to pmiAddMetric(3) and pmiAddInstance(3). pmiPutResult will arrange for any new metadata (metrics and/or instance domain changes) covered by result to be also written to the PCP ar- chive. Because of the complexity of the pmResult data structure, this routine is not available in the Perl interface to the LOGIMPORT services.
DIAGNOSTICS
pmiPutResult returns zero on success else a negative value that can be turned into an error message by calling pmiErrStr(3).
SEE ALSO
LOGIMPORT(3), PMAPI(3), pmiAddInstance(3), pmiAddMetric(3), pmiErrStr(3), pmiPutValue(3), pmiPutValueHandle(3), pmiSetTimezone(3) and pmi- Write(3). Performance Co-Pilot PMIPUTRESULT(3)
Related Man Pages
pcp(1) - centos
pcp.conf(5) - centos
pmgetarchiveend(3) - centos
pmgetcontexthostname(3) - centos
pmiaddmetric(3) - centos
Similar Topics in the Unix Linux Community
Set hard block limit for user using quota
Best performance UNIX just for HOST Virtualization?
CentOS7 restoring file capabilities
Unsure why access time on a directory change isn't changing
Please Welcome Dave Munro to the Moderator Team!