timeseries
This section covers the Timeseries class, for defining and configuring timeseries, and the Timeseries Finder class, for looking up timeseries by organization.
This section covers the Timeseries class, for defining and configuring timeseries, and the Timeseries Finder class, for looking up timeseries by organization.
This object represents a timeseries and exposes all the attributes you can configure for it.
Constructor
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ogapi | InternalOpenGateAPI |
❌ | Reference to the API object. |
Mark timeseries as plan only
Tipo: Timeseries
Request optimization plan
Tipo: Promise
Name of generated column with bucket date.Required if timeBucket > 0.
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| bucketColumn | string |
❌ | pattern: ^[a-zA-Z0-9 _-]*$ |
Tipo: Timeseries
Name of generated column with bucket init date.
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| bucketInitColumn | string |
❌ | pattern: ^[a-zA-Z0-9 _-]*$ |
Tipo: Timeseries
List of data that is needed for each entity.
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| columns | array |
❌ | required field |
Tipo: Timeseries
List of data that is needed for each entity.
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| context | array |
❌ |
Tipo: Timeseries
Long text to explain timeserie definition
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| description | string |
❌ |
Tipo: Timeseries
Set the identifier attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| identifier | string |
❌ | required field |
Tipo: Timeseries
Set the identifierColumn attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| identifierColumn | string |
❌ | required field |
Tipo: Datasets
Name which will be unique in each organization
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| name | string |
❌ | required field |
Tipo: Timeseries
Set the organization attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| organization | string |
❌ | required field |
Tipo: Timeseries
Initial date to first bucket with ISO date time format. Next bucket will be calcullated from this date. Default value is created date with time equals 00:00:00.000Z
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| origin | string |
❌ |
Tipo: Timeseries
Time that a row is stored to be got in searching. Default value is 1 month
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| retention | number |
❌ |
Tipo: Timeseries
List of sorting fields
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| sorts | array |
❌ | required field |
Tipo: Timeseries
Duration of buckets in seconds.
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| timeBucket | integer |
❌ | required field |
Tipo: Timeseries
This class performs GET requests against the timeseries resource in the OpenGate North API.
Constructor
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ogapi | InternalOpenGateAPI |
❌ | Reference to the API object. |
Performs a get that returns list of timeseries
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| organization | string |
❌ | organization |
| expand | Array |
❌ | ['columns', 'context'] |
| dataStreams | Array |
❌ | ["ds_id_1","ds_id_2"] |
Tipo: Promise
Performs a get that returns a definition of timeserie
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| organization | string |
❌ | organization |
| name | string |
❌ | timeserie name |
Tipo: Promise
Performs a get that returns a definition of timeserie
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| organization | string |
❌ | organization |
| timeserieId | string |
❌ | timeserie identifier |
Tipo: Promise