A simple ViewSet for viewing and editing Billable Metrics.
Request body
Name of the event that this metric is tracking.
The name of the property of the event that should be used for this metric. Doesn't apply if the metric is of type 'counter' with an aggregation of count.
The type of aggregation that should be used for this metric. Please refer to our documentation for an explanation of the different types.
The granularity of the metric. Only applies to metrics of type 'gauge' or 'rate'.
Used only for metrics of type 'gauge'. Please refer to our documentation for an explanation of the different types.
The type of metric that this is. Please refer to our documentation for an explanation of the different types.
The proration of the metric. Only applies to metrics of type 'gauge'.
Whether or not this metric is a cost metric (used to track costs to your business).
A custom SQL query that can be used to define the metric. Please refer to our documentation for more information.
Response
Name of the event that this metric is tracking.
The name of the property of the event that should be used for this metric. Doesn't apply if the metric is of type 'counter' with an aggregation of count.
The granularity of the metric. Only applies to metrics of type 'gauge' or 'rate'.
Used only for metrics of type 'gauge'. Please refer to our documentation for an explanation of the different types.
The type of metric that this is. Please refer to our documentation for an explanation of the different types.
Whether or not this metric is a cost metric (used to track costs to your business).
A custom SQL query that can be used to define the metric. Please refer to our documentation for more information.
The proration of the metric. Only applies to metrics of type 'gauge'.