agent: Add IBatchableTelem
IBatchableTelem adds two methods to the ITelem interface. These methods allow a telemetry object to mange batches of telemetry entries, rather than just one.
This commit is contained in:
parent
2ec020f276
commit
f2a940a4e0
|
@ -0,0 +1,16 @@
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import abc
|
||||||
|
from typing import Iterable
|
||||||
|
|
||||||
|
from infection_monkey.telemetry.i_telem import ITelem
|
||||||
|
|
||||||
|
|
||||||
|
class IBatchableTelem(ITelem, metaclass=abc.ABCMeta):
|
||||||
|
@abc.abstractmethod
|
||||||
|
def get_telemetry_entries(self) -> Iterable:
|
||||||
|
pass
|
||||||
|
|
||||||
|
@abc.abstractmethod
|
||||||
|
def add_telemetry_to_batch(self, telemetry: IBatchableTelem):
|
||||||
|
pass
|
Loading…
Reference in New Issue