Event History Collector Get Latest Page

Event History Collector Get Latest Page

The items in the 'viewable latest page'.

As new events that match the collector's EventFilterSpec are created, they are added to this page, and the oldest events are removed from the collector to keep the size of the page to that allowed by SetCollectorPageSize.

The "oldest event" is the one with the smallest key (event ID). The events in the returned page are unordered. While initialized is false this property will remain empty and once the Collector is initialized it will be populated. While initialized is true this property is populated immediately.

Request
URI
GET
https://{vcenter-host}/sdk/vim25/{release}/EventHistoryCollector/{moId}/latestPage
COPY
Path Parameters
string
moId
Required

The unique identifier for the managed object to which the property attaches; the serialized managed object reference for a request has the form moType/moId, in this case EventHistoryCollector/{moId}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.


Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns Array of Event of type(s) application/json
[
    {
        "_typeName": "string",
        "key": 0,
        "chainId": 0,
        "createdTime": "string",
        "userName": "string",
        "datacenter": {
            "datacenter": {
                "type": "string",
                "value": "string"
            }
        },
        "computeResource": {
            "computeResource": {
                "type": "string",
                "value": "string"
            }
        },
        "host": {
            "host": {
                "type": "string",
                "value": "string"
            }
        },
        "vm": {
            "vm": {
                "type": "string",
                "value": "string"
            }
        },
        "ds": {
            "datastore": {
                "type": "string",
                "value": "string"
            }
        },
        "net": {
            "network": {
                "type": "string",
                "value": "string"
            }
        },
        "dvs": {
            "dvs": {
                "type": "string",
                "value": "string"
            }
        },
        "fullFormattedMessage": "string",
        "changeTag": "string"
    }
]