windmill-api 1.491.1__py3-none-any.whl → 1.491.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of windmill-api might be problematic. Click here for more details.
- windmill_api/api/config/get_config.py +69 -7
- windmill_api/models/alert.py +87 -0
- windmill_api/models/configs.py +75 -0
- windmill_api/models/configs_alerts_item.py +87 -0
- windmill_api/models/get_config_response_200.py +75 -0
- windmill_api/models/get_config_response_200_alerts_item.py +87 -0
- {windmill_api-1.491.1.dist-info → windmill_api-1.491.5.dist-info}/METADATA +1 -1
- {windmill_api-1.491.1.dist-info → windmill_api-1.491.5.dist-info}/RECORD +10 -5
- {windmill_api-1.491.1.dist-info → windmill_api-1.491.5.dist-info}/LICENSE +0 -0
- {windmill_api-1.491.1.dist-info → windmill_api-1.491.5.dist-info}/WHEEL +0 -0
|
@@ -5,6 +5,7 @@ import httpx
|
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.get_config_response_200 import GetConfigResponse200
|
|
8
9
|
from ...types import Response
|
|
9
10
|
|
|
10
11
|
|
|
@@ -21,16 +22,27 @@ def _get_kwargs(
|
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
|
|
24
|
-
def _parse_response(
|
|
25
|
+
def _parse_response(
|
|
26
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
27
|
+
) -> Optional[Optional[GetConfigResponse200]]:
|
|
25
28
|
if response.status_code == HTTPStatus.OK:
|
|
26
|
-
|
|
29
|
+
_response_200 = response.json()
|
|
30
|
+
response_200: Optional[GetConfigResponse200]
|
|
31
|
+
if _response_200 is None:
|
|
32
|
+
response_200 = None
|
|
33
|
+
else:
|
|
34
|
+
response_200 = GetConfigResponse200.from_dict(_response_200)
|
|
35
|
+
|
|
36
|
+
return response_200
|
|
27
37
|
if client.raise_on_unexpected_status:
|
|
28
38
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
29
39
|
else:
|
|
30
40
|
return None
|
|
31
41
|
|
|
32
42
|
|
|
33
|
-
def _build_response(
|
|
43
|
+
def _build_response(
|
|
44
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
45
|
+
) -> Response[Optional[GetConfigResponse200]]:
|
|
34
46
|
return Response(
|
|
35
47
|
status_code=HTTPStatus(response.status_code),
|
|
36
48
|
content=response.content,
|
|
@@ -43,7 +55,7 @@ def sync_detailed(
|
|
|
43
55
|
name: str,
|
|
44
56
|
*,
|
|
45
57
|
client: Union[AuthenticatedClient, Client],
|
|
46
|
-
) -> Response[
|
|
58
|
+
) -> Response[Optional[GetConfigResponse200]]:
|
|
47
59
|
"""get config
|
|
48
60
|
|
|
49
61
|
Args:
|
|
@@ -54,7 +66,7 @@ def sync_detailed(
|
|
|
54
66
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
55
67
|
|
|
56
68
|
Returns:
|
|
57
|
-
Response[
|
|
69
|
+
Response[Optional[GetConfigResponse200]]
|
|
58
70
|
"""
|
|
59
71
|
|
|
60
72
|
kwargs = _get_kwargs(
|
|
@@ -68,11 +80,35 @@ def sync_detailed(
|
|
|
68
80
|
return _build_response(client=client, response=response)
|
|
69
81
|
|
|
70
82
|
|
|
83
|
+
def sync(
|
|
84
|
+
name: str,
|
|
85
|
+
*,
|
|
86
|
+
client: Union[AuthenticatedClient, Client],
|
|
87
|
+
) -> Optional[Optional[GetConfigResponse200]]:
|
|
88
|
+
"""get config
|
|
89
|
+
|
|
90
|
+
Args:
|
|
91
|
+
name (str):
|
|
92
|
+
|
|
93
|
+
Raises:
|
|
94
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
95
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
96
|
+
|
|
97
|
+
Returns:
|
|
98
|
+
Optional[GetConfigResponse200]
|
|
99
|
+
"""
|
|
100
|
+
|
|
101
|
+
return sync_detailed(
|
|
102
|
+
name=name,
|
|
103
|
+
client=client,
|
|
104
|
+
).parsed
|
|
105
|
+
|
|
106
|
+
|
|
71
107
|
async def asyncio_detailed(
|
|
72
108
|
name: str,
|
|
73
109
|
*,
|
|
74
110
|
client: Union[AuthenticatedClient, Client],
|
|
75
|
-
) -> Response[
|
|
111
|
+
) -> Response[Optional[GetConfigResponse200]]:
|
|
76
112
|
"""get config
|
|
77
113
|
|
|
78
114
|
Args:
|
|
@@ -83,7 +119,7 @@ async def asyncio_detailed(
|
|
|
83
119
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
84
120
|
|
|
85
121
|
Returns:
|
|
86
|
-
Response[
|
|
122
|
+
Response[Optional[GetConfigResponse200]]
|
|
87
123
|
"""
|
|
88
124
|
|
|
89
125
|
kwargs = _get_kwargs(
|
|
@@ -93,3 +129,29 @@ async def asyncio_detailed(
|
|
|
93
129
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
94
130
|
|
|
95
131
|
return _build_response(client=client, response=response)
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
async def asyncio(
|
|
135
|
+
name: str,
|
|
136
|
+
*,
|
|
137
|
+
client: Union[AuthenticatedClient, Client],
|
|
138
|
+
) -> Optional[Optional[GetConfigResponse200]]:
|
|
139
|
+
"""get config
|
|
140
|
+
|
|
141
|
+
Args:
|
|
142
|
+
name (str):
|
|
143
|
+
|
|
144
|
+
Raises:
|
|
145
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
146
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
147
|
+
|
|
148
|
+
Returns:
|
|
149
|
+
Optional[GetConfigResponse200]
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
return (
|
|
153
|
+
await asyncio_detailed(
|
|
154
|
+
name=name,
|
|
155
|
+
client=client,
|
|
156
|
+
)
|
|
157
|
+
).parsed
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, cast
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
T = TypeVar("T", bound="Alert")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class Alert:
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
name (str):
|
|
14
|
+
tags_to_monitor (List[str]):
|
|
15
|
+
jobs_num_threshold (int):
|
|
16
|
+
alert_cooldown_seconds (int):
|
|
17
|
+
alert_time_threshold_seconds (int):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
name: str
|
|
21
|
+
tags_to_monitor: List[str]
|
|
22
|
+
jobs_num_threshold: int
|
|
23
|
+
alert_cooldown_seconds: int
|
|
24
|
+
alert_time_threshold_seconds: int
|
|
25
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
28
|
+
name = self.name
|
|
29
|
+
tags_to_monitor = self.tags_to_monitor
|
|
30
|
+
|
|
31
|
+
jobs_num_threshold = self.jobs_num_threshold
|
|
32
|
+
alert_cooldown_seconds = self.alert_cooldown_seconds
|
|
33
|
+
alert_time_threshold_seconds = self.alert_time_threshold_seconds
|
|
34
|
+
|
|
35
|
+
field_dict: Dict[str, Any] = {}
|
|
36
|
+
field_dict.update(self.additional_properties)
|
|
37
|
+
field_dict.update(
|
|
38
|
+
{
|
|
39
|
+
"name": name,
|
|
40
|
+
"tags_to_monitor": tags_to_monitor,
|
|
41
|
+
"jobs_num_threshold": jobs_num_threshold,
|
|
42
|
+
"alert_cooldown_seconds": alert_cooldown_seconds,
|
|
43
|
+
"alert_time_threshold_seconds": alert_time_threshold_seconds,
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
return field_dict
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
51
|
+
d = src_dict.copy()
|
|
52
|
+
name = d.pop("name")
|
|
53
|
+
|
|
54
|
+
tags_to_monitor = cast(List[str], d.pop("tags_to_monitor"))
|
|
55
|
+
|
|
56
|
+
jobs_num_threshold = d.pop("jobs_num_threshold")
|
|
57
|
+
|
|
58
|
+
alert_cooldown_seconds = d.pop("alert_cooldown_seconds")
|
|
59
|
+
|
|
60
|
+
alert_time_threshold_seconds = d.pop("alert_time_threshold_seconds")
|
|
61
|
+
|
|
62
|
+
alert = cls(
|
|
63
|
+
name=name,
|
|
64
|
+
tags_to_monitor=tags_to_monitor,
|
|
65
|
+
jobs_num_threshold=jobs_num_threshold,
|
|
66
|
+
alert_cooldown_seconds=alert_cooldown_seconds,
|
|
67
|
+
alert_time_threshold_seconds=alert_time_threshold_seconds,
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
alert.additional_properties = d
|
|
71
|
+
return alert
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def additional_keys(self) -> List[str]:
|
|
75
|
+
return list(self.additional_properties.keys())
|
|
76
|
+
|
|
77
|
+
def __getitem__(self, key: str) -> Any:
|
|
78
|
+
return self.additional_properties[key]
|
|
79
|
+
|
|
80
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
81
|
+
self.additional_properties[key] = value
|
|
82
|
+
|
|
83
|
+
def __delitem__(self, key: str) -> None:
|
|
84
|
+
del self.additional_properties[key]
|
|
85
|
+
|
|
86
|
+
def __contains__(self, key: str) -> bool:
|
|
87
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from ..models.configs_alerts_item import ConfigsAlertsItem
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="Configs")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class Configs:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
alerts (Union[Unset, List['ConfigsAlertsItem']]):
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
alerts: Union[Unset, List["ConfigsAlertsItem"]] = UNSET
|
|
23
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
26
|
+
alerts: Union[Unset, List[Dict[str, Any]]] = UNSET
|
|
27
|
+
if not isinstance(self.alerts, Unset):
|
|
28
|
+
alerts = []
|
|
29
|
+
for alerts_item_data in self.alerts:
|
|
30
|
+
alerts_item = alerts_item_data.to_dict()
|
|
31
|
+
|
|
32
|
+
alerts.append(alerts_item)
|
|
33
|
+
|
|
34
|
+
field_dict: Dict[str, Any] = {}
|
|
35
|
+
field_dict.update(self.additional_properties)
|
|
36
|
+
field_dict.update({})
|
|
37
|
+
if alerts is not UNSET:
|
|
38
|
+
field_dict["alerts"] = alerts
|
|
39
|
+
|
|
40
|
+
return field_dict
|
|
41
|
+
|
|
42
|
+
@classmethod
|
|
43
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
44
|
+
from ..models.configs_alerts_item import ConfigsAlertsItem
|
|
45
|
+
|
|
46
|
+
d = src_dict.copy()
|
|
47
|
+
alerts = []
|
|
48
|
+
_alerts = d.pop("alerts", UNSET)
|
|
49
|
+
for alerts_item_data in _alerts or []:
|
|
50
|
+
alerts_item = ConfigsAlertsItem.from_dict(alerts_item_data)
|
|
51
|
+
|
|
52
|
+
alerts.append(alerts_item)
|
|
53
|
+
|
|
54
|
+
configs = cls(
|
|
55
|
+
alerts=alerts,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
configs.additional_properties = d
|
|
59
|
+
return configs
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def additional_keys(self) -> List[str]:
|
|
63
|
+
return list(self.additional_properties.keys())
|
|
64
|
+
|
|
65
|
+
def __getitem__(self, key: str) -> Any:
|
|
66
|
+
return self.additional_properties[key]
|
|
67
|
+
|
|
68
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
69
|
+
self.additional_properties[key] = value
|
|
70
|
+
|
|
71
|
+
def __delitem__(self, key: str) -> None:
|
|
72
|
+
del self.additional_properties[key]
|
|
73
|
+
|
|
74
|
+
def __contains__(self, key: str) -> bool:
|
|
75
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, cast
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
T = TypeVar("T", bound="ConfigsAlertsItem")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class ConfigsAlertsItem:
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
name (str):
|
|
14
|
+
tags_to_monitor (List[str]):
|
|
15
|
+
jobs_num_threshold (int):
|
|
16
|
+
alert_cooldown_seconds (int):
|
|
17
|
+
alert_time_threshold_seconds (int):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
name: str
|
|
21
|
+
tags_to_monitor: List[str]
|
|
22
|
+
jobs_num_threshold: int
|
|
23
|
+
alert_cooldown_seconds: int
|
|
24
|
+
alert_time_threshold_seconds: int
|
|
25
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
28
|
+
name = self.name
|
|
29
|
+
tags_to_monitor = self.tags_to_monitor
|
|
30
|
+
|
|
31
|
+
jobs_num_threshold = self.jobs_num_threshold
|
|
32
|
+
alert_cooldown_seconds = self.alert_cooldown_seconds
|
|
33
|
+
alert_time_threshold_seconds = self.alert_time_threshold_seconds
|
|
34
|
+
|
|
35
|
+
field_dict: Dict[str, Any] = {}
|
|
36
|
+
field_dict.update(self.additional_properties)
|
|
37
|
+
field_dict.update(
|
|
38
|
+
{
|
|
39
|
+
"name": name,
|
|
40
|
+
"tags_to_monitor": tags_to_monitor,
|
|
41
|
+
"jobs_num_threshold": jobs_num_threshold,
|
|
42
|
+
"alert_cooldown_seconds": alert_cooldown_seconds,
|
|
43
|
+
"alert_time_threshold_seconds": alert_time_threshold_seconds,
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
return field_dict
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
51
|
+
d = src_dict.copy()
|
|
52
|
+
name = d.pop("name")
|
|
53
|
+
|
|
54
|
+
tags_to_monitor = cast(List[str], d.pop("tags_to_monitor"))
|
|
55
|
+
|
|
56
|
+
jobs_num_threshold = d.pop("jobs_num_threshold")
|
|
57
|
+
|
|
58
|
+
alert_cooldown_seconds = d.pop("alert_cooldown_seconds")
|
|
59
|
+
|
|
60
|
+
alert_time_threshold_seconds = d.pop("alert_time_threshold_seconds")
|
|
61
|
+
|
|
62
|
+
configs_alerts_item = cls(
|
|
63
|
+
name=name,
|
|
64
|
+
tags_to_monitor=tags_to_monitor,
|
|
65
|
+
jobs_num_threshold=jobs_num_threshold,
|
|
66
|
+
alert_cooldown_seconds=alert_cooldown_seconds,
|
|
67
|
+
alert_time_threshold_seconds=alert_time_threshold_seconds,
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
configs_alerts_item.additional_properties = d
|
|
71
|
+
return configs_alerts_item
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def additional_keys(self) -> List[str]:
|
|
75
|
+
return list(self.additional_properties.keys())
|
|
76
|
+
|
|
77
|
+
def __getitem__(self, key: str) -> Any:
|
|
78
|
+
return self.additional_properties[key]
|
|
79
|
+
|
|
80
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
81
|
+
self.additional_properties[key] = value
|
|
82
|
+
|
|
83
|
+
def __delitem__(self, key: str) -> None:
|
|
84
|
+
del self.additional_properties[key]
|
|
85
|
+
|
|
86
|
+
def __contains__(self, key: str) -> bool:
|
|
87
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from ..models.get_config_response_200_alerts_item import GetConfigResponse200AlertsItem
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="GetConfigResponse200")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class GetConfigResponse200:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
alerts (Union[Unset, List['GetConfigResponse200AlertsItem']]):
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
alerts: Union[Unset, List["GetConfigResponse200AlertsItem"]] = UNSET
|
|
23
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
26
|
+
alerts: Union[Unset, List[Dict[str, Any]]] = UNSET
|
|
27
|
+
if not isinstance(self.alerts, Unset):
|
|
28
|
+
alerts = []
|
|
29
|
+
for alerts_item_data in self.alerts:
|
|
30
|
+
alerts_item = alerts_item_data.to_dict()
|
|
31
|
+
|
|
32
|
+
alerts.append(alerts_item)
|
|
33
|
+
|
|
34
|
+
field_dict: Dict[str, Any] = {}
|
|
35
|
+
field_dict.update(self.additional_properties)
|
|
36
|
+
field_dict.update({})
|
|
37
|
+
if alerts is not UNSET:
|
|
38
|
+
field_dict["alerts"] = alerts
|
|
39
|
+
|
|
40
|
+
return field_dict
|
|
41
|
+
|
|
42
|
+
@classmethod
|
|
43
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
44
|
+
from ..models.get_config_response_200_alerts_item import GetConfigResponse200AlertsItem
|
|
45
|
+
|
|
46
|
+
d = src_dict.copy()
|
|
47
|
+
alerts = []
|
|
48
|
+
_alerts = d.pop("alerts", UNSET)
|
|
49
|
+
for alerts_item_data in _alerts or []:
|
|
50
|
+
alerts_item = GetConfigResponse200AlertsItem.from_dict(alerts_item_data)
|
|
51
|
+
|
|
52
|
+
alerts.append(alerts_item)
|
|
53
|
+
|
|
54
|
+
get_config_response_200 = cls(
|
|
55
|
+
alerts=alerts,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
get_config_response_200.additional_properties = d
|
|
59
|
+
return get_config_response_200
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def additional_keys(self) -> List[str]:
|
|
63
|
+
return list(self.additional_properties.keys())
|
|
64
|
+
|
|
65
|
+
def __getitem__(self, key: str) -> Any:
|
|
66
|
+
return self.additional_properties[key]
|
|
67
|
+
|
|
68
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
69
|
+
self.additional_properties[key] = value
|
|
70
|
+
|
|
71
|
+
def __delitem__(self, key: str) -> None:
|
|
72
|
+
del self.additional_properties[key]
|
|
73
|
+
|
|
74
|
+
def __contains__(self, key: str) -> bool:
|
|
75
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, cast
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
T = TypeVar("T", bound="GetConfigResponse200AlertsItem")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class GetConfigResponse200AlertsItem:
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
name (str):
|
|
14
|
+
tags_to_monitor (List[str]):
|
|
15
|
+
jobs_num_threshold (int):
|
|
16
|
+
alert_cooldown_seconds (int):
|
|
17
|
+
alert_time_threshold_seconds (int):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
name: str
|
|
21
|
+
tags_to_monitor: List[str]
|
|
22
|
+
jobs_num_threshold: int
|
|
23
|
+
alert_cooldown_seconds: int
|
|
24
|
+
alert_time_threshold_seconds: int
|
|
25
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
28
|
+
name = self.name
|
|
29
|
+
tags_to_monitor = self.tags_to_monitor
|
|
30
|
+
|
|
31
|
+
jobs_num_threshold = self.jobs_num_threshold
|
|
32
|
+
alert_cooldown_seconds = self.alert_cooldown_seconds
|
|
33
|
+
alert_time_threshold_seconds = self.alert_time_threshold_seconds
|
|
34
|
+
|
|
35
|
+
field_dict: Dict[str, Any] = {}
|
|
36
|
+
field_dict.update(self.additional_properties)
|
|
37
|
+
field_dict.update(
|
|
38
|
+
{
|
|
39
|
+
"name": name,
|
|
40
|
+
"tags_to_monitor": tags_to_monitor,
|
|
41
|
+
"jobs_num_threshold": jobs_num_threshold,
|
|
42
|
+
"alert_cooldown_seconds": alert_cooldown_seconds,
|
|
43
|
+
"alert_time_threshold_seconds": alert_time_threshold_seconds,
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
return field_dict
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
51
|
+
d = src_dict.copy()
|
|
52
|
+
name = d.pop("name")
|
|
53
|
+
|
|
54
|
+
tags_to_monitor = cast(List[str], d.pop("tags_to_monitor"))
|
|
55
|
+
|
|
56
|
+
jobs_num_threshold = d.pop("jobs_num_threshold")
|
|
57
|
+
|
|
58
|
+
alert_cooldown_seconds = d.pop("alert_cooldown_seconds")
|
|
59
|
+
|
|
60
|
+
alert_time_threshold_seconds = d.pop("alert_time_threshold_seconds")
|
|
61
|
+
|
|
62
|
+
get_config_response_200_alerts_item = cls(
|
|
63
|
+
name=name,
|
|
64
|
+
tags_to_monitor=tags_to_monitor,
|
|
65
|
+
jobs_num_threshold=jobs_num_threshold,
|
|
66
|
+
alert_cooldown_seconds=alert_cooldown_seconds,
|
|
67
|
+
alert_time_threshold_seconds=alert_time_threshold_seconds,
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
get_config_response_200_alerts_item.additional_properties = d
|
|
71
|
+
return get_config_response_200_alerts_item
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def additional_keys(self) -> List[str]:
|
|
75
|
+
return list(self.additional_properties.keys())
|
|
76
|
+
|
|
77
|
+
def __getitem__(self, key: str) -> Any:
|
|
78
|
+
return self.additional_properties[key]
|
|
79
|
+
|
|
80
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
81
|
+
self.additional_properties[key] = value
|
|
82
|
+
|
|
83
|
+
def __delitem__(self, key: str) -> None:
|
|
84
|
+
del self.additional_properties[key]
|
|
85
|
+
|
|
86
|
+
def __contains__(self, key: str) -> bool:
|
|
87
|
+
return key in self.additional_properties
|
|
@@ -48,7 +48,7 @@ windmill_api/api/concurrency_groups/list_concurrency_groups.py,sha256=WU2Vs0q3Qj
|
|
|
48
48
|
windmill_api/api/concurrency_groups/list_extended_jobs.py,sha256=yMsZZohK_sWkK6os7I7jg8fcP5XEBgqfZUVwQ3GxVic,24991
|
|
49
49
|
windmill_api/api/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
50
50
|
windmill_api/api/config/delete_config.py,sha256=tIXSiXwRK6MUaolHhicQydeyht60L6LNlZDwd96OLF8,2223
|
|
51
|
-
windmill_api/api/config/get_config.py,sha256=
|
|
51
|
+
windmill_api/api/config/get_config.py,sha256=ww07uiAEk2uV3IXQ5vSSbaSwM2OljVyMv2uUVhv54sE,3909
|
|
52
52
|
windmill_api/api/config/list_autoscaling_events.py,sha256=MWN5UWGmRJuzgXZTrOYbwOSHLJAEZIslSBeE2RN-kaw,4349
|
|
53
53
|
windmill_api/api/config/list_configs.py,sha256=7Tuv-IRzSDOe03SEw33Gogv6p2JqBf0SvSGXlfM2TqQ,3657
|
|
54
54
|
windmill_api/api/config/list_worker_groups.py,sha256=En8Im6pXzBhrJfjGpBj05XCUzZOxzxBQyPVaJ3ZmYHI,3761
|
|
@@ -542,6 +542,7 @@ windmill_api/models/ai_provider.py,sha256=-okN6NQBCooiDZLFJx7-xvxvYR7T0nCz3YUBJq
|
|
|
542
542
|
windmill_api/models/ai_provider_config.py,sha256=7vTLIikzS-v91YHi4tMiAWeBXDMaSEH2_RlV-xK_tuE,1732
|
|
543
543
|
windmill_api/models/ai_provider_model.py,sha256=M6PEo60yVmZC1P4ROKIyFR6rA33Y6RGcnxPLbJUI6E8,1776
|
|
544
544
|
windmill_api/models/ai_provider_model_provider.py,sha256=EMQyHdI1v7mgDMxkK6frZTOErwDxKssEpEeuLPc_8cQ,392
|
|
545
|
+
windmill_api/models/alert.py,sha256=SKGS9LXh5ccRLwg_RxtwxsoNGVf8KUZ-RDWuq0vQwsE,2658
|
|
545
546
|
windmill_api/models/app_history.py,sha256=Zi_The8LlMR_uMAAFW5S9kDuxRIYOy5xNda7gHamDfQ,1816
|
|
546
547
|
windmill_api/models/app_with_last_version.py,sha256=5kZfAbK4XlaKZ4rWKJLY2qL19B_vtSQJgoLzEhWfokU,4813
|
|
547
548
|
windmill_api/models/app_with_last_version_execution_mode.py,sha256=qIImxSIPQynbsACGBqIJhB-8bi-8xi4hMg_YyBAtb38,214
|
|
@@ -758,6 +759,8 @@ windmill_api/models/completed_job_raw_flow_preprocessor_module_suspend_user_grou
|
|
|
758
759
|
windmill_api/models/concurrency_group.py,sha256=oNZ2zE-tHqZomUheHDrWV6hdouZYZM2ff_wx5C1-IXk,1788
|
|
759
760
|
windmill_api/models/config.py,sha256=Tl07rzRCA8Z4gSnCaK4YU8wriDvSCv3iUDpdutvYB2o,2130
|
|
760
761
|
windmill_api/models/config_config.py,sha256=0-Z932i9VEzxsgMxZHFfA02X1AHxax-I3p9A8KBVldo,1215
|
|
762
|
+
windmill_api/models/configs.py,sha256=H0RyiDBAi3mO_QO6yyTCPVGbzjQ4GHtpr3otnS7s20k,2144
|
|
763
|
+
windmill_api/models/configs_alerts_item.py,sha256=QP5fW2ACdDVqIMeOBZHRBi96n-SArjPzVKZ1J1ef4Ds,2724
|
|
761
764
|
windmill_api/models/connect_callback_json_body.py,sha256=85RFBg7JqD8NbZOOmq-NlCsf26pLopNJ6Vy7IOUXTr8,1635
|
|
762
765
|
windmill_api/models/connect_callback_response_200.py,sha256=1QPmLSSR9_YsbgOlf6Aum7WzP8gV84215g5ZOi1NXKo,2596
|
|
763
766
|
windmill_api/models/connect_slack_callback_instance_json_body.py,sha256=c0Rnk7V8qF2Dr471eWnWZe41d5SXnhZEKpbJH1WkpYM,1706
|
|
@@ -1640,6 +1643,8 @@ windmill_api/models/get_completed_job_response_200_raw_flow_preprocessor_module_
|
|
|
1640
1643
|
windmill_api/models/get_completed_job_response_200_raw_flow_preprocessor_module_suspend_user_groups_required_type_1.py,sha256=uX0SlnpjRQnc4k3eyBkfc_2zzj_vuMWrydXVV3WZOjQ,2447
|
|
1641
1644
|
windmill_api/models/get_completed_job_response_200_raw_flow_preprocessor_module_suspend_user_groups_required_type_1_type.py,sha256=u-YheCK0vWC6q48xofM368suCbrdf0cLeJ4nbNc1yoU,220
|
|
1642
1645
|
windmill_api/models/get_completed_job_result_maybe_response_200.py,sha256=no4BzZB_3zRVawLJh9ZsjH5ntuZ8Zj90QGYQd7mFmaI,2333
|
|
1646
|
+
windmill_api/models/get_config_response_200.py,sha256=jeH1gwztxpwSUXaShzeshIA1ySQiNGrKNVz3faNGNhs,2315
|
|
1647
|
+
windmill_api/models/get_config_response_200_alerts_item.py,sha256=BfJ8FlrPmeDVtyXaKnGruvIF0gfBR2timSP0vpHkZTY,2798
|
|
1643
1648
|
windmill_api/models/get_copilot_info_response_200.py,sha256=wAFE4TNQrsnWaf8K_v3dKRDsim2NPqYGGZq0DBoaVnI,4544
|
|
1644
1649
|
windmill_api/models/get_copilot_info_response_200_code_completion_model.py,sha256=8yG-4N1ixL3Z3NQ2HOdskhj85356M_FnzPVzTvMaVyo,2095
|
|
1645
1650
|
windmill_api/models/get_copilot_info_response_200_code_completion_model_provider.py,sha256=DIZdBnOuBgdGTMoUZD3vnT44jEwqasSjV6wKiQvM2mY,421
|
|
@@ -3961,7 +3966,7 @@ windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1li
|
|
|
3961
3966
|
windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
|
|
3962
3967
|
windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
|
|
3963
3968
|
windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
|
|
3964
|
-
windmill_api-1.491.
|
|
3965
|
-
windmill_api-1.491.
|
|
3966
|
-
windmill_api-1.491.
|
|
3967
|
-
windmill_api-1.491.
|
|
3969
|
+
windmill_api-1.491.5.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
|
|
3970
|
+
windmill_api-1.491.5.dist-info/METADATA,sha256=GsEjO44eve4PLCUzvMLnR34MNx0SeF_jQ5kOOqdIMS4,5023
|
|
3971
|
+
windmill_api-1.491.5.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
3972
|
+
windmill_api-1.491.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|