Skip to content

Commit c5e5941

Browse files
michael.yakmichaelyaakoby
authored andcommitted
Bump version to 1.0.1
1 parent 8bf68c8 commit c5e5941

File tree

7 files changed

+12
-6
lines changed

7 files changed

+12
-6
lines changed

examples/Advanced/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ python = "^3.9"
1111
psutil = { version = "^5.6" }
1212
fastapi = { version = "^0.65.2" }
1313
uvicorn = { version = "^0.11.7" }
14-
pyctuator = { version = "^1.0.0" }
14+
pyctuator = { version = "^1.0.1" }
1515
sqlalchemy = { version = "^1.3" }
1616
PyMySQL = { version = "^0.9.3" }
1717
cryptography = { version = "^2.8" }

examples/FastAPI/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ python = "^3.9"
1111
psutil = { version = "^5.6" }
1212
fastapi = { version = "^0.82.0" }
1313
uvicorn = { version = "^0.18.2" }
14-
pyctuator = { version = "^1.0.0" }
14+
pyctuator = { version = "^1.0.1" }
1515

1616
[build-system]
1717
requires = ["poetry>=0.12"]

examples/Flask/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = [
1010
python = "^3.9"
1111
psutil = { version = "^5.6" }
1212
flask = { version = "^2.2.2" }
13-
pyctuator = { version = "^1.0.0" }
13+
pyctuator = { version = "^1.0.1" }
1414

1515
[build-system]
1616
requires = ["poetry>=0.12"]

examples/aiohttp/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = [
1010
python = "^3.9"
1111
psutil = { version = "^5.6" }
1212
aiohttp = { version = "^3.6.2" }
13-
pyctuator = { version = "^1.0.0" }
13+
pyctuator = { version = "^1.0.1" }
1414

1515
[build-system]
1616
requires = ["poetry>=0.12"]

examples/tornado/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = [
1010
python = "^3.9"
1111
psutil = { version = "^5.6" }
1212
tornado = { version = "^6.0.4" }
13-
pyctuator = { version = "^1.0.0" }
13+
pyctuator = { version = "^1.0.1" }
1414

1515
[build-system]
1616
requires = ["poetry>=0.12"]

pyctuator/health/health_provider.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ class HealthSummary:
2929
details: Mapping[str, HealthStatus]
3030

3131
def http_status(self) -> int:
32+
"""
33+
:return: The HTTP according to the service's health. Done according to the documentation in
34+
https://docs.spring.io/spring-boot/docs/2.7.0/reference/htmlsingle/#actuator.endpoints.health.writing-custom-health-indicators
35+
The HTTP status code in the response reflects the overall health status. By default, OUT_OF_SERVICE
36+
and DOWN map to 503. Any unmapped health statuses, including UP, map to 200.
37+
"""
3238
if self.status == Status.DOWN:
3339
return HTTPStatus.SERVICE_UNAVAILABLE
3440
return HTTPStatus.OK

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pyctuator"
3-
version = "1.0.0"
3+
version = "1.0.1"
44
description = "A Python implementation of the Spring Actuator API for popular web frameworks"
55
authors = [
66
"Michael Yakobi <michael.yakobi@solaredge.com>",

0 commit comments

Comments
 (0)