import Datastream from 'opengate-js/src/collection/devices/collect/Datastreams.js'Datastream
This is a base object that allows the user to create a Datastream.
Constructor Summary
| Public Constructor | ||
| public |
|
|
Method Summary
| Public Methods | ||
| public |
composeElement(): * |
|
| public |
withDatapoint(datapoint: Datapoint): Datastream Add a datapoint in datapoints |
|
| public |
withFeed(feed: string): Datastream Set the feed attribute |
|
| public |
withId(id: string): Datastream Set the id attribute |
|
Public Constructors
public constructor() source
Public Methods
public withDatapoint(datapoint: Datapoint): Datastream source
Add a datapoint in datapoints
Params:
| Name | Type | Attribute | Description |
| datapoint | Datapoint | required field |
public withFeed(feed: string): Datastream source
Set the feed attribute
Params:
| Name | Type | Attribute | Description |
| feed | string | optionals field |
public withId(id: string): Datastream source
Set the id attribute
Params:
| Name | Type | Attribute | Description |
| id | string | required field |