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.

jobs.stats

Get job queue statistics.

  • Type: operation (query)
  • Version: 1.0.0
  • Stability: stable
  • Owners: platform.jobs
  • Tags: jobs, stats, admin
  • File: packages/libs/jobs/src/contracts/index.ts
  • field.key.label
    jobs.stats
    field.version.label
    1.0.0
    field.type.label
    operation (query)
    field.title.label
    jobs.stats
    field.description.label

    Get job queue statistics.

  • Type: operation (query)
  • Version: 1.0.0
  • Stability: stable
  • Owners: platform.jobs
  • Tags: jobs, stats, admin
  • File: packages/libs/jobs/src/contracts/index.ts
  • field.tags.label
    jobs,stats,admin
    field.owners.label
    platform.jobs
    field.stability.label
    stable

    Get job queue statistics.

    Goal

    Monitor queue health and backlog.

    Context

    Admin dashboard monitoring.

    Source Definition

    import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
    import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
    
    export const GetQueueStatsContract = defineQuery({
    	meta: {
    		key: 'jobs.stats',
    		version: '1.0.0',
    		stability: 'stable',
    		owners: ['platform.jobs'],
    		tags: ['jobs', 'stats', 'admin'],
    		description: 'Get job queue statistics.',
    		goal: 'Monitor queue health and backlog.',
    		context: 'Admin dashboard monitoring.',
    	},
    	io: {
    		input: null,
    		output: QueueStatsModel,
    	},
    	policy: {
    		auth: 'admin',
    	},
    });