Event
Event
Event Objects
class Event()This is a base object that allows the user to create a Event.
constructor
function constructor()Arguments:
ogapi*
composeElement
function composeElement() -> '*'Returns:
*
withCommsModule
function withCommsModule(communicationsModules: *) -> 'Event'Set the powerSupply attribute
Arguments:
communicationsModules*
Returns:
Event
withCpuUsage
function withCpuUsage(cpuUsage: *) -> 'Event'Set the cpuUsage attribute
Arguments:
cpuUsage*
Returns:
Event
withCurrentTemperature
function withCurrentTemperature(currentTemperature: string) -> 'Event'Set the currentTemperature attribute
Arguments:
currentTemperaturestring - optionals field
Returns:
Event
withDateLocation
function withDateLocation(date: string) -> 'Event'Set the date attribute
Arguments:
datestring - optionals field
Returns:
Event
withDeviceId
function withDeviceId(deviceId: string) -> 'Event'Set the deviceId attribute
Arguments:
deviceIdstring - optionals field
Returns:
Event
withEventDescription
function withEventDescription(description: string) -> 'Event'Set the description attribute
Arguments:
descriptionstring - optionals field
Returns:
Event
withEventId
function withEventId(id: string) -> 'Event'Set the id attribute
Arguments:
idstring - optionals field
Returns:
Event
withEventName
function withEventName(name: string) -> 'Event'Set the name attribute
Arguments:
namestring - optionals field
Returns:
Event
withHardware
function withHardware(hardware: Hardware) -> 'Event'Set the hardware attribute
Arguments:
hardwareHardware - optionals field
Returns:
Event
withLatitude
function withLatitude(latitude: number) -> 'Event'Set the latitude attribute
Arguments:
latitudenumber - optionals field
Returns:
Event
withLongitude
function withLongitude(longitude: number) -> 'Event'Set the longitude attribute
Arguments:
longitudenumber - optionals field
Returns:
Event
withMaximumTemperature
function withMaximumTemperature(maximumTemperature: string) -> 'Event'Set the maximum attribute
Arguments:
maximumTemperaturestring - optionals field
Returns:
Event
withMinimumTemperature
function withMinimumTemperature(minimumTemperature: string) -> 'Event'Set the minimum attribute
Arguments:
minimumTemperaturestring - optionals field
Returns:
Event
withNonVolatilStorage
function withNonVolatilStorage(nonVolatilStorage: *) -> 'Event'Set the nonVolatilStorage attribute
Arguments:
nonVolatilStorage*
Returns:
Event
withOperationalStatus
function withOperationalStatus(operationalStatus: string) -> 'Event'Set the operationalStatus attribute
Arguments:
operationalStatusstring
Returns:
Event
withPath
function withPath(path: string) -> 'Event'Set the path attribute
Arguments:
pathstring - optionals field
Returns:
Event
withPowerSupply
function withPowerSupply(powerSupply: *) -> 'Event'Set the powerSupply attribute
Arguments:
powerSupply*
Returns:
Event
withRam
function withRam(ram: *) -> 'Event'Set the Ram attribute
Arguments:
ram*
Returns:
Event
withSoftware
function withSoftware(software: software) -> 'Event'Set the software attribute
Arguments:
softwaresoftware - optionals field
Returns:
Event
withStatusTemperature
function withStatusTemperature(unitTemperature: string) -> 'Event'Set the unitTemperature attribute
Arguments:
unitTemperaturestring - optionals field
Returns:
Event
withTemperatureAverage
function withTemperatureAverage(averageTemperature: string) -> 'Event'Set the average attribute
Arguments:
averageTemperaturestring - optionals field
Returns:
Event
withTrendTemperature
function withTrendTemperature(unitTemperature: string) -> 'Event'Set the unitTemperature attribute
Arguments:
unitTemperaturestring - optionals field
Returns:
Event
withUnitTemperature
function withUnitTemperature(unitTemperature: string) -> 'Event'Set the unitTemperature attribute
Arguments:
unitTemperaturestring - optionals field
Returns:
Event
withUpTime
function withUpTime(upTime: number) -> 'Event'Set the upTime attribute
Arguments:
upTimenumber
Returns:
Event
withVolatilStorage
function withVolatilStorage(volatilStorage: *) -> 'Event'Set the volatilStorage attribute
Arguments:
volatilStorage*
Returns:
Event