An object that updates the values of a cell range at a given interval.

Hierarchy

  • DataStream

Properties

cellRange: string

The range of cells whose values will be updated by the data stream.

Any changes to this value will be not be reflected until the data stream is restarted.

close: (() => void)

Type declaration

    • (): void
    • Closes the data stream.

      Calling start or stop on a closed data stream will result in an error being thrown.

      Throws

      ApiError if the data stream has already been closed.

      Returns void

id: string

The unique id of the data stream.

start: (() => void)

Type declaration

    • (): void
    • Starts the data stream and begins updating the values of the cells in cellRange at the period defined in updateInterval.

      Calling start again will restart the data stream, allowing any changes to cellRange or updateInterval to be reflected.

      Throws

      ApiError if the data stream has already been closed.

      Returns void

stop: (() => void)

Type declaration

    • (): void
    • Stops the data stream.

      Throws

      ApiError if the data stream has already been closed.

      Returns void

updateInterval: number

The time (in milliseconds) between updates.

Any changes to this value will be not be reflected until the data stream is restarted.

worksheetId: string

The unique id of the worksheet where this data stream was created.

Generated using TypeDoc