agent: Rename get_telemetry_entries() -> get_telemetry_batch()

This commit is contained in:
Mike Salvatore 2021-06-28 12:27:32 -04:00
parent 2f62a14fbf
commit 7e3eef90cb
2 changed files with 3 additions and 3 deletions

View File

@ -15,8 +15,8 @@ class BatchableTelemMixin:
return self._list
def get_telemetry_entries(self) -> Iterable:
def get_telemetry_batch(self) -> Iterable:
return self._telemetry_entries
def add_telemetry_to_batch(self, telemetry: IBatchableTelem):
self._telemetry_entries.extend(telemetry.get_telemetry_entries())
self._telemetry_entries.extend(telemetry.get_telemetry_batch())

View File

@ -8,7 +8,7 @@ from infection_monkey.telemetry.i_telem import ITelem
class IBatchableTelem(ITelem, metaclass=abc.ABCMeta):
@abc.abstractmethod
def get_telemetry_entries(self) -> Iterable:
def get_telemetry_batch(self) -> Iterable:
pass
@abc.abstractmethod