pub struct BillingMeterEventSummary {
pub aggregated_value: f64,
pub end_time: Timestamp,
pub id: BillingMeterEventSummaryId,
pub livemode: bool,
pub meter: String,
pub start_time: Timestamp,
}
Expand description
A billing meter event summary represents an aggregated view of a customer’s billing meter events within a specified timeframe. It indicates how much. usage was accrued by a customer for that period.
Note: Meters events are aggregated asynchronously so the meter event summaries provide an eventually consistent view of the reported usage.
Fields§
§aggregated_value: f64
Aggregated value of all the events within start_time
(inclusive) and end_time
(inclusive).
The aggregation strategy is defined on meter via default_aggregation
.
end_time: Timestamp
End timestamp for this event summary (exclusive). Must be aligned with minute boundaries.
id: BillingMeterEventSummaryId
Unique identifier for the object.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
meter: String
The meter associated with this event summary.
start_time: Timestamp
Start timestamp for this event summary (inclusive). Must be aligned with minute boundaries.
Trait Implementations§
Source§impl Clone for BillingMeterEventSummary
impl Clone for BillingMeterEventSummary
Source§fn clone(&self) -> BillingMeterEventSummary
fn clone(&self) -> BillingMeterEventSummary
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more