summaryrefslogtreecommitdiff
path: root/man/man3/pmiputvalue.3
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-10-26 12:33:50 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-10-26 12:33:50 +0400
commit47e6e7c84f008a53061e661f31ae96629bc694ef (patch)
tree648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /man/man3/pmiputvalue.3
downloadpcp-debian/3.9.10.tar.gz
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'man/man3/pmiputvalue.3')
-rw-r--r--man/man3/pmiputvalue.395
1 files changed, 95 insertions, 0 deletions
diff --git a/man/man3/pmiputvalue.3 b/man/man3/pmiputvalue.3
new file mode 100644
index 0000000..4ab41f6
--- /dev/null
+++ b/man/man3/pmiputvalue.3
@@ -0,0 +1,95 @@
+'\"macro stdmacro
+.\"
+.\" Copyright (c) 2010 Ken McDonell. All Rights Reserved.
+.\"
+.\" This program is free software; you can redistribute it and/or modify it
+.\" under the terms of the GNU General Public License as published by the
+.\" Free Software Foundation; either version 2 of the License, or (at your
+.\" option) any later version.
+.\"
+.\" This program is distributed in the hope that it will be useful, but
+.\" WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+.\" or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+.\" for more details.
+.\"
+.\"
+.TH PMIPUTVALUE 3 "" "Performance Co-Pilot"
+.SH NAME
+\f3pmiPutValue\f1 \- add a value for a metric-instance pair
+.SH "C SYNOPSIS"
+.ft 3
+#include <pcp/pmapi.h>
+.br
+#include <pcp/impl.h>
+.br
+#include <pcp/import.h>
+.sp
+.ad l
+.hy 0
+.in +8n
+.ti -8n
+int pmiPutValue(const char *\fIname\fP, const char *\fIinstance\fP, const\ char\ *\fIvalue\fP);
+.sp
+.in
+.hy
+.ad
+cc ... \-lpcp_import \-lpcp
+.ft 1
+.SH "Perl SYNOPSIS"
+.ft 3
+use PCP::LogImport;
+.sp
+pmiPutValue($\fIname\fP, $\fIinstance\fP, $\fIvalue\fP);
+.ft 1
+.SH DESCRIPTION
+As part of the Performance Co-Pilot Log Import API (see
+.BR LOGIMPORT (3)),
+.B pmiPutValue
+adds a single value to the current output record for a given
+metric and instance.
+.PP
+The metric's
+.I name
+should match one defined earlier in a call to
+.BR pmiAddMetric (3).
+.PP
+For singular metrics (those defined with an instance domain of
+.BR PM_INDOM_NULL ),
+the
+.I instance
+should be NULL or an empty string, otherwise
+.I instance
+should match the name of an instance defined earlier in a call
+to
+.BR pmiAddInstance (3)
+for the metric's instance domain.
+.PP
+The
+.I value
+should be in a format consistent with the metric's type as
+defined in the call to
+.BR pmiAddMetric (3).
+.PP
+No data will be written until
+.BR pmiWrite (3)
+is called, so multiple calls to
+.B pmiPutValue
+or
+.BR pmiPutValueHandle (3)
+are typically used to accumulate data values for several
+metric-instance pairs before calling
+.BR pmiWrite (3).
+.SH DIAGNOSTICS
+.B pmiPutValue
+returns zero on success else a negative value that can be turned into an
+error message by calling
+.BR pmiErrStr (3).
+.SH SEE ALSO
+.BR LOGIMPORT (3),
+.BR pmiAddInstance (3),
+.BR pmiAddMetric (3),
+.BR pmiErrStr (3),
+.BR pmiPutResult (3),
+.BR pmiPutValueHandle (3)
+and
+.BR pmiWrite (3).