event_range_query()
Return PATROL events from a specified event ID range
Syntax
Parameters
Parameter | Definition |
---|---|
maxcount | string that is the maximum number of events that will be returned in the query Specifying the NULL string" " causes maxcount to default to 100. |
delimiter | string that is used to separate each event in the list of events returned by the query*Valid Values*
|
format | format string used to present each event returned by the query The format string for the event_range_query() function is the same as the format string for the event_query() function. For details of the format specification, see event_query. Default
|
IDrange | string that is the range of PATROL event IDs eligible for this query |
Description
The event_range_query() function returns up to maxquery events from the PATROL Event Manager log whose event IDs are within the range IDrange. Each event returned is formatted according to format, and the list of events is separated usingdelimiter.
The event_range_query() function returns the NULL string if no events were found whose event IDs are within IDrange.
Example
The following is an example of the event_range_query() function:
"100", # return a maximum of 100 events
"\n------\n", # separate events by to newline characters and
dashes
# return ID, type, status, and description
"event id: %{EV_ID}\n" .
"type: %{EV_TYPE}\n" .
"status: %{EV_STATUS}\n" .
"description: %{EV_DESC}\n",
"300/1000" # only events with IDs such that 300 <= ID <= 1000
);