Prehľad
Nástroje obsahu
%HI_OpenLogDBByMask( INT in refId, TEXT in mask, TEXT in skupinaMask, INT in priorityMask, BOOL in bASC, INT in pageLen, INT in intervalType [, HBJ in refToLG1, ...] )
%HI_OpenLogDBByMask( INT in refId, TEXT in mask, TEXT in skupinaMask, INT in priorityMask, BOOL in bASC, INT in pageLen, TIME in bt, TIME in et [, HBJ in refToLG1....] )
refId
Reference to displayer of Logging type.
mask
Mask (in the dialog box System logging - settings).
groupMask
Filter for events source.
priorityMask
Event type filter.
bASC
Order:
- @TRUE - ascending
- @FALSE - descending
pageLen
Page size within the interval of 5 ... 200.
intervalType
Time interval for browsing events. Possible values:
- 1 - last hour
- 8 - last 8 hours
- 12 - last 12 hours
- 24 - last 24 hours
bt
Beginning time (when you define other time interval than the
intervals defined by the parameter intervalType).
et
End time (when you define other time interval than the
intervals defined by the parameter intervalType).
refToLG1, ...
References to logical groups.
The function parameters copy the behaviour of corresponding dialog box for opening the log database when you browse events for the objects matching given mask.
The parameter groupMask represents the filter for events source. It must be other than 0 and must be the sum of the values of the predefined variables _LOG_PRTY_*.
The parameter priorityMask represents the filter for Event type. It must be other than 0 and must be the sum of the values of the predefined variables _LOG_PRTY_*.
The parameter intervalType is INT type and allows to
define the time interval for browsing events.
To define other time interval use the parameters bt and et
of Absolute time type.
Objects matching the selection condition mask can be further filtrated by their membership in logical groups using the optional parameters refLG1, refLG2, ....
%HI_SetLogDBByMask(_displayer, "*s*", _LOGF_LOGONLOGOFF, _LOG_PRTY_INFO, @TRUE, 20, 8, AI_1_KB03\HBJ)
The rules for elements which represent the filter conditions:
<?xml version="1.0" encoding="utf-8" ?>
<ROOT>
<name strict="on">!TF2\.<\name>
<descript strict="off">SystemD2000*<\descript>
<oldvalue strict="off">Run<\oldvalue>
<\ROOT>
may be assembled according to this example.
Pridať komentár