Skip to content
Snippets Groups Projects
Commit 45454f36 authored by Krzysztof Mochocki's avatar Krzysztof Mochocki
Browse files

Introduce app_status_probe

parent fa4f5cb1
No related branches found
No related tags found
1 merge request!80Draft: Remove notifications
from __future__ import annotations
from typing import TYPE_CHECKING
from beekeepy._apis import AppStatusProbeSyncApiCollection
from beekeepy._remote_handle.abc.handle import AbstractSyncHandle
from beekeepy._remote_handle.settings import RemoteHandleSettings
if TYPE_CHECKING:
from beekeepy._apis import SyncAppStatusApi
from beekeepy._remote_handle.abc.batch_handle import SyncBatchHandle
class AppStatusProbe(AbstractSyncHandle[RemoteHandleSettings, AppStatusProbeSyncApiCollection]):
"""Synchronous handle for probing."""
def _construct_api(self) -> AppStatusProbeSyncApiCollection:
return AppStatusProbeSyncApiCollection(owner=self)
@property
def api(self) -> SyncAppStatusApi: # type: ignore[override]
return self.apis.app_status
def _target_service(self) -> str:
return "app_status_probe"
def batch(self, *, delay_error_on_data_access: bool = False) -> SyncBatchHandle[AppStatusProbeSyncApiCollection]:
raise NotImplementedError
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment