Admin service provides admin related APIs which includes logging APIs

interface AdminService {
    getComponentLifecycleState(
        componentId: ComponentId,
    ): Promise<SupervisorLifecycleState>;
    getContainerLifecycleState(
        prefix: Prefix,
    ): Promise<ContainerLifecycleState>;
    getLogMetadata(componentId: ComponentId): Promise<LogMetadata>;
    goOffline(componentId: ComponentId): Promise<"Done">;
    goOnline(componentId: ComponentId): Promise<"Done">;
    restart(componentId: ComponentId): Promise<"Done">;
    setLogLevel(componentId: ComponentId, level: Level): Promise<"Done">;
    shutdown(componentId: ComponentId): Promise<"Done">;
}

Methods

  • Sets the current Lifecycle state of the given component(HCD, Assembly or Container) to Offline

    Parameters

    • componentId: ComponentId

      the component id of the component which needs to be offline

    Returns Promise<"Done">

    Done as promise

  • Sets the current Lifecycle state of the given component(HCD, Assembly or Container) to Online

    Parameters

    • componentId: ComponentId

      the component id of the component which needs to be offline

    Returns Promise<"Done">

    Done as promise