Skip to content

Commit dc197c5

Browse files
Generator: Update SDK /services/observability (#2222)
* Generate observability * Add changelog Signed-off-by: Alexander Dahmen <[email protected]> --------- Signed-off-by: Alexander Dahmen <[email protected]> Co-authored-by: Alexander Dahmen <[email protected]>
1 parent a559ffc commit dc197c5

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Release (2025-xx-xx)
2+
- `observability`: [v0.9.0](services/observability/CHANGELOG.md#v090)
3+
- **Feature:** Add new `GoogleChat` webhook
4+
15
## Release (2025-08-13)
26
- `scf`:
37
- [v0.2.0](services/scf/CHANGELOG.md#v020)

services/observability/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v0.9.0
2+
- **Feature:** Add new `GoogleChat` webhook
3+
14
## v0.8.0
25
- **Feature:** Add new model `CreateCredentialsPayload`
36
- **Feature:** Enhance `create_credentials()` method to accept optional payload parameter

services/observability/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "stackit-observability"
33

44
[tool.poetry]
55
name = "stackit-observability"
6-
version = "v0.8.0"
6+
version = "v0.9.0"
77
authors = [
88
"STACKIT Developer Tools <[email protected]>",
99
]

services/observability/src/stackit/observability/models/create_alert_config_receiver_payload_web_hook_configs_inner.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ class CreateAlertConfigReceiverPayloadWebHookConfigsInner(BaseModel):
2727
CreateAlertConfigReceiverPayloadWebHookConfigsInner
2828
""" # noqa: E501
2929

30+
google_chat: Optional[StrictBool] = Field(
31+
default=False,
32+
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.",
33+
alias="googleChat",
34+
)
3035
ms_teams: Optional[StrictBool] = Field(
3136
default=False,
32-
description="Microsoft Teams webhooks require special handling. If you set this property to true, it is treated as such",
37+
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.",
3338
alias="msTeams",
3439
)
3540
send_resolved: Optional[StrictBool] = Field(
@@ -39,7 +44,7 @@ class CreateAlertConfigReceiverPayloadWebHookConfigsInner(BaseModel):
3944
default=None,
4045
description="The endpoint to send HTTP POST requests to. `Additional Validators:` * must be a syntactically valid url address",
4146
)
42-
__properties: ClassVar[List[str]] = ["msTeams", "sendResolved", "url"]
47+
__properties: ClassVar[List[str]] = ["googleChat", "msTeams", "sendResolved", "url"]
4348

4449
model_config = ConfigDict(
4550
populate_by_name=True,
@@ -91,6 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
9196

9297
_obj = cls.model_validate(
9398
{
99+
"googleChat": obj.get("googleChat") if obj.get("googleChat") is not None else False,
94100
"msTeams": obj.get("msTeams") if obj.get("msTeams") is not None else False,
95101
"sendResolved": obj.get("sendResolved") if obj.get("sendResolved") is not None else True,
96102
"url": obj.get("url"),

services/observability/src/stackit/observability/models/web_hook.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ class WebHook(BaseModel):
2727
WebHook
2828
""" # noqa: E501
2929

30+
google_chat: Optional[StrictBool] = Field(default=False, alias="googleChat")
3031
ms_teams: Optional[StrictBool] = Field(default=False, alias="msTeams")
3132
send_resolved: Optional[StrictBool] = Field(default=True, alias="sendResolved")
3233
url: Annotated[str, Field(min_length=1, strict=True, max_length=500)]
33-
__properties: ClassVar[List[str]] = ["msTeams", "sendResolved", "url"]
34+
__properties: ClassVar[List[str]] = ["googleChat", "msTeams", "sendResolved", "url"]
3435

3536
model_config = ConfigDict(
3637
populate_by_name=True,
@@ -82,6 +83,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8283

8384
_obj = cls.model_validate(
8485
{
86+
"googleChat": obj.get("googleChat") if obj.get("googleChat") is not None else False,
8587
"msTeams": obj.get("msTeams") if obj.get("msTeams") is not None else False,
8688
"sendResolved": obj.get("sendResolved") if obj.get("sendResolved") is not None else True,
8789
"url": obj.get("url"),

0 commit comments

Comments
 (0)