mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 04:15:54 +02:00
19 lines
278 B
Go
19 lines
278 B
Go
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
|
|
}
|