Power Supply

PowerSupply

PowerSupply Objects

class PowerSupply()

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

constructor
function constructor()

composeElement
function composeElement() -> '*'

Returns:

  • *

withBatteryChargeLevelPercentage
function withBatteryChargeLevelPercentage(percentage: string) -> 'PowerSupply'

Set the BatteryChargeLevel percentage attribute

Arguments:

  • percentage string - optionals field

Returns:

  • PowerSupply

withBatteryChargeLevelStatus
function withBatteryChargeLevelStatus(status: string) -> 'PowerSupply'

Set the battery status attribute

Arguments:

  • status string - optionals field

Returns:

  • PowerSupply

withBatteryChargeLevelTrend
function withBatteryChargeLevelTrend(trend: string) -> 'PowerSupply'

Set the trend attribute

Arguments:

  • trend string - optionals field

Returns:

  • PowerSupply

withOutageDate
function withOutageDate(outageDate: string) -> 'PowerSupply'

Set the OutageDate attribute

Arguments:

  • outageDate string - optionals field

Returns:

  • PowerSupply

withOutageDuration
function withOutageDuration(duration: number) -> 'PowerSupply'

Set the duration attribute

Arguments:

  • duration number - optionals field

Returns:

  • PowerSupply

withSource
function withSource(source: string) -> 'PowerSupply'

Set the source attribute

Arguments:

  • source string - optionals field

Returns:

  • PowerSupply

withStatus
function withStatus(status: string) -> 'PowerSupply'

Set the status attribute

Arguments:

  • status string - optionals field

Returns:

  • PowerSupply