logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pmiPutLabel - add labels to the output archive

C Synopsis

#include<pcp/pmapi.h>#include<pcp/import.h>intpmiPutLabel(unsignedinttype,unsignedintid,unsignedintinstance,constchar*name,constchar*value);cc...-lpcp_import-lpcp

Description

       As  part  of the Performance Co-Pilot Log Import API (see LOGIMPORT(3)), pmiPutLabel adds a label for the
       global context or for a given domain, cluster, item, instance domain or instance.

       The type must be one of PM_LABEL_CONTEXT,PM_LABEL_DOMAIN,PM_LABEL_CLUSTER,PM_LABEL_ITEM,PM_LABEL_IN‐DOM, or PM_LABEL_INSTANCES.

       If  type  is  PM_LABEL_CONTEXT,  then  id and instance are ignored.  Otherwise, id should match a domain,
       cluster, metric or instance domain defined earlier in a call to pmiAddMetric(3).

       If type is PM_LABEL_INSTANCES, then instance should match an instance number of the selected domain. Oth‐
       erwise instance is ignored.

       name is a string containing the name of the label to be added.

       value is a string containing the value of the label to be added.

       No data will be written until pmiWrite(3) is called, so multiple calls to pmiPutLabel are typically  used
       to accumulate several labels before calling pmiWrite(3).

Diagnostics

pmiPutLabel  returns  zero  on  success else a negative value that can be turned into an error message by
       calling pmiErrStr(3).

Name

pmiPutLabel - add labels to the output archive

Perl Synopsis

usePCP::LogImport;pmiPutLabel($type,$id,$instance,$name,$value);

See Also

LOGIMPORT(3), pmiAddInstance(3), pmiAddMetric(3), pmiErrStr(3), pmiPutResult(3), pmiPutValue(3),  pmiPut‐ValueHandle(3), pmiPutText(3) and pmiWrite(3).

Performance Co-Pilot                                                                              PMIPUTLABEL(3)

See Also