dbb420f79e
Co-authored-by: AlteredCoder Co-authored-by: erenJag
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
|
|
}
|