p2pfl.communication.commands.message.metrics_command moduleΒΆ

Metrics command.

class p2pfl.communication.commands.message.metrics_command.MetricsCommand(state)[source]ΒΆ

Bases: Command

MetricsCommand.

execute(source, round, *args, **kwargs)[source]ΒΆ

Execute the command.

Parameters:
  • source (str) – The source of the command.

  • round (int) – The round of the command.

  • *args – Metric values (pairs of key and values).

  • **kwargs – The command keyword arguments.

Return type:

None

static get_name()[source]ΒΆ

Get the command name.

Return type:

str