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:
percentagestring - optionals field
Returns:
PowerSupply
withBatteryChargeLevelStatus
function withBatteryChargeLevelStatus(status: string) -> 'PowerSupply'Set the battery status attribute
Arguments:
statusstring - optionals field
Returns:
PowerSupply
withBatteryChargeLevelTrend
function withBatteryChargeLevelTrend(trend: string) -> 'PowerSupply'Set the trend attribute
Arguments:
trendstring - optionals field
Returns:
PowerSupply
withOutageDate
function withOutageDate(outageDate: string) -> 'PowerSupply'Set the OutageDate attribute
Arguments:
outageDatestring - optionals field
Returns:
PowerSupply
withOutageDuration
function withOutageDuration(duration: number) -> 'PowerSupply'Set the duration attribute
Arguments:
durationnumber - optionals field
Returns:
PowerSupply
withSource
function withSource(source: string) -> 'PowerSupply'Set the source attribute
Arguments:
sourcestring - optionals field
Returns:
PowerSupply
withStatus
function withStatus(status: string) -> 'PowerSupply'Set the status attribute
Arguments:
statusstring - optionals field
Returns:
PowerSupply