Home Manual Reference Source Test Repository
public class | source

PowerSupply

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

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public
public

Set the BatteryChargeLevel percentage attribute

public

Set the battery status attribute

public

Set the trend attribute

public

Set the OutageDate attribute

public

Set the duration attribute

public

Set the source attribute

public

Set the status attribute

Public Constructors

public constructor() source

Public Methods

public composeElement(): * source

Return:

*

public withBatteryChargeLevelPercentage(percentage: string): PowerSupply source

Set the BatteryChargeLevel percentage attribute

Params:

NameTypeAttributeDescription
percentage string

optionals field

Return:

PowerSupply

public withBatteryChargeLevelStatus(status: string): PowerSupply source

Set the battery status attribute

Params:

NameTypeAttributeDescription
status string

optionals field

Return:

PowerSupply

public withBatteryChargeLevelTrend(trend: string): PowerSupply source

Set the trend attribute

Params:

NameTypeAttributeDescription
trend string

optionals field

Return:

PowerSupply

public withOutageDate(outageDate: string): PowerSupply source

Set the OutageDate attribute

Params:

NameTypeAttributeDescription
outageDate string

optionals field

Return:

PowerSupply

public withOutageDuration(duration: number): PowerSupply source

Set the duration attribute

Params:

NameTypeAttributeDescription
duration number

optionals field

Return:

PowerSupply

public withSource(source: string): PowerSupply source

Set the source attribute

Params:

NameTypeAttributeDescription
source string

optionals field

Return:

PowerSupply

public withStatus(status: string): PowerSupply source

Set the status attribute

Params:

NameTypeAttributeDescription
status string

optionals field

Return:

PowerSupply