import { MeterUpdate } from "@polar-sh/sdk/models/components/meterupdate.js";
let value: MeterUpdate = {};
Field | Type | Required | Description |
---|---|---|---|
metadata |
Record<string, components.MeterUpdateMetadata> | ➖ | 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 floating-point number * A boolean You can store up to 50 key-value pairs. |
name |
string | ➖ | The name of the meter. Will be shown on customer's invoices and usage. |
filter |
components.Filter | ➖ | The filter to apply on events that'll be used to calculate the meter. |
aggregation |
components.Aggregation | ➖ | The aggregation to apply on the filtered events to calculate the meter. |