Retrieve
Get a billable metric
v1.billable_metrics.retrieve(BillableMetricRetrieveParams**kwargs) -> dataDataBillableMetricRetrieveResponse
get/v1/billable-metrics/{billable_metric_id}
Get a billable metric.
Parameters
billable_metric_idstr
formatuuid
Returns
BillableMetricRetrieveResponseclass
from metronome import Metronome
client = Metronome(
bearer_token="My Bearer Token",
)
billable_metric = client.v1.billable_metrics.retrieve(
billable_metric_id="13117714-3f05-48e5-a6e9-a66093f13b4d",
)
print(billable_metric.data)
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"
}
}