OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
Get usage records for a subject.
Goal
View detailed usage history.
Context
Called to analyze usage.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
export const GetUsageContract = defineQuery({
meta: {
key: 'usage.get',
version: '1.0.0',
stability: 'stable',
owners: ['platform.metering'],
tags: ['metering', 'usage', 'get'],
description: 'Get usage records for a subject.',
goal: 'View detailed usage history.',
context: 'Called to analyze usage.',
},
io: {
input: GetUsageInput,
output: GetUsageOutput,
},
policy: {
auth: 'user',
},
});