Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HELpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
HELpy
Commits
45454f36
Commit
45454f36
authored
1 month ago
by
Krzysztof Mochocki
Browse files
Options
Downloads
Patches
Plain Diff
Introduce app_status_probe
parent
fa4f5cb1
No related branches found
No related tags found
1 merge request
!80
Draft: Remove notifications
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
beekeepy/beekeepy/_remote_handle/app_status_probe.py
+28
-0
28 additions, 0 deletions
beekeepy/beekeepy/_remote_handle/app_status_probe.py
with
28 additions
and
0 deletions
beekeepy/beekeepy/_remote_handle/app_status_probe.py
0 → 100644
+
28
−
0
View file @
45454f36
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment