feat(region,host): startup probe of container (#21011)

This commit is contained in:
Zexi Li
2024-08-15 10:46:39 +08:00
committed by GitHub
parent 42e210861c
commit addbcbe0d1
34 changed files with 2068 additions and 19 deletions
+5
View File
@@ -163,6 +163,11 @@ func init() {
return doComputeEventList(s, &nargs)
})
R(&TypeEventListOptions{}, "container-event", "Show operation event logs of container", func(s *mcclient.ClientSession, args *TypeEventListOptions) error {
nargs := EventListOptions{BaseEventListOptions: args.BaseEventListOptions, Id: args.ID, Type: []string{"container"}}
return doComputeEventList(s, &nargs)
})
R(&TypeEventListOptions{}, "disk-event", "Show operation event logs of disk", func(s *mcclient.ClientSession, args *TypeEventListOptions) error {
nargs := EventListOptions{BaseEventListOptions: args.BaseEventListOptions, Id: args.ID, Type: []string{"disk"}}
return doComputeEventList(s, &nargs)