mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Fix script failures when prometheus export is enabled
This commit is contained in:
parent
9f494d6126
commit
9c39268441
4 changed files with 22 additions and 15 deletions
|
|
@ -72,6 +72,7 @@ end
|
|||
--! @note a conservative way to implement this is to return the current time.
|
||||
--! @return most recent timestamp available.
|
||||
function driver:getLatestTimestamp(ifid)
|
||||
return os.time()
|
||||
end
|
||||
|
||||
--! @brief Delete timeseries data
|
||||
|
|
@ -80,12 +81,14 @@ end
|
|||
--! @return true if operation was successful, false otherwise.
|
||||
--! @note E.g. "iface" schema_prefix matches any schema starting with "iface:". Empty prefix is allowed and matches all the schemas.
|
||||
function driver:delete(schema_prefix, tags)
|
||||
return(true)
|
||||
end
|
||||
|
||||
--! @brief Delete old data.
|
||||
--! @param ifid: the interface ID to process
|
||||
--! @return true if operation was successful, false otherwise.
|
||||
function driver:deleteOldData(ifid)
|
||||
return(true)
|
||||
end
|
||||
|
||||
--! @brief This is called when some driver configuration changes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue