curl --request POST \
--url https://api.example.com/api/v1/metrics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"aggregation_type": "COUNT",
"code": "<string>",
"name": "<string>",
"product_family_id": "<string>",
"aggregation_key": "<string>",
"description": "<string>",
"product_id": "prd_7n42DGM5Tflk9n8mt7Fhc7",
"segmentation_matrix": {
"key": "<string>",
"values": [
"<string>"
]
},
"unit_conversion": {
"factor": 123,
"rounding": "UP"
},
"usage_group_key": "<string>"
}
'{
"aggregation_type": "COUNT",
"code": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"name": "<string>",
"product_family_id": "<string>",
"aggregation_key": "<string>",
"archived_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"product_id": "prd_7n42DGM5Tflk9n8mt7Fhc7",
"segmentation_matrix": {
"key": "<string>",
"values": [
"<string>"
]
},
"unit_conversion": {
"factor": 123,
"rounding": "UP"
},
"usage_group_key": "<string>"
}curl --request POST \
--url https://api.example.com/api/v1/metrics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"aggregation_type": "COUNT",
"code": "<string>",
"name": "<string>",
"product_family_id": "<string>",
"aggregation_key": "<string>",
"description": "<string>",
"product_id": "prd_7n42DGM5Tflk9n8mt7Fhc7",
"segmentation_matrix": {
"key": "<string>",
"values": [
"<string>"
]
},
"unit_conversion": {
"factor": 123,
"rounding": "UP"
},
"usage_group_key": "<string>"
}
'{
"aggregation_type": "COUNT",
"code": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"name": "<string>",
"product_family_id": "<string>",
"aggregation_key": "<string>",
"archived_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"product_id": "prd_7n42DGM5Tflk9n8mt7Fhc7",
"segmentation_matrix": {
"key": "<string>",
"values": [
"<string>"
]
},
"unit_conversion": {
"factor": 123,
"rounding": "UP"
},
"usage_group_key": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
COUNT, LATEST, MAX, MIN, MEAN, SUM, COUNT_DISTINCT "pf_7n42DGM5Tflk9n8mt7Fhc7"
"prd_7n42DGM5Tflk9n8mt7Fhc7"
Show child attributes
Show child attributes
Metric created
COUNT, LATEST, MAX, MIN, MEAN, SUM, COUNT_DISTINCT "bm_7n42DGM5Tflk9n8mt7Fhc7"
"pf_7n42DGM5Tflk9n8mt7Fhc7"
"prd_7n42DGM5Tflk9n8mt7Fhc7"
Show child attributes
Show child attributes