|
26 | 26 | from ..pagination import SyncPage, AsyncPage |
27 | 27 | from ..types.alert import Alert |
28 | 28 | from .._base_client import AsyncPaginator, make_request_options |
| 29 | +from ..types.threshold_param import ThresholdParam |
29 | 30 |
|
30 | 31 | __all__ = ["Alerts", "AsyncAlerts"] |
31 | 32 |
|
@@ -87,7 +88,7 @@ def update( |
87 | 88 | self, |
88 | 89 | alert_configuration_id: str, |
89 | 90 | *, |
90 | | - thresholds: Iterable[alert_update_params.Threshold], |
| 91 | + thresholds: Iterable[ThresholdParam], |
91 | 92 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
92 | 93 | # The extra values given here take precedence over values defined on the client or passed to this method. |
93 | 94 | extra_headers: Headers | None = None, |
@@ -213,7 +214,7 @@ def create_for_customer( |
213 | 214 | *, |
214 | 215 | currency: str, |
215 | 216 | type: Literal["credit_balance_depleted", "credit_balance_dropped", "credit_balance_recovered"], |
216 | | - thresholds: Optional[Iterable[alert_create_for_customer_params.Threshold]] | NotGiven = NOT_GIVEN, |
| 217 | + thresholds: Optional[Iterable[ThresholdParam]] | NotGiven = NOT_GIVEN, |
217 | 218 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
218 | 219 | # The extra values given here take precedence over values defined on the client or passed to this method. |
219 | 220 | extra_headers: Headers | None = None, |
@@ -278,7 +279,7 @@ def create_for_external_customer( |
278 | 279 | *, |
279 | 280 | currency: str, |
280 | 281 | type: Literal["credit_balance_depleted", "credit_balance_dropped", "credit_balance_recovered"], |
281 | | - thresholds: Optional[Iterable[alert_create_for_external_customer_params.Threshold]] | NotGiven = NOT_GIVEN, |
| 282 | + thresholds: Optional[Iterable[ThresholdParam]] | NotGiven = NOT_GIVEN, |
282 | 283 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
283 | 284 | # The extra values given here take precedence over values defined on the client or passed to this method. |
284 | 285 | extra_headers: Headers | None = None, |
@@ -343,7 +344,7 @@ def create_for_subscription( |
343 | 344 | self, |
344 | 345 | subscription_id: str, |
345 | 346 | *, |
346 | | - thresholds: Iterable[alert_create_for_subscription_params.Threshold], |
| 347 | + thresholds: Iterable[ThresholdParam], |
347 | 348 | type: Literal["usage_exceeded", "cost_exceeded"], |
348 | 349 | metric_id: Optional[str] | NotGiven = NOT_GIVEN, |
349 | 350 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -562,7 +563,7 @@ async def update( |
562 | 563 | self, |
563 | 564 | alert_configuration_id: str, |
564 | 565 | *, |
565 | | - thresholds: Iterable[alert_update_params.Threshold], |
| 566 | + thresholds: Iterable[ThresholdParam], |
566 | 567 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
567 | 568 | # The extra values given here take precedence over values defined on the client or passed to this method. |
568 | 569 | extra_headers: Headers | None = None, |
@@ -688,7 +689,7 @@ async def create_for_customer( |
688 | 689 | *, |
689 | 690 | currency: str, |
690 | 691 | type: Literal["credit_balance_depleted", "credit_balance_dropped", "credit_balance_recovered"], |
691 | | - thresholds: Optional[Iterable[alert_create_for_customer_params.Threshold]] | NotGiven = NOT_GIVEN, |
| 692 | + thresholds: Optional[Iterable[ThresholdParam]] | NotGiven = NOT_GIVEN, |
692 | 693 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
693 | 694 | # The extra values given here take precedence over values defined on the client or passed to this method. |
694 | 695 | extra_headers: Headers | None = None, |
@@ -753,7 +754,7 @@ async def create_for_external_customer( |
753 | 754 | *, |
754 | 755 | currency: str, |
755 | 756 | type: Literal["credit_balance_depleted", "credit_balance_dropped", "credit_balance_recovered"], |
756 | | - thresholds: Optional[Iterable[alert_create_for_external_customer_params.Threshold]] | NotGiven = NOT_GIVEN, |
| 757 | + thresholds: Optional[Iterable[ThresholdParam]] | NotGiven = NOT_GIVEN, |
757 | 758 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
758 | 759 | # The extra values given here take precedence over values defined on the client or passed to this method. |
759 | 760 | extra_headers: Headers | None = None, |
@@ -818,7 +819,7 @@ async def create_for_subscription( |
818 | 819 | self, |
819 | 820 | subscription_id: str, |
820 | 821 | *, |
821 | | - thresholds: Iterable[alert_create_for_subscription_params.Threshold], |
| 822 | + thresholds: Iterable[ThresholdParam], |
822 | 823 | type: Literal["usage_exceeded", "cost_exceeded"], |
823 | 824 | metric_id: Optional[str] | NotGiven = NOT_GIVEN, |
824 | 825 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
|
0 commit comments