This is a base object that allows the user to create a Datapoint.

withBatteryChargeLevelPercentage(percentage)

Set the BatteryChargeLevel percentage attribute

Parámetros

Nombre Tipo Opcional Descripción
percentage string optionals field

Retorna

Tip

Tipo: PowerSupply


withBatteryChargeLevelStatus(status)

Set the battery status attribute

Parámetros

Nombre Tipo Opcional Descripción
status string optionals field

Retorna

Tip

Tipo: PowerSupply


withBatteryChargeLevelTrend(trend)

Set the trend attribute

Parámetros

Nombre Tipo Opcional Descripción
trend string optionals field

Retorna

Tip

Tipo: PowerSupply


withOutageDate(outageDate)

Set the OutageDate attribute

Parámetros

Nombre Tipo Opcional Descripción
outageDate string optionals field

Retorna

Tip

Tipo: PowerSupply


withOutageDuration(duration)

Set the duration attribute

Parámetros

Nombre Tipo Opcional Descripción
duration number optionals field

Retorna

Tip

Tipo: PowerSupply


withSource(source)

Set the source attribute

Parámetros

Nombre Tipo Opcional Descripción
source string optionals field

Retorna

Tip

Tipo: PowerSupply


withStatus(status)

Set the status attribute

Parámetros

Nombre Tipo Opcional Descripción
status string optionals field

Retorna

Tip

Tipo: PowerSupply