| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# File generated from our OpenAPI spec |
| 3 |
from stripe._stripe_object import StripeObject |
| 4 |
from typing import ClassVar |
| 5 |
from typing_extensions import Literal, TYPE_CHECKING |
| 6 |
|
| 7 |
if TYPE_CHECKING: |
| 8 |
from stripe.billing._alert import Alert |
| 9 |
|
| 10 |
|
| 11 |
class AlertTriggered(StripeObject): |
| 12 |
OBJECT_NAME: ClassVar[Literal["billing.alert_triggered"]] = ( |
| 13 |
"billing.alert_triggered" |
| 14 |
) |
| 15 |
alert: "Alert" |
| 16 |
""" |
| 17 |
A billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed. For example, you might create a billing alert to notify you when a certain user made 100 API requests. |
| 18 |
""" |
| 19 |
created: int |
| 20 |
""" |
| 21 |
Time at which the object was created. Measured in seconds since the Unix epoch. |
| 22 |
""" |
| 23 |
customer: str |
| 24 |
""" |
| 25 |
ID of customer for which the alert triggered |
| 26 |
""" |
| 27 |
livemode: bool |
| 28 |
""" |
| 29 |
Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. |
| 30 |
""" |
| 31 |
object: Literal["billing.alert_triggered"] |
| 32 |
""" |
| 33 |
String representing the object's type. Objects of the same type share the same value. |
| 34 |
""" |
| 35 |
value: int |
| 36 |
""" |
| 37 |
The value triggering the alert |
| 38 |
""" |