ServerService
Wrapping object for Server Services.
Carries data like id, name, history, ...
Methods:
Methods
getConfiguration
getConfiguration():
ServiceConfiguration
Returns
ServiceConfigurationgetHistory
getHistory():
Event[]
Get the history of events published by this ServerService.
Returns
Event[]Sorted Array of Events with newest entry at index = 0.
getLastEvent
getLastEvent():
Event
Get the newest published Service Event.
Can be used to examine the current state.
Returns
EventSorted Array of Events with newest entry at index = 0.
Example
services["ServerManager"].getLastEvent().getState()
getServiceId
getServiceId():
string
Returns
stringgetServiceName
getServiceName():
string
Returns
stringgetServiceType
getServiceType():
string
Returns
stringExample
getServiceId(), getServiceName(), getServiceType(), getLastEvent(), getHistory()