The billable metric object
This object represents a billable metric that is a pricing component of your application.
Attributes
Unique identifier of the billable metric created by Lago.
Name of the billable metric.
Unique code used to identify the billable metric associated with the API request. This code associates each event with the correct metric.
Internal description of the billable metric.
Creation date of the billable metric.
Defines if the billable metric is persisted billing period over billing
period. - if set to true
: the accumulated number of units calculated
from previous the previous billing period is persisted to the next billing
period. - if set to false
: the accumulated number of units is reset to 0
at the end of the billing period. If not defined in the request, default
value is false
.
Property of the billable metric used for aggregating usage data. This
field is not required for count_agg
.
Aggregation method used to compute usage for this billable metric.
Possible values are count_agg
, sum_agg
, max_agg
, unique_count_agg
,
latest_agg
or weighted_sum_agg
.
Parameter exclusively utilized in conjunction with the weighted_sum_agg
aggregation type. It serves to adjust the aggregation result by assigning
weights and proration to the result based on time intervals. When this
field is not provided, the default time interval is assumed to be in
seconds
.
Number of active subscriptions using this billable metric.
Number of draft invoices for which this billable metric is listed as an invoice item.
Number of plans using this billable metric.
Was this page helpful?