Skip to main content
Version: 2025.2

ServerService

Wrapping object for Server Services.

Carries data like id, name, history, ...

Methods:

Methods​

getConfiguration​

getConfiguration(): ServiceConfiguration

Returns​

ServiceConfiguration

getHistory​

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​

Event

Sorted Array of Events with newest entry at index = 0.

Example​

services["ServerManager"].getLastEvent().getState()

getServiceId​

getServiceId(): string

Returns​

string

getServiceName​

getServiceName(): string

Returns​

string

getServiceType​

getServiceType(): string

Returns​

string

Example​

getServiceId(), getServiceName(), getServiceType(), getLastEvent(), getHistory()