-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into pr-osparc-redirec…
…t-remain-dv2-calls-via-dynamic-scheduler
- Loading branch information
Showing
139 changed files
with
6,034 additions
and
4,466 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 25 additions & 15 deletions
40
packages/models-library/src/models_library/app_diagnostics.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,38 @@ | ||
from typing import Any | ||
from typing import Annotated, Any | ||
|
||
from common_library.basic_types import DEFAULT_FACTORY | ||
from pydantic import AnyUrl, BaseModel, Field | ||
|
||
|
||
class AppStatusCheck(BaseModel): | ||
app_name: str = Field(..., description="Application name") | ||
version: str = Field(..., description="Application's version") | ||
services: dict[str, Any] = Field( | ||
default_factory=dict, | ||
description="Other backend services connected from this service", | ||
json_schema_extra={"default": {}}, | ||
) | ||
services: Annotated[ | ||
dict[str, Any], | ||
Field( | ||
default_factory=dict, | ||
description="Other backend services connected from this service", | ||
json_schema_extra={"default": {}}, | ||
), | ||
] = DEFAULT_FACTORY | ||
|
||
sessions: dict[str, Any] | None = Field( | ||
default_factory=dict, | ||
description="Client sessions info. If single session per app, then is denoted as main", | ||
json_schema_extra={"default": {}}, | ||
) | ||
sessions: Annotated[ | ||
dict[str, Any] | None, | ||
Field( | ||
default_factory=dict, | ||
description="Client sessions info. If single session per app, then is denoted as main", | ||
json_schema_extra={"default": {}}, | ||
), | ||
] = DEFAULT_FACTORY | ||
|
||
url: AnyUrl | None = Field( | ||
default=None, | ||
description="Link to current resource", | ||
) | ||
diagnostics_url: AnyUrl | None = Field( | ||
default=None, | ||
description="Link to diagnostics report sub-resource. This MIGHT take some time to compute", | ||
) | ||
|
||
diagnostics_url: Annotated[ | ||
AnyUrl | None, | ||
Field( | ||
description="Link to diagnostics report sub-resource. This MIGHT take some time to compute", | ||
), | ||
] = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.