Waylay

The Waylay client

Waylay
Parameters
opts (any = {})
Example
const Waylay = require('@waylay/waylay-sdk-js')
const waylay = new Waylay({ domain: 'my-domain.waylay.io' })
Instance Members
login(username, password)
ping()

Actuators

Actuators
Instance Members
execute(name, version, body)
list()
get(name, version)
create(actuator)
remove(name)

Alarms

Alarms
Instance Members
create(alarm)
get(id)
search(query)
update(id, alarm)
remove(id)
removeAll(filter)

Data

Data

Extends Resource

Parameters
options (any)
Instance Members
getSeries(resource)
postSeries(resource, message, params)
postSeries(message, params)
getMetricSeries(resource, metric, options)
getLastDatapointsForMetric(resource, metric, options)
getLastMetric(resource, metric)
getLatestDocument(resource)
remove(resource, params)

Resources

Resources
Instance Members
create(resource)
get(id, opts)
children(id, opts)
update(id, resource)
replace(id, resource)
remove(id)
search(params, opts)
executeCommand(resource, command, properties)

Sensors

Sensors
Instance Members
execute(name, version, body)
list()
get(name, version)
create(sensor)
remove(name)

Tasks

Tasks

Extends Resource

Instance Members
create(task)
update(id, task)
list(filter?, options)
remove(id)
batchRemove(taskIdList)
get(id)
start(id)
stop(id)
stopAndRemove(id)

Transformers

Transformers

Extends Resource

Instance Members
execute(name, version, body)
list()
get(name, version)
create(transformer)
remove(name)

Types

Types

Extends Resource

Instance Members
create(type)
remove(id)
update(id, type)
patch(id, data)
list(params, qs)
get(id)

Vault

Vault allows you to store encrypted data

Vault
Instance Members
set(key, data)
get(key)
remove(key)
keys()

Webscripts

Webscripts

Extends Resource

Instance Members
call(namespace, name, version, body)
list()
get(name, version)
create(webscript)
remove(name)
update(name, webscript)
log(name, version)

Analytics

Analytics allows you to calculate anomalies and predict future values of timeseries

Analytics
Instance Members
fit(resource, tsaConfig, options, useConfig, urlParams)
anomaly(resource, tsaConfig, options, useConfig, urlParams)
predict(resource, tsaConfig, options, useConfig, urlParams)
validate(resource, tsaConfig, options, useConfig, urlParams)
config(resource, config)
configs(resource)

Policies

Policies
Instance Members
list()
get(id)
create(policy)
update(id, policy)
patch(id, policy)
remove(id)

Templates

Templates

Extends Resource

Instance Members
create(template)
list(filter?, options)
get(name)
remove(id)