Timeseries
Timeseries
Timeseries Objects
class Timeseries()This is a base object that contains all you can do about Timeseries.
constructor
function constructor()Constructor
Arguments:
ReferenceInternalOpenGateAPI - to the API object.
onlyPlan
function onlyPlan() -> '*'Returns:
*
withBucketColumn
function withBucketColumn(bucketColumn: string) -> 'Timeseries'Name of generated column with bucket date.Required if timeBucket > 0.
Arguments:
bucketColumnstring - pattern: ^[a-zA-Z0-9 _-]*$
Returns:
Timeseries
withBucketInitColumn
function withBucketInitColumn(bucketInitColumn: string) -> 'Timeseries'Name of generated column with bucket init date.
Arguments:
bucketInitColumnstring - pattern: ^[a-zA-Z0-9 _-]*$
Returns:
Timeseries
withColumns
function withColumns(columns: array) -> 'Timeseries'List of data that is needed for each entity.
Arguments:
columnsarray - required field
Returns:
Timeseries
withContext
function withContext(context: array) -> 'Timeseries'List of data that is needed for each entity.
Arguments:
contextarray
Returns:
Timeseries
withDescription
function withDescription(description: string) -> 'Timeseries'Long text to explain timeserie definition
Arguments:
descriptionstring
Returns:
Timeseries
withIdentifier
function withIdentifier(identifier: string) -> 'Timeseries'Set the identifier attribute
Arguments:
identifierstring - required field
Returns:
Timeseries
withIdentifierColumn
function withIdentifierColumn(identifierColumn: string) -> 'Datasets'Set the identifierColumn attribute
Arguments:
identifierColumnstring - required field
Returns:
Datasets
withName
function withName(name: string) -> 'Timeseries'Name which will be unique in each organization
Arguments:
namestring - required field
Returns:
Timeseries
withOrganization
function withOrganization(organization: string) -> 'Timeseries'Set the organization attribute
Arguments:
organizationstring - required field
Returns:
Timeseries
withOrigin
function withOrigin(origin: string) -> '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
Arguments:
originstring
Returns:
Timeseries
withRetention
function withRetention(retention: number) -> 'Timeseries'Time that a row is stored to be got in searching. Default value is 1 month
Arguments:
retentionnumber
Returns:
Timeseries
withTimeBucket
function withTimeBucket(timeBucket: integer) -> 'Timeseries'Duration of buckets in seconds.
Arguments:
timeBucketinteger - required field
Returns:
Timeseries