is there a way to get vCenter Events in the last 5 minutes ? #2942
-
Hi team, I'm able to get the events from the vCenter using the Event Manage(github.com/vmware/govmomi/event)r. I see that it gives the events based on the PageSize specified to Events() function. is there a way to get all the vCenter Events that happened in a given interval say last 5 minutes ? Thank you very much in advance :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Yes, see this example: https://github.com/vmware/govmomi/blob/master/examples/events/main.go#L51-L59 You can also use this convenience library I built: https://pkg.go.dev/github.com/embano1/[email protected]/event#WithTime |
Beta Was this translation helpful? Give feedback.
Yes, see this example: https://github.com/vmware/govmomi/blob/master/examples/events/main.go#L51-L59
You can also use this convenience library I built: https://pkg.go.dev/github.com/embano1/[email protected]/event#WithTime