Home Manual Reference Source Test Repository
public class | source

Timeseries

Extends:

BaseProvision → Timeseries

This is a base object that contains all you can do about Timeseries.

Constructor Summary

Public Constructor
public

Constructor

Method Summary

Public Methods
public

onlyPlan(): *

public

Name of generated column with bucket date.Required if timeBucket > 0.

public

withBucketInitColumn(bucketInitColumn: string): Timeseries

Name of generated column with bucket init date.

public

withColumns(columns: array): Timeseries

List of data that is needed for each entity.

public

withContext(context: array): Timeseries

List of data that is needed for each entity.

public

Long text to explain timeserie definition

public

Set the identifier attribute

public

withIdentifierColumn(identifierColumn: string): Datasets

Set the identifierColumn attribute

public

Name which will be unique in each organization

public

Set the organization attribute

public

Initial date to first bucket with ISO date time format.

public

Time that a row is stored to be got in searching.

public

withTimeBucket(timeBucket: integer): Timeseries

Duration of buckets in seconds.

Inherited Summary

From class BaseProvision
public

This invoke a request to OpenGate North API and the callback is managed by promises This function create a entity of provision

public

delete(body: *): Promise

This invoke a request to OpenGate North API and the callback is managed by promises This function deletes a entity of provision

public

This invoke a request to OpenGate North API and the callback is managed by promises This function updates a entity of provision

Public Constructors

public constructor(Reference: InternalOpenGateAPI) source

Constructor

Override:

BaseProvision#constructor

Params:

NameTypeAttributeDescription
Reference InternalOpenGateAPI

to the API object.

Public Methods

public onlyPlan(): * source

Return:

*

public withBucketColumn(bucketColumn: string): Timeseries source

Name of generated column with bucket date.Required if timeBucket > 0.

Params:

NameTypeAttributeDescription
bucketColumn string

pattern: ^[a-zA-Z0-9 _-]*$

Return:

Timeseries

public withBucketInitColumn(bucketInitColumn: string): Timeseries source

Name of generated column with bucket init date.

Params:

NameTypeAttributeDescription
bucketInitColumn string

pattern: ^[a-zA-Z0-9 _-]*$

Return:

Timeseries

public withColumns(columns: array): Timeseries source

List of data that is needed for each entity.

Params:

NameTypeAttributeDescription
columns array

required field

Return:

Timeseries

public withContext(context: array): Timeseries source

List of data that is needed for each entity.

Params:

NameTypeAttributeDescription
context array

Return:

Timeseries

public withDescription(description: string): Timeseries source

Long text to explain timeserie definition

Params:

NameTypeAttributeDescription
description string

Return:

Timeseries

public withIdentifier(identifier: string): Timeseries source

Set the identifier attribute

Params:

NameTypeAttributeDescription
identifier string

required field

Return:

Timeseries

public withIdentifierColumn(identifierColumn: string): Datasets source

Set the identifierColumn attribute

Params:

NameTypeAttributeDescription
identifierColumn string

required field

Return:

Datasets

public withName(name: string): Timeseries source

Name which will be unique in each organization

Params:

NameTypeAttributeDescription
name string

required field

Return:

Timeseries

public withOrganization(organization: string): Timeseries source

Set the organization attribute

Params:

NameTypeAttributeDescription
organization string

required field

Return:

Timeseries

public withOrigin(origin: string): Timeseries source

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

Params:

NameTypeAttributeDescription
origin string

Return:

Timeseries

public withRetention(retention: number): Timeseries source

Time that a row is stored to be got in searching. Default value is 1 month

Params:

NameTypeAttributeDescription
retention number

Return:

Timeseries

public withTimeBucket(timeBucket: integer): Timeseries source

Duration of buckets in seconds.

Params:

NameTypeAttributeDescription
timeBucket integer

required field

Return:

Timeseries