Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): OpenAPI spec update via Stainless API #67

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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