Debian Codegraph @

stripe/billing/_meter_event_summary.py

raw
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
6
7
8 class MeterEventSummary(StripeObject):
9 """
10 A billing meter event summary represents an aggregated view of a customer's billing meter events within a specified timeframe. It indicates how much
11 usage was accrued by a customer for that period.
12
13 Note: Meters events are aggregated asynchronously so the meter event summaries provide an eventually consistent view of the reported usage.
14 """
15
16 OBJECT_NAME: ClassVar[Literal["billing.meter_event_summary"]] = (
17 "billing.meter_event_summary"
18 )
19 aggregated_value: float
20 """
21 Aggregated value of all the events within `start_time` (inclusive) and `end_time` (inclusive). The aggregation strategy is defined on meter via `default_aggregation`.
22 """
23 end_time: int
24 """
25 End timestamp for this event summary (exclusive). Must be aligned with minute boundaries.
26 """
27 id: str
28 """
29 Unique identifier for the object.
30 """
31 livemode: bool
32 """
33 Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
34 """
35 meter: str
36 """
37 The meter associated with this event summary.
38 """
39 object: Literal["billing.meter_event_summary"]
40 """
41 String representing the object's type. Objects of the same type share the same value.
42 """
43 start_time: int
44 """
45 Start timestamp for this event summary (inclusive). Must be aligned with minute boundaries.
46 """