Skip to content

Commit

Permalink
feat(felixible aggregation): Expose expression in API
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-pochet committed Oct 24, 2024
1 parent 441c71d commit a4b443d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions billable_metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ type BillableMetricInput struct {
Description string `json:"description,omitempty"`
AggregationType AggregationType `json:"aggregation_type,omitempty"`
Recurring bool `json:"recurring,omitempty"`
Expression string `json:"expression,omitempty"`
FieldName string `json:"field_name"`
WeightedInterval WeightedInterval `json:"weighted_interval,omitempty"`
Filters []BillableMetricFilter `json:"filters,omitempty"`
Expand Down Expand Up @@ -68,6 +69,7 @@ type BillableMetric struct {
Description string `json:"description,omitempty"`
Recurring bool `json:"recurring,omitempty"`
AggregationType AggregationType `json:"aggregation_type,omitempty"`
Expression string `json:"expression,omitempty"`
FieldName string `json:"field_name"`
CreatedAt time.Time `json:"created_at,omitempty"`
WeightedInterval *WeightedInterval `json:"weighted_interval,omitempty"`
Expand Down

0 comments on commit a4b443d

Please sign in to comment.