Add duration expr to add duration formula (#1556)

* add duration expr to add duration formula
This commit is contained in:
he2ss 2022-06-22 11:29:52 +02:00 committed by GitHub
parent a6ed08b239
commit 3d6f015211
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 748 additions and 216 deletions

View file

@ -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 ""