Hierarchy

Methods

  • Insert data points

    Identifying time series by id or externalId is deprecated 2026-10-15 and retired 2027-12-31. Use instanceId.

    await client.timeseries.data.insert([
    { instanceId: { space: 'my-space', externalId: 'my-ts' }, datapoints: [{ timestamp: 1557320284000, value: -2 }] },
    { instanceId: { space: 'my-space', externalId: 'my-state-ts' }, datapoints: [{ timestamp: 1557320284000, numericValue: 1, stringValue: 'OPEN' }] },
    ]);

    Parameters

    Returns Promise<object>

    Time series with type state take numericValue and/or stringValue instead of value.