View Source Stripe.Billing.MeterEventSummary (stripity_stripe v3.3.1)
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.
Summary
Functions
Retrieve a list of billing meter event summaries.
Types
@type t() :: %Stripe.Billing.MeterEventSummary{ aggregated_value: term(), end_time: integer(), id: binary(), livemode: boolean(), meter: binary(), object: binary(), start_time: integer() }
The billing.meter_event_summary type.
aggregated_valueAggregated value of all the events withinstart_time(inclusive) andend_time(inclusive). The aggregation strategy is defined on meter viadefault_aggregation.end_timeEnd timestamp for this event summary (exclusive). Must be aligned with minute boundaries.idUnique identifier for the object.livemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.meterThe meter associated with this event summary.objectString representing the object's type. Objects of the same type share the same value.start_timeStart timestamp for this event summary (inclusive). Must be aligned with minute boundaries.
Functions
@spec list( id :: binary(), params :: %{ optional(:customer) => binary(), optional(:end_time) => integer(), optional(:ending_before) => binary(), optional(:expand) => [binary()], optional(:limit) => integer(), optional(:start_time) => integer(), optional(:starting_after) => binary(), optional(:value_grouping_window) => :day | :hour }, opts :: Keyword.t() ) :: {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Retrieve a list of billing meter event summaries.
Details
- Method:
get - Path:
/v1/billing/meters/{id}/event_summaries