Cognite JavaScript SDK > Events

Class: Events

Hierarchy

Events

Index

Methods


Methods

<Static> create

create(events: Partial<Event>[]): Promise<Event[]>

Defined in Events.ts:77

Parameters:

Name Type
events Partial<Event>[]

Returns: Promise<Event[]>


<Static> delete

delete(eventIds: number[]): Promise<void>

Defined in Events.ts:113

Parameters:

Name Type
eventIds number[]

Returns: Promise<void>


<Static> list

list(params?: EventListParams): Promise<EventDataWithCursor>

Defined in Events.ts:121

Parameters:

Name Type
Optional params EventListParams

Returns: Promise<EventDataWithCursor>


<Static> retrieve

retrieve(eventId: number): Promise<Event>

Defined in Events.ts:88

Parameters:

Name Type
eventId number

Returns: Promise<Event>


<Static> retrieveMultiple

retrieveMultiple(eventIds: number[]): Promise<Event[]>

Defined in Events.ts:94

Parameters:

Name Type
eventIds number[]

Returns: Promise<Event[]>


search(params: EventSearchParams): Promise<EventDataWithCursor>

Defined in Events.ts:131

Parameters:

Name Type
params EventSearchParams

Returns: Promise<EventDataWithCursor>


<Static> update

update(events: Event[]): Promise<void>

Defined in Events.ts:105

Parameters:

Name Type
events Event[]

Returns: Promise<void>