MCPcopy Index your code
hub / github.com/pathwaycom/pathway / __init__

Method __init__

python/pathway/internals/monitoring.py:187–201  ·  view source on GitHub ↗
(self, node_names: list[tuple[int, str]])

Source from the content-addressed store, hash-verified

185
186class StatsMonitor:
187 def __init__(self, node_names: list[tuple[int, str]]) -> None:
188 self.layout = Layout(name="root")
189 if len(node_names) > 0:
190 ratio = 2
191 else:
192 ratio = 1
193 self.layout.split(
194 Layout(name="monitoring", ratio=ratio),
195 Layout(name="logs"),
196 )
197 self.layout["monitoring"].update("")
198 console = ConsolePrintingToBuffer()
199 self.handler = RichHandler(console=console, show_path=False)
200 self.layout["logs"].update(LogsOutput(console))
201 self.node_names = node_names
202
203 def get_logging_handler(self) -> RichHandler:
204 return self.handler

Callers

nothing calls this directly

Calls 4

LogsOutputClass · 0.85
splitMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected