Octane · Schema

Measurement

A usage measurement submitted to Octane for tracking and billing purposes.

Usage-Based BillingMetered BillingPricing PlansSaaS MonetizationFinTechPaymentsUsage TrackingMetersEntitlements

Properties

Name Type Description
id string Unique identifier for the measurement.
meter_name string Name of the meter this measurement belongs to.
customer_name string Name of the customer this measurement belongs to.
event_name string Name of the event that generated this measurement.
value number The measured numeric value.
time string Timestamp of when the measurement occurred.
labels object Key-value labels associated with the measurement for filtering and grouping.
reset_total boolean Whether to reset the running total for this customer/meter combination.
View JSON Schema on GitHub

JSON Schema

octane-measurement-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/octane/main/json-schema/octane-measurement-schema.json",
  "title": "Measurement",
  "description": "A usage measurement submitted to Octane for tracking and billing purposes.",
  "type": "object",
  "required": ["value"],
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the measurement."
    },
    "meter_name": {
      "type": "string",
      "description": "Name of the meter this measurement belongs to."
    },
    "customer_name": {
      "type": "string",
      "description": "Name of the customer this measurement belongs to."
    },
    "event_name": {
      "type": "string",
      "description": "Name of the event that generated this measurement."
    },
    "value": {
      "type": "number",
      "description": "The measured numeric value."
    },
    "time": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of when the measurement occurred."
    },
    "labels": {
      "type": "object",
      "additionalProperties": { "type": "string" },
      "description": "Key-value labels associated with the measurement for filtering and grouping."
    },
    "reset_total": {
      "type": "boolean",
      "description": "Whether to reset the running total for this customer/meter combination."
    }
  },
  "additionalProperties": false
}