import { Meter } from "@polar-sh/sdk/models/components/meter.js";
let value: Meter = {
metadata: {
"key": false,
},
createdAt: new Date("2025-09-14T17:23:49.285Z"),
modifiedAt: new Date("2024-12-11T11:25:49.041Z"),
id: "<value>",
name: "<value>",
filter: {
conjunction: "and",
clauses: [],
},
aggregation: {
func: "sum",
property: "<value>",
},
organizationId: "<value>",
};
Field |
Type |
Required |
Description |
metadata |
Record<string, components.MeterMetadata> |
✔️ |
N/A |
createdAt |
Date |
✔️ |
Creation timestamp of the object. |
modifiedAt |
Date |
✔️ |
Last modification timestamp of the object. |
id |
string |
✔️ |
The ID of the object. |
name |
string |
✔️ |
The name of the meter. Will be shown on customer's invoices and usage. |
filter |
components.Filter |
✔️ |
N/A |
aggregation |
components.MeterAggregation |
✔️ |
The aggregation to apply on the filtered events to calculate the meter. |
organizationId |
string |
✔️ |
The ID of the organization owning the meter. |