API: Interface¶
이 페이지는 Fluxgate 컴포넌트의 동작을 정의하는 핵심 인터페이스를 문서화합니다. 이 인터페이스를 구현하여 자신만의 커스텀 컴포넌트(Window, Tracker, Tripper, Retry, Permit, Listener)를 생성할 수 있습니다.
fluxgate.interfaces.IWindow
¶
fluxgate.interfaces.ITracker
¶
Bases: Protocol
__call__
¶
__call__(exception: Exception) -> bool
Source code in fluxgate/interfaces.py
25 | |
__and__
¶
__and__(other: Self) -> ITracker
Source code in fluxgate/interfaces.py
27 | |
fluxgate.interfaces.ITripper
¶
Bases: Protocol
__call__
¶
__call__(
metric: Metric,
state: StateEnum,
consecutive_failures: int,
) -> bool
Source code in fluxgate/interfaces.py
35 36 37 | |
fluxgate.interfaces.IRetry
¶
Bases: Protocol
__call__
¶
__call__(changed_at: float, reopens: int) -> bool
Source code in fluxgate/interfaces.py
45 | |
fluxgate.interfaces.IPermit
¶
Bases: Protocol
__call__
¶
__call__(changed_at: float) -> bool
Source code in fluxgate/interfaces.py
49 | |