mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
parent
5f339ab312
commit
dbb420f79e
563 changed files with 64363 additions and 10714 deletions
19
pkg/models/helpers.go
Normal file
19
pkg/models/helpers.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
package models
|
||||
|
||||
func (a *Alert) HasRemediation() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (a *Alert) GetScope() string {
|
||||
if a.Source.Scope == nil {
|
||||
return ""
|
||||
}
|
||||
return *a.Source.Scope
|
||||
}
|
||||
|
||||
func (a *Alert) GetScenario() string {
|
||||
if a.Scenario == nil {
|
||||
return ""
|
||||
}
|
||||
return *a.Scenario
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue