Cognite JavaScript SDK > Datapoints

Class: Datapoints

Hierarchy

Datapoints

Index

Methods


Methods

<Static> delete

delete(timeseriesName: string, timestamp: number): Promise<void>

Defined in Datapoints.ts:190

Parameters:

Name Type
timeseriesName string
timestamp number

Returns: Promise<void>


<Static> deleteRange

deleteRange(timeseriesName: string, timestampInclusiveBegin: number, timestampExclusiveEnd: number): Promise<void>

Defined in Datapoints.ts:201

Parameters:

Name Type
timeseriesName string
timestampInclusiveBegin number
timestampExclusiveEnd number

Returns: Promise<void>


<Static> insert

insert(timeseriesId: number, datapoints: Datapoint[]): Promise<void>

Defined in Datapoints.ts:97

Parameters:

Name Type
timeseriesId number
datapoints Datapoint[]

Returns: Promise<void>


<Static> insertByName

insertByName(timeseriesName: string, datapoints: Datapoint[]): Promise<void>

Defined in Datapoints.ts:109

Parameters:

Name Type
timeseriesName string
datapoints Datapoint[]

Returns: Promise<void>


<Static> insertMultiple

insertMultiple(datapoints: DataDatapoints[]): Promise<void>

Defined in Datapoints.ts:121

Parameters:

Name Type
datapoints DataDatapoints[]

Returns: Promise<void>


<Static> retrieve

retrieve(timeseriesId: number, params?: DatapointsRetrieveParams): Promise<DataDatapoints>

Defined in Datapoints.ts:132

Parameters:

Name Type
timeseriesId number
Optional params DatapointsRetrieveParams

Returns: Promise<DataDatapoints>


<Static> retrieveByName

retrieveByName(timeseriesName: string, params?: DatapointsRetrieveParams): Promise<DataDatapoints>

Defined in Datapoints.ts:143

Parameters:

Name Type
timeseriesName string
Optional params DatapointsRetrieveParams

Returns: Promise<DataDatapoints>


<Static> retrieveCSV

retrieveCSV(query: DatapointsFrameMultiQuery): Promise<string>

Defined in Datapoints.ts:179

Parameters:

Name Type
query DatapointsFrameMultiQuery

Returns: Promise<string>


<Static> retrieveLatest

retrieveLatest(timeseriesName: string, before?: * undefined | number*): Promise< undefined | Datapoint>

Defined in Datapoints.ts:165

Parameters:

Name Type
timeseriesName string
Optional before undefined | number

Returns: Promise< undefined | Datapoint>


<Static> retrieveMultiple

retrieveMultiple(query: DatapointsMultiQuery): Promise<DataDatapoints[]>

Defined in Datapoints.ts:154

Parameters:

Name Type
query DatapointsMultiQuery

Returns: Promise<DataDatapoints[]>