diff --git a/.stats.yml b/.stats.yml index 7160aed..7b8637e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 87 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/metronome%2Fmetronome-a83ff5a3ed0bb0ce329357e0290df446d3df66a4aff49485e000583a96218958.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/metronome%2Fmetronome-a768b0f393f0bf1275ac72a93f699d10beb70bb4200fdaa998bb28eed3dce95b.yml diff --git a/src/resources/billable-metrics.ts b/src/resources/billable-metrics.ts index 4611761..8c6deb0 100644 --- a/src/resources/billable-metrics.ts +++ b/src/resources/billable-metrics.ts @@ -83,10 +83,22 @@ export namespace BillableMetricRetrieveResponse { */ id: string; + /** + * The display name of the billable metric. + */ + name: string; + + /** + * A key that specifies which property of the event is used to aggregate data. This + * key must be one of the property filter names and is not applicable when the + * aggregation type is 'count'. + */ + aggregation_key?: string; + /** * Specifies the type of aggregation performed on matching events. */ - aggregation_type: + aggregation_type?: | 'count' | 'Count' | 'COUNT' @@ -103,18 +115,6 @@ export namespace BillableMetricRetrieveResponse { | 'Unique' | 'UNIQUE'; - /** - * The display name of the billable metric. - */ - name: string; - - /** - * A key that specifies which property of the event is used to aggregate data. This - * key must be one of the property filter names and is not applicable when the - * aggregation type is 'count'. - */ - aggregation_key?: string; - custom_fields?: Record; /** @@ -134,6 +134,11 @@ export namespace BillableMetricRetrieveResponse { * billable metric. */ property_filters?: Array; + + /** + * The SQL query associated with the billable metric + */ + sql?: string; } export namespace Data { @@ -260,6 +265,11 @@ export interface BillableMetricListResponse { * billable metric. */ property_filters?: Array; + + /** + * The SQL query associated with the billable metric + */ + sql?: string; } export namespace BillableMetricListResponse { diff --git a/src/resources/customers/customers.ts b/src/resources/customers/customers.ts index db023cf..b56e5a1 100644 --- a/src/resources/customers/customers.ts +++ b/src/resources/customers/customers.ts @@ -321,6 +321,11 @@ export interface CustomerListBillableMetricsResponse { * billable metric. */ property_filters?: Array; + + /** + * The SQL query associated with the billable metric + */ + sql?: string; } export namespace CustomerListBillableMetricsResponse {