public int getLeaderId() {
    return leaderId;
  }
ConsensusGroupHeartbeatSample records the heartbeat sample of a consensus group.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/cache/consensus/ConsensusGroupHeartbeatSample.java