List
List all billable metrics
v1.billable_metrics.list(**kwargs) -> CursorPage<idStringnameStringaggregation_keyStringaggregation_typeunionarchived_atTimecustom_fieldshashevent_type_filterEventTypeFiltergroup_keysarrayproperty_filtersarraysqlStringBillableMetricListResponse>
get/v1/billable-metrics
List all billable metrics.
Parameters
include_archivedbool
optional
If true, the list of returned metrics will include archived metrics
limitInteger
optional
Max number of results that should be returned
minimum1
maximum100
next_pageString
optional
Cursor that indicates where the next page of results should start.
Returns
BillableMetricListResponseclass
require "metronome_sdk"
metronome = MetronomeSDK::Client.new(bearer_token: "My Bearer Token")
page = metronome.v1.billable_metrics.list
puts(page)
200 Example
{
"data": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "name",
"aggregation_key": "aggregation_key",
"aggregation_type": "COUNT",
"archived_at": "2019-12-27T18:11:19.117Z",
"custom_fields": {
"foo": "string"
},
"event_type_filter": {
"in_values": [
"string"
],
"not_in_values": [
"string"
]
},
"group_keys": [
[
"string"
]
],
"property_filters": [
{
"name": "name",
"exists": true,
"in_values": [
"string"
],
"not_in_values": [
"string"
]
}
],
"sql": "sql"
}
],
"next_page": "next_page"
}