Skip to content

Commit 6e955d0

Browse files
feat(api): api update
1 parent d28246f commit 6e955d0

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 126
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-9f1a41612765cb08d100b2c9e85080e93306e8d0942d535f16052c3eb18d9b8b.yml
3-
openapi_spec_hash: 6dd28f36adc7e7d6a9245585eaf9b9c1
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-931771ff4ab183044ee50ce43ea794ac0a15bfafbaf7df61ac0344af3ff08944.yml
3+
openapi_spec_hash: 71371804e373f662585284bf5d93cc62
44
config_hash: bcf82bddb691f6be773ac6cae8c03b9a

src/orb/types/alert.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from .shared.customer_minified import CustomerMinified
1010
from .shared.subscription_minified import SubscriptionMinified
1111

12-
__all__ = ["Alert", "Metric", "Plan", "BalanceAlertStatus"]
12+
__all__ = ["Alert", "Metric", "Plan", "BalanceAlertStatus", "LicenseType"]
1313

1414

1515
class Metric(BaseModel):
@@ -45,6 +45,12 @@ class BalanceAlertStatus(BaseModel):
4545
"""The value of the threshold that defines the alert status."""
4646

4747

48+
class LicenseType(BaseModel):
49+
"""Minified license type for alert serialization."""
50+
51+
id: str
52+
53+
4854
class Alert(BaseModel):
4955
"""
5056
[Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
@@ -89,6 +95,7 @@ class Alert(BaseModel):
8995
"credit_balance_recovered",
9096
"usage_exceeded",
9197
"cost_exceeded",
98+
"license_balance_threshold_reached",
9299
]
93100
"""The type of alert. This must be a valid alert type."""
94101

@@ -97,3 +104,6 @@ class Alert(BaseModel):
97104
98105
This field is only present for credit balance alerts.
99106
"""
107+
108+
license_type: Optional[LicenseType] = None
109+
"""Minified license type for alert serialization."""

0 commit comments

Comments
 (0)