Skip to main content
WEBHOOK
metric.created
{
  "id": "evt_7n42DGM5Tflk9n8mt7Fhc7",
  "type": "metric.created",
  "metric_id": "bm_7n42DGM5Tflk9n8mt7Fhc7",
  "name": "Api Calls",
  "code": "api_calls",
  "aggregation_type": "COUNT",
  "created_at": "1970-01-01T00:00:00",
  "product_family_id": "pf_7n42DGM5Tflk9n8mt7Fhc7",
  "timestamp": "1970-01-01T00:00:00.000Z"
}

Body

application/json
aggregation_type
enum<string>
required
Available options:
COUNT,
LATEST,
MAX,
MIN,
MEAN,
SUM,
COUNT_DISTINCT
code
string
required
created_at
string<date-time>
required
metric_id
string<MeteroidId>
required
Example:

"bm_7n42DGM5Tflk9n8mt7Fhc7"

name
string
required
product_family_id
string<MeteroidId>
required
Example:

"pf_7n42DGM5Tflk9n8mt7Fhc7"

id
string<MeteroidId>
required
Example:

"evt_7n42DGM5Tflk9n8mt7Fhc7"

timestamp
string<date-time>
required
type
enum<string>
required
Available options:
metric.created,
customer.created,
subscription.created,
invoice.created,
invoice.finalized,
invoice.paid,
invoice.voided,
quote.accepted,
quote.converted,
credit_note.created,
credit_note.finalized,
credit_note.voided
aggregation_key
string | null
description
string | null
product_id
null | string<MeteroidId>
Example:

"prd_7n42DGM5Tflk9n8mt7Fhc7"

segmentation_matrix
object
unit_conversion_factor
integer<int32> | null
unit_conversion_rounding
null | enum<string>
Available options:
UP,
DOWN,
NEAREST,
NEAREST_HALF,
NEAREST_DECILE,
NONE
usage_group_key
string | null

Response

200

Webhook received successfully