KCML_PerfMetric_Set

Purpose

Enable a performance metric.

Definition

DEFSUB 'KCML_PerfMetric_Set(nMetric, nPartition, sToken$ = "") AS KCML_PERFMETRIC_STATUS_ENUM

Parameters

nMetricPerformance metric
nPartitionPartition number or 0 for all sessions.
sTokenOptional. Security token with a SHA-256 signature.

Return

Returns a KCML_PERFMETRIC_STATUS_ENUM value.

Description

Set the flag to enable the collection of the specified performance metric via kmsgq.so. Requires an extended $PSTAT to be configured. See Performance Metrics: Access Control for more information on the security token parameter, sToken$.

See also

Internal KCML Functions, Internally defined structures and Internally defined enumerations and constants.