nvflare.metrics.remote_metrics_receiver module

class RemoteMetricsReceiver(events: List[str] | None = None)[source]

Bases: FLComponent

Receives metrics data from client sites and publishes it to the local data bus. :param events: A list of event that this receiver will handle. :type events: optional, List[str]

handle_event(event_type: str, fl_ctx: FLContext)[source]

Handles events.

Parameters:
  • event_type (str) – event type fired by workflow.

  • fl_ctx (FLContext) – FLContext information.