mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 02:16:39 +00:00
Add comments
This commit is contained in:
parent
b487946452
commit
ae912ba460
1 changed files with 20 additions and 0 deletions
|
|
@ -33,6 +33,26 @@ local CSV_SEPARATOR = "|"
|
|||
function alert_store:init(args)
|
||||
self._group_by = nil
|
||||
self._top_limit = TOP_LIMIT
|
||||
|
||||
-- Note: _where contains conditions for the where clause.
|
||||
-- Example:
|
||||
-- {
|
||||
-- -- List of items
|
||||
-- 'alert_id' = {
|
||||
-- all = {
|
||||
-- -- List of AND conditions
|
||||
-- {
|
||||
-- field = 'alert_id',
|
||||
-- op = 'eq',
|
||||
-- valie = 1,
|
||||
-- sql = 'alert_id = 1',
|
||||
-- }
|
||||
-- },
|
||||
-- any = {
|
||||
-- -- List of OR conditions
|
||||
-- }
|
||||
-- }
|
||||
-- }
|
||||
self._where = {}
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue