mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
Add duration expr to add duration formula (#1556)
* add duration expr to add duration formula
This commit is contained in:
parent
a6ed08b239
commit
3d6f015211
22 changed files with 748 additions and 216 deletions
|
@ -11,6 +11,13 @@ func (a *Alert) GetScope() string {
|
|||
return *a.Source.Scope
|
||||
}
|
||||
|
||||
func (a *Alert) GetValue() string {
|
||||
if a.Source.Value == nil {
|
||||
return ""
|
||||
}
|
||||
return *a.Source.Value
|
||||
}
|
||||
|
||||
func (a *Alert) GetScenario() string {
|
||||
if a.Scenario == nil {
|
||||
return ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue