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:

  • currentTemperature string - optionals field

Returns:

  • Event

withDateLocation
function withDateLocation(date: string) -> 'Event'

Set the date attribute

Arguments:

  • date string - optionals field

Returns:

  • Event

withDeviceId
function withDeviceId(deviceId: string) -> 'Event'

Set the deviceId attribute

Arguments:

  • deviceId string - optionals field

Returns:

  • Event

withEventDescription
function withEventDescription(description: string) -> 'Event'

Set the description attribute

Arguments:

  • description string - optionals field

Returns:

  • Event

withEventId
function withEventId(id: string) -> 'Event'

Set the id attribute

Arguments:

  • id string - optionals field

Returns:

  • Event

withEventName
function withEventName(name: string) -> 'Event'

Set the name attribute

Arguments:

  • name string - optionals field

Returns:

  • Event

withHardware
function withHardware(hardware: Hardware) -> 'Event'

Set the hardware attribute

Arguments:

  • hardware Hardware - optionals field

Returns:

  • Event

withLatitude
function withLatitude(latitude: number) -> 'Event'

Set the latitude attribute

Arguments:

  • latitude number - optionals field

Returns:

  • Event

withLongitude
function withLongitude(longitude: number) -> 'Event'

Set the longitude attribute

Arguments:

  • longitude number - optionals field

Returns:

  • Event

withMaximumTemperature
function withMaximumTemperature(maximumTemperature: string) -> 'Event'

Set the maximum attribute

Arguments:

  • maximumTemperature string - optionals field

Returns:

  • Event

withMinimumTemperature
function withMinimumTemperature(minimumTemperature: string) -> 'Event'

Set the minimum attribute

Arguments:

  • minimumTemperature string - 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:

  • operationalStatus string

Returns:

  • Event

withPath
function withPath(path: string) -> 'Event'

Set the path attribute

Arguments:

  • path string - 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:

  • software software - optionals field

Returns:

  • Event

withStatusTemperature
function withStatusTemperature(unitTemperature: string) -> 'Event'

Set the unitTemperature attribute

Arguments:

  • unitTemperature string - optionals field

Returns:

  • Event

withTemperatureAverage
function withTemperatureAverage(averageTemperature: string) -> 'Event'

Set the average attribute

Arguments:

  • averageTemperature string - optionals field

Returns:

  • Event

withTrendTemperature
function withTrendTemperature(unitTemperature: string) -> 'Event'

Set the unitTemperature attribute

Arguments:

  • unitTemperature string - optionals field

Returns:

  • Event

withUnitTemperature
function withUnitTemperature(unitTemperature: string) -> 'Event'

Set the unitTemperature attribute

Arguments:

  • unitTemperature string - optionals field

Returns:

  • Event

withUpTime
function withUpTime(upTime: number) -> 'Event'

Set the upTime attribute

Arguments:

  • upTime number

Returns:

  • Event

withVolatilStorage
function withVolatilStorage(volatilStorage: *) -> 'Event'

Set the volatilStorage attribute

Arguments:

  • volatilStorage *

Returns:

  • Event