Source: factory.core/extend.probe/ObjHookProbeMixin.py
Mixin — metrics, masking, and structured MQTT logging for webhook objects.
| Method | Signature | Description |
|---|---|---|
| record_metric | record_metric(metric_name: str, value: float = 1.0, tags: dict | None = None) -> None |
Increment or set a named metric counter. |
| get_metrics | get_metrics() -> dict |
Return a copy of all recorded metrics. |
| safe_debug | safe_debug(message: str, *args, **kwargs) -> None |
Debug log with automatic masking of sensitive dict values. |
| log_webhook_request | log_webhook_request(method: str, url: str, payload: Any, headers: dict | None, credential_source: str = '') -> None |
Publish a structured webhook request event to MQTT. |
| log_webhook_response | log_webhook_response(status_code: int, response_body: Any, duration: float, success: bool, error: str | None = None) -> None |
Publish a structured webhook response event to MQTT. |