amber-javascript-sdk

Amber Javascript SDK

amber-javascript-sdk

AmberUserException

AmberUserException is used when an AmberClient object can't be created. (bad json, missing required fields, etc)

new AmberUserException(amber_message: any, error: any)

Extends Error

Parameters
amber_message (any)
error (any = null)

AmberHttpException

AmberHttpException is used when a an API request fails

new AmberHttpException(amber_message: any, error: any)

Extends Error

Parameters
amber_message (any)
error (any = null)

AmberClientClass

AmberClient

new AmberClientClass(licenseId: any, licenseFile: any, verify: any, cert: any, timeout: any)
Parameters
licenseId (any = 'default')
licenseFile (any = '~/.Amber.license')
verify (any = true)
cert (any = null)
timeout (any = 300)
Instance Members
listSensors()
getSensor(sensorId)
createSensor(label)
updateLabel(sensorId, label)
configureSensor(sensorId, featureCount, streamingWindowSize, samplesToBuffer, learningRateNumerator, learningRateDenominator, learningMaxClusters, learningMaxSamples, anomalyHistoryWindow, features, percentVariationOverride, anomaly_history_window)
getConfig(sensorId)
deleteSensor(sensorId)
postOutage(sensorId)
streamSensor(sensorId, csv, saveImage)
getStatus(sensorId)
pretrainSensor(sensorId, csv, autotuneConfig)
pretrainSensorXL(sensorId, csv, autotuneConfig)
getPretrainState(sensorId)
getRootCause(sensorId, clusterId, pattern)
configureFusion(sensorId, features)
streamFusion(sensorId, vector, rule)
enableLearning(sensorId, learningRateNumerator, learningRateDenominator, learningMaxClusters, learningMaxSamples)
getVersion()