> ## Documentation Index
> Fetch the complete documentation index at: https://docs.calseta.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Metrics Summary

> Compact SOC health snapshot — always last 30 days.
No time window parameters — window is fixed per PRD.
Optimized for agent context injection (low token cost).



## OpenAPI

````yaml GET /v1/metrics/summary
openapi: 3.1.0
info:
  title: Calseta
  description: SOC data platform for security agent consumption
  version: dev
servers: []
security: []
paths:
  /v1/metrics/summary:
    get:
      tags:
        - metrics
      summary: Get Metrics Summary
      description: |-
        Compact SOC health snapshot — always last 30 days.
        No time window parameters — window is fixed per PRD.
        Optimized for agent context injection (low token cost).
      operationId: get_metrics_summary_v1_metrics_summary_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataResponse_MetricsSummaryResponse_'
components:
  schemas:
    DataResponse_MetricsSummaryResponse_:
      properties:
        data:
          $ref: '#/components/schemas/MetricsSummaryResponse'
        meta:
          additionalProperties: true
          type: object
          title: Meta
      type: object
      required:
        - data
      title: DataResponse[MetricsSummaryResponse]
    MetricsSummaryResponse:
      properties:
        period:
          type: string
          title: Period
          default: last_30_days
        alerts:
          $ref: '#/components/schemas/MetricsSummaryAlerts'
        workflows:
          $ref: '#/components/schemas/MetricsSummaryWorkflows'
        approvals:
          $ref: '#/components/schemas/MetricsSummaryApprovals'
        platform:
          $ref: '#/components/schemas/MetricsSummaryPlatform'
        queue:
          anyOf:
            - $ref: '#/components/schemas/MetricsSummaryQueue'
            - type: 'null'
      type: object
      required:
        - alerts
        - workflows
        - approvals
        - platform
      title: MetricsSummaryResponse
    MetricsSummaryAlerts:
      properties:
        total:
          type: integer
          title: Total
        active:
          type: integer
          title: Active
        by_severity:
          additionalProperties:
            type: integer
          type: object
          title: By Severity
        by_status:
          additionalProperties:
            type: integer
          type: object
          title: By Status
        by_source:
          additionalProperties:
            type: integer
          type: object
          title: By Source
        enrichment_coverage:
          type: number
          title: Enrichment Coverage
        mean_time_to_enrich_seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Mean Time To Enrich Seconds
        false_positive_rate:
          type: number
          title: False Positive Rate
        mttd_seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Mttd Seconds
        mtta_seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Mtta Seconds
        mttt_seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Mttt Seconds
        mttc_seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Mttc Seconds
      type: object
      required:
        - total
        - active
        - by_severity
        - by_status
        - by_source
        - enrichment_coverage
        - mean_time_to_enrich_seconds
        - false_positive_rate
        - mttd_seconds
        - mtta_seconds
        - mttt_seconds
        - mttc_seconds
      title: MetricsSummaryAlerts
    MetricsSummaryWorkflows:
      properties:
        total_configured:
          type: integer
          title: Total Configured
        executions:
          type: integer
          title: Executions
        success_rate:
          type: number
          title: Success Rate
        estimated_time_saved_hours:
          type: number
          title: Estimated Time Saved Hours
      type: object
      required:
        - total_configured
        - executions
        - success_rate
        - estimated_time_saved_hours
      title: MetricsSummaryWorkflows
    MetricsSummaryApprovals:
      properties:
        pending:
          type: integer
          title: Pending
        approved_last_30_days:
          type: integer
          title: Approved Last 30 Days
        approval_rate:
          type: number
          title: Approval Rate
        median_response_time_minutes:
          anyOf:
            - type: number
            - type: 'null'
          title: Median Response Time Minutes
      type: object
      required:
        - pending
        - approved_last_30_days
        - approval_rate
        - median_response_time_minutes
      title: MetricsSummaryApprovals
    MetricsSummaryPlatform:
      properties:
        context_documents:
          type: integer
          title: Context Documents
        detection_rules:
          type: integer
          title: Detection Rules
        enrichment_providers:
          type: integer
          title: Enrichment Providers
        enrichment_providers_by_indicator_type:
          additionalProperties:
            type: integer
          type: object
          title: Enrichment Providers By Indicator Type
        agents:
          type: integer
          title: Agents
        workflows:
          type: integer
          title: Workflows
        indicator_mappings:
          type: integer
          title: Indicator Mappings
      type: object
      required:
        - context_documents
        - detection_rules
        - enrichment_providers
        - enrichment_providers_by_indicator_type
        - agents
        - workflows
        - indicator_mappings
      title: MetricsSummaryPlatform
    MetricsSummaryQueue:
      properties:
        queues:
          items:
            $ref: '#/components/schemas/MetricsSummaryQueueEntry'
          type: array
          title: Queues
        total_pending:
          type: integer
          title: Total Pending
        total_in_progress:
          type: integer
          title: Total In Progress
        total_failed_30d:
          type: integer
          title: Total Failed 30D
        total_succeeded_30d:
          type: integer
          title: Total Succeeded 30D
        oldest_pending_age_seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Oldest Pending Age Seconds
      type: object
      required:
        - queues
        - total_pending
        - total_in_progress
        - total_failed_30d
        - total_succeeded_30d
        - oldest_pending_age_seconds
      title: MetricsSummaryQueue
    MetricsSummaryQueueEntry:
      properties:
        queue:
          type: string
          title: Queue
        pending:
          type: integer
          title: Pending
        in_progress:
          type: integer
          title: In Progress
        succeeded_30d:
          type: integer
          title: Succeeded 30D
        failed_30d:
          type: integer
          title: Failed 30D
        avg_duration_seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Avg Duration Seconds
        oldest_pending_age_seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Oldest Pending Age Seconds
      type: object
      required:
        - queue
        - pending
        - in_progress
        - succeeded_30d
        - failed_30d
        - avg_duration_seconds
        - oldest_pending_age_seconds
      title: MetricsSummaryQueueEntry

````