-
Notifications
You must be signed in to change notification settings - Fork 891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doubt on setting the PageSize in Events function. #1725
Comments
You'll get the updates, but can't go back in history. However, you can use HistoryCollector for that: There are wrappers in the govmomi 'event' package. The Events() method has the advantage of also working directly against ESX, but HistoryCollector is vCenter only. As for the page size, it's mainly tuning for memory use and network transfer. |
We need some examples for EventHistoryCollector, but there's a test that'll do for the moment: govmomi/simulator/event_manager_test.go Line 160 in deff37c
|
I was thinking ReadNextEvents would block until there were more events, but looks like that's not the case. Sorry for the confusion, the Events() method actually does use EventHistoryCollector: Line 61 in deff37c
It must have been TaskHistoryCollector that is vCenter only. |
This issue is stale because it has been open for 90 days with no |
In the upcoming release, this method will be marked deprecated (see #1775) |
This issue is stale because it has been open for 90 days with no |
Hi,
func (m Manager) Events(ctx context.Context, objects []types.ManagedObjectReference, pageSize int32, tail bool, force bool, f func(types.ManagedObjectReference, []types.BaseEvent) error, kind ...string) error {
What is the pageSize generally preferred? And, suppose if I set it to 25 and from vCenter I receive 35 events, is there a way to fetch the older events than those 25 events...the previous 10 events to these 25 events?
The text was updated successfully, but these errors were encountered: