From 586a2ab0031881698ee0266ee6404d9ed3f0c174 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Mon, 18 Aug 2025 10:15:49 +0000 Subject: [PATCH 1/2] Generate observability --- ...t_config_receiver_payload_web_hook_configs_inner.py | 10 ++++++++-- .../src/stackit/observability/models/web_hook.py | 4 +++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_web_hook_configs_inner.py b/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_web_hook_configs_inner.py index 79a0f4124..96c7a9bb8 100644 --- a/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_web_hook_configs_inner.py +++ b/services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_web_hook_configs_inner.py @@ -27,9 +27,14 @@ class CreateAlertConfigReceiverPayloadWebHookConfigsInner(BaseModel): CreateAlertConfigReceiverPayloadWebHookConfigsInner """ # noqa: E501 + google_chat: Optional[StrictBool] = Field( + default=False, + description="Google Chat webhooks require special handling. If you set this property to true, it is treated as such. `Additional Validators:` * When set to true, msTeams must be false.", + alias="googleChat", + ) ms_teams: Optional[StrictBool] = Field( default=False, - description="Microsoft Teams webhooks require special handling. If you set this property to true, it is treated as such", + description="Microsoft Teams webhooks require special handling. If you set this property to true, it is treated as such. `Additional Validators:` * When set to true, googleChat must be false.", alias="msTeams", ) send_resolved: Optional[StrictBool] = Field( @@ -39,7 +44,7 @@ class CreateAlertConfigReceiverPayloadWebHookConfigsInner(BaseModel): default=None, description="The endpoint to send HTTP POST requests to. `Additional Validators:` * must be a syntactically valid url address", ) - __properties: ClassVar[List[str]] = ["msTeams", "sendResolved", "url"] + __properties: ClassVar[List[str]] = ["googleChat", "msTeams", "sendResolved", "url"] model_config = ConfigDict( populate_by_name=True, @@ -91,6 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { + "googleChat": obj.get("googleChat") if obj.get("googleChat") is not None else False, "msTeams": obj.get("msTeams") if obj.get("msTeams") is not None else False, "sendResolved": obj.get("sendResolved") if obj.get("sendResolved") is not None else True, "url": obj.get("url"), diff --git a/services/observability/src/stackit/observability/models/web_hook.py b/services/observability/src/stackit/observability/models/web_hook.py index 6c3705fd9..d9958d881 100644 --- a/services/observability/src/stackit/observability/models/web_hook.py +++ b/services/observability/src/stackit/observability/models/web_hook.py @@ -27,10 +27,11 @@ class WebHook(BaseModel): WebHook """ # noqa: E501 + google_chat: Optional[StrictBool] = Field(default=False, alias="googleChat") ms_teams: Optional[StrictBool] = Field(default=False, alias="msTeams") send_resolved: Optional[StrictBool] = Field(default=True, alias="sendResolved") url: Annotated[str, Field(min_length=1, strict=True, max_length=500)] - __properties: ClassVar[List[str]] = ["msTeams", "sendResolved", "url"] + __properties: ClassVar[List[str]] = ["googleChat", "msTeams", "sendResolved", "url"] model_config = ConfigDict( populate_by_name=True, @@ -82,6 +83,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { + "googleChat": obj.get("googleChat") if obj.get("googleChat") is not None else False, "msTeams": obj.get("msTeams") if obj.get("msTeams") is not None else False, "sendResolved": obj.get("sendResolved") if obj.get("sendResolved") is not None else True, "url": obj.get("url"), From 30d7df413c7a5a89dab2a2a43bb0cc256fd475c8 Mon Sep 17 00:00:00 2001 From: Alexander Dahmen Date: Tue, 19 Aug 2025 11:07:28 +0200 Subject: [PATCH 2/2] Add changelog Signed-off-by: Alexander Dahmen --- CHANGELOG.md | 4 ++++ services/observability/CHANGELOG.md | 3 +++ services/observability/pyproject.toml | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9998f9809..9ca6d51d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## Release (2025-xx-xx) +- `observability`: [v0.9.0](services/observability/CHANGELOG.md#v090) + - **Feature:** Add new `GoogleChat` webhook + ## Release (2025-08-13) - `scf`: - [v0.2.0](services/scf/CHANGELOG.md#v020) diff --git a/services/observability/CHANGELOG.md b/services/observability/CHANGELOG.md index db1cee4e8..52d781d8e 100644 --- a/services/observability/CHANGELOG.md +++ b/services/observability/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.9.0 +- **Feature:** Add new `GoogleChat` webhook + ## v0.8.0 - **Feature:** Add new model `CreateCredentialsPayload` - **Feature:** Enhance `create_credentials()` method to accept optional payload parameter diff --git a/services/observability/pyproject.toml b/services/observability/pyproject.toml index 9bd388783..cd35274d4 100644 --- a/services/observability/pyproject.toml +++ b/services/observability/pyproject.toml @@ -3,7 +3,7 @@ name = "stackit-observability" [tool.poetry] name = "stackit-observability" -version = "v0.8.0" +version = "v0.9.0" authors = [ "STACKIT Developer Tools ", ]