Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Aug 20, 2024
1 parent 30fd815 commit d9fbbb6
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
36 changes: 23 additions & 13 deletions src/resources/billable-metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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<string, string>;

/**
Expand All @@ -134,6 +134,11 @@ export namespace BillableMetricRetrieveResponse {
* billable metric.
*/
property_filters?: Array<Data.PropertyFilter>;

/**
* The SQL query associated with the billable metric
*/
sql?: string;
}

export namespace Data {
Expand Down Expand Up @@ -260,6 +265,11 @@ export interface BillableMetricListResponse {
* billable metric.
*/
property_filters?: Array<BillableMetricListResponse.PropertyFilter>;

/**
* The SQL query associated with the billable metric
*/
sql?: string;
}

export namespace BillableMetricListResponse {
Expand Down
5 changes: 5 additions & 0 deletions src/resources/customers/customers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,11 @@ export interface CustomerListBillableMetricsResponse {
* billable metric.
*/
property_filters?: Array<CustomerListBillableMetricsResponse.PropertyFilter>;

/**
* The SQL query associated with the billable metric
*/
sql?: string;
}

export namespace CustomerListBillableMetricsResponse {
Expand Down

0 comments on commit d9fbbb6

Please sign in to comment.