$type = $session->getEventType( $class, $event );
Given a class and event name, the getEventType() function returns a string that describes the type of the event. The possible strings returned are described in Event types.
Event type literal |
Description |
---|---|
EVENT |
Event |
AGGREGATION |
Aggregation |
SYMPTOM |
Symptom |
PROBLEM |
Problem |
UNKNOWN |
Error indication |
Example:
$type = $session->getEventType( "Router", "Down" );
To obtain the low-level numeric type codes, instead of descriptive strings, use the getEventType() primitive, as shown.
$type = $session->primitive( "getEventType", "Router", "Down" );