mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added remediation docs, modified function to get remediation url (#8674)
* Fixed telemetry response format, no impact on base ntopng, different endpoint * Fixed error * Added toboolean instead of string compare * Added ASN name in ASN timeseries page * Added exportes interfaces page * Exporters interfaces table config * Updated dist ref * Added remediation docs, modified function to get remediation url #8669 #8670 #8395
This commit is contained in:
parent
896315e568
commit
7ab51d5f12
8 changed files with 583 additions and 88 deletions
|
|
@ -8,16 +8,30 @@ local clock_start = os.clock()
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function flow_risk_utils.get_documentation_link(risk_id)
|
||||
function flow_risk_utils.get_documentation_link(risk_id, source)
|
||||
|
||||
local url = ""
|
||||
|
||||
if (source == "ntopng") then
|
||||
url = string.format("https://www.ntop.org/guides/ntopng/remediations/ntopng_flow_risks.html#risk-%.3u", risk_id)
|
||||
else
|
||||
url = string.format("https://www.ntop.org/guides/ntopng/remediations/ndpi_flow_risks.html#risk-%.3u", risk_id)
|
||||
end
|
||||
|
||||
local url = string.format("https://www.ntop.org/guides/nDPI/flow_risks.html#risk-%.3u", risk_id)
|
||||
local link = string.format('<a href="%s" target="_blank"><i class="fas fa-lg fa-question-circle"></i></a>', url)
|
||||
|
||||
return link
|
||||
end
|
||||
|
||||
function flow_risk_utils.get_remediation_documentation_link(risk_id)
|
||||
local url = string.format("https://www.ntop.org/guides/ntopng/remediations/flow_risks.html#risk-%.3u", risk_id)
|
||||
function flow_risk_utils.get_remediation_documentation_link(risk_id, source)
|
||||
local url = ""
|
||||
|
||||
if (source == "ntopng") then
|
||||
url = string.format("https://www.ntop.org/guides/ntopng/remediations/ntopng_flow_risks.html#risk-%.3u", risk_id)
|
||||
else
|
||||
url = string.format("https://www.ntop.org/guides/ntopng/remediations/ndpi_flow_risks.html#risk-%.3u", risk_id)
|
||||
end
|
||||
|
||||
local link = string.format('<a href="%s" target="_blank"><i class="fa-solid fa-lg fa-briefcase-medical"></i></a>', url)
|
||||
|
||||
return link
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue