cf-node-client
momo auto_awesome BUY CLAUDE KIT WITH 20% OFF coffee BUY ME COFFEE

Class: Events

Events(endPoint, optionsopt)

Events — audit event management for Cloud Foundry. v2 uses '/v2/events', v3 uses '/v3/audit_events' (endpoint renamed). Migrated from legacy function-constructor pattern to ES6 class extending CloudControllerBase. Fixes wrong property references (this.accessToken → this.UAA_TOKEN, this.httpUtil → this.REST).

Constructor

new Events(endPoint, optionsopt)

Parameters:
Name Type Attributes Default Description
endPoint String Cloud Controller API endpoint URL
options Object <optional>
{} Options (same as CloudControllerBase)
Source:

Methods

getEvent(guid) → {Promise}

Get a single Event by GUID.
Parameters:
Name Type Description
guid String Event unique identifier
Source:
Returns:
Resolves with JSON event object
Type
Promise

getEvents(filteropt) → {Promise}

Parameters:
Name Type Attributes Description
filter Object <optional>
Query-string filter options
Source:
Returns:
Resolves with JSON events list
Type
Promise