Field | Type | Required | Description | Example |
---|---|---|---|---|
name |
str | ✔️ | The name of the meter. Will be shown on customer's invoices and usage. | |
filter_ |
models.Filter | ✔️ | N/A | |
aggregation |
models.MeterCreateAggregation | ✔️ | The aggregation to apply on the filtered events to calculate the meter. | |
metadata |
Dict[str, models.MeterCreateMetadata] | ➖ | Key-value object allowing you to store additional information. The key must be a string with a maximum length of 40 characters. The value must be either: * A string with a maximum length of 500 characters * An integer * A boolean You can store up to 50 key-value pairs. |
|
organization_id |
OptionalNullable[str] | ➖ | The ID of the organization owning the meter. Required unless you use an organization token. | 1dbfc517-0bbf-4301-9ba8-555ca42b9737 |