HP Operations Manager for Windows

OV_Message::GetDistinctMessageAttributes()
OV_Message::GetDistinctMessageAttributes_Trans()


sint32 GetDistinctMessageAttributes(
[in] string MessageAttribute,
[in] string WhereClause,
[in] sint32 Options,
[out] string DistinctMessageAttributes[],
[out] sint32 DistinctCount[] )

Parameters

MessageAttribute
Message attribute for which distinct values are sought.
WhereClause
Condition to restrict the search space. Example: "... where severity = critical"
Options
0 = Returns only the DistinctMessageAttributes without counting messages.

1 = Returns the DistinctMessageAttributes and counts the number of messages per distinct attribute value in DistinctCount.

DistinctMessageAttributes
Distinct values of the message attribute.
DistinctCount
For each distinct attribute value, contains the number of messages with this attribute value.

Calling Convention

These methods can be called from a WMI class or instance object.

Description

Gets the distinct values of a certain message attribute.

Return Value

Values
ValueMap
Values
0 = Succeeded
-1 = Errors Occurred

Extended Status Codes

None.