feat: collection search support alerting rule search(collection name: alering_rule)
This commit is contained in:
parent
48882e67ba
commit
32ef0a140e
|
@ -5,6 +5,7 @@
|
||||||
package platform
|
package platform
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"infini.sh/console/model/alerting"
|
||||||
"infini.sh/framework/core/api/rbac/enum"
|
"infini.sh/framework/core/api/rbac/enum"
|
||||||
"infini.sh/framework/core/elastic"
|
"infini.sh/framework/core/elastic"
|
||||||
"infini.sh/framework/core/event"
|
"infini.sh/framework/core/event"
|
||||||
|
@ -83,6 +84,15 @@ func GetCollectionMetas() map[string]CollectionMeta{
|
||||||
},
|
},
|
||||||
MatchObject: &event.Activity{},
|
MatchObject: &event.Activity{},
|
||||||
},
|
},
|
||||||
|
"alerting_rule": {
|
||||||
|
Name: "alerting_rule",
|
||||||
|
RequirePermission: map[string][]string{
|
||||||
|
"read": {
|
||||||
|
enum.PermissionAlertRuleRead,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
MatchObject: &alerting.Rule{},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return collectionMetas
|
return collectionMetas
|
||||||
|
|
Loading…
Reference in New Issue