事件¶
事件资源的模型和管理器。
- class EventsManager(client: APIClient)[source]¶
基类:
object
事件资源的专业管理器。
初始化 EventManager 对象。
- 参数:
client – 连接到 Podman 服务。
- list(since: datetime | int | None = None, until: datetime | int | None = None, filters: dict[str, Any] | None = None, decode: bool = False) Iterator[str | dict[str, Any]] [source]¶
报告网络。
- 参数:
decode – 当为 True 时,将流解码为字典。默认值:False
filters – 包含事件的条件。
since – 获取晚于此时间的事件。
until – 获取早于此时间的事件。
- 生成:
当 decode 为 True 时,Iterator[dict[str, Any]]
当 decode 为 False 时,Iterator[str]