ManagerInsights

Table of Contents

Methods

createLog(name, options, callbackopt) → {Promise}

Create a log.

Parameters:
Name Type Attributes Description
name string

Name of the log (must be lowercase, alphanumeric)

options Object
Name Type Attributes Description
label string

Displayed name

type string

Value type, can be either number or boolean

chart string <optional>

Chart type, can be either line, area, stepLine, column, spline, splineArea or scatter

units string <optional>

Units of the values, e.g. °C

decimals number <optional>

Number of decimals visible

callback function <optional>
Name Type Description
err Error
log InsightsLog
Returns:
Type:
Promise

deleteLog(log, callbackopt) → {Promise}

Delete a log.

Parameters:
Name Type Attributes Description
log InsightsLog
callback genericCallbackFunction <optional>
Returns:
Type:
Promise

getLog(name, callbackopt) → {Promise}

Get a specific log belonging to this app.

Parameters:
Name Type Attributes Description
name string

Name of the log (must be lowercase, alphanumeric)

callback function <optional>
Name Type Description
err Error
log InsightsLog
Returns:
Type:
Promise

getLogs(callbackopt) → {Promise}

Get all logs belonging to this app.

Parameters:
Name Type Attributes Description
callback function <optional>
Name Type Description
err Error
logs Array

An array of InsightsLog instances

Returns:
Type:
Promise