"use client"; import React from "react"; import { BarChart3, Cpu, Clock, DollarSign, Users, Zap } from "lucide-react"; import { Card, CardBody, CardHeader, CardTitle } from "@/components/ui/Card"; import { Badge } from "@/components/ui/Badge"; import { MetricCard } from "@/components/ui/MetricCard"; const MONTHS = ["Jul", "Aug", "Sep", "Oct", "Nov"]; const SERIES = [ { label: "AI tokens (M)", data: [0.1, 0.8, 1.4, 2.9, 4.2], tone: "bg-violet-400" }, { label: "Jobs executed", data: [120, 280, 412, 688, 904], tone: "bg-brand-400" }, ]; function Bar({ label, values, tone }: { label: string; values: number[]; tone: string }) { const max = Math.max(...values, 1); return (
Tenant-level metering: AI tokens, background jobs, projects, seats and estimated cost.
| Tenant | Projects | Users | Jobs (7d) | Tokens (7d, M) | Cost (7d) |
|---|---|---|---|---|---|
| {r.name} | {r.projects} | {r.users} | {r.jobs_7d} | {r.tokens_7d.toFixed(2)} | ${r.cost_7d.toFixed(2)} |