SerenAI

Pay Per Call Agentic Commerce

RevenueMetrics

Revenue metrics with period-over-period comparison.

Properties

PropertyTypeRequiredDescription
active_agents integer Yes Number of active agents in the period
agents_change_pct integer Yes Agent count change from previous period (percentage)
avg_query_cost_atomic integer Yes Average query cost (atomic units)
period_end string Yes Period end date (ISO 8601)
period_start string Yes Period start date (ISO 8601)
queries_change_pct integer Yes Query count change from previous period (percentage)
revenue_change_pct integer Yes Revenue change from previous period (percentage, e.g., 15 = +15%)
total_queries integer Yes Total queries executed in the period
total_revenue string Yes Total revenue as decimal string
total_revenue_atomic integer Yes Total revenue in the period (atomic units)
View JSON Schema
{
  "type": "object",
  "description": "Revenue metrics with period-over-period comparison.",
  "required": [
    "total_revenue_atomic",
    "total_revenue",
    "active_agents",
    "total_queries",
    "avg_query_cost_atomic",
    "revenue_change_pct",
    "agents_change_pct",
    "queries_change_pct",
    "period_start",
    "period_end"
  ],
  "properties": {
    "active_agents": {
      "type": "integer",
      "format": "int64",
      "description": "Number of active agents in the period"
    },
    "agents_change_pct": {
      "type": "integer",
      "format": "int32",
      "description": "Agent count change from previous period (percentage)"
    },
    "avg_query_cost_atomic": {
      "type": "integer",
      "format": "int64",
      "description": "Average query cost (atomic units)"
    },
    "period_end": {
      "type": "string",
      "description": "Period end date (ISO 8601)"
    },
    "period_start": {
      "type": "string",
      "description": "Period start date (ISO 8601)"
    },
    "queries_change_pct": {
      "type": "integer",
      "format": "int32",
      "description": "Query count change from previous period (percentage)"
    },
    "revenue_change_pct": {
      "type": "integer",
      "format": "int32",
      "description": "Revenue change from previous period (percentage, e.g., 15 = +15%)"
    },
    "total_queries": {
      "type": "integer",
      "format": "int64",
      "description": "Total queries executed in the period"
    },
    "total_revenue": {
      "type": "string",
      "description": "Total revenue as decimal string"
    },
    "total_revenue_atomic": {
      "type": "integer",
      "format": "int64",
      "description": "Total revenue in the period (atomic units)"
    }
  }
}