Details function
Details are extra elements created by a probe to display alert information that is not stored in a field of the alerts.status table. Alerts do not have detail information unless this information is added.
Detail elements are stored in the ObjectServer details table called alerts.details. To view details, double-click an alert and select Details.
You
can add information to the details table by using the details
function.
The detail information is added when an alert is inserted, but not
if it is deduplicated.
The following example adds the elements $a and $b to the alerts.details table:
details($a,$b)
The following example adds all of the alert information to the alerts.details table:
details($*)
Example: Using the details function
In this
example, the $Summary element is compared to the strings Incoming
and Backup
.
If there is no match, the @Summary field is set to the string Please
see details
, and all of the information for the alert is
added to the details table:
if (match($Summary, "Incoming"))
{
@Summary = "Received a call"
}
else if(match($Summary, "Backup"))
{
@Summary = "Attempting to back up"
}
else
{
@Summary = "Please see details"
details($*)
}