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

# Attach bounded content-free operational measurements to the active revision



## OpenAPI

````yaml /openapi.json post /api/v1/deployments/{name}/measurements
openapi: 3.1.0
info:
  description: >-
    Durable, authenticated control-plane operations. Mutation responses may
    outlive the requesting client.
  title: InferCrane Control API
  version: 2.0.0
servers:
  - description: Local InferCrane API and gateway
    url: http://127.0.0.1:18000
security: []
tags:
  - name: Admission
  - name: Adoption
  - name: Alerts
  - name: Async inference
  - name: Audit
  - name: Autopilot
  - name: Benchmarks
  - name: Burst Guard
  - name: Capacity intelligence
  - name: Context Passport
  - name: Deployments
  - name: Diagnostics
  - name: Endpoints
  - name: External capacity
  - name: FinOps
  - name: Identity
  - name: Inference
  - name: Inference Lab
  - name: Inference decisions
  - name: Infrastructure
  - name: Model artifacts
  - name: Model catalog
  - name: Monitoring
  - name: Operations
  - name: Providers
  - name: Recipes
  - name: Release Guard
  - name: Release evidence
  - name: Replay
  - name: Revisions
  - name: Routing
  - name: Sandboxes
  - name: Scaling
  - name: Secrets
  - name: System
  - name: Targets
  - name: Training lineage
paths:
  /api/v1/deployments/{name}/measurements:
    post:
      tags:
        - Monitoring
      summary: >-
        Attach bounded content-free operational measurements to the active
        revision
      operationId: recordOperationalMeasurements
      parameters:
        - in: path
          name: name
          required: true
          schema:
            minLength: 1
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OperationalMeasurementIngest'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectList'
          description: Created
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Typed API error
      security:
        - bearerAuth: []
components:
  schemas:
    OperationalMeasurementIngest:
      additionalProperties: false
      properties:
        evidence_class:
          enum:
            - measured
            - provider_reported
          type: string
        measurements:
          items:
            $ref: '#/components/schemas/OperationalMeasurementValue'
          maxItems: 32
          minItems: 1
          type: array
        observed_at:
          format: date-time
          type: string
        replica_id:
          maxLength: 255
          type: string
        source:
          maxLength: 128
          minLength: 1
          type: string
        valid_until:
          format: date-time
          type: string
      required:
        - source
        - evidence_class
        - observed_at
        - valid_until
        - measurements
      type: object
    ObjectList:
      properties:
        data:
          items:
            additionalProperties: true
            type: object
          type: array
      required:
        - data
      type: object
    ErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/Error'
      required:
        - error
      type: object
    OperationalMeasurementValue:
      additionalProperties: false
      properties:
        name:
          pattern: ^[a-z][a-z0-9_]{0,63}$
          type: string
        sample_count:
          minimum: 1
          type: integer
        unit:
          pattern: ^[a-z][a-z0-9_]{0,63}$
          type: string
        value:
          type: number
      required:
        - name
        - value
        - unit
        - sample_count
      type: object
    Error:
      properties:
        category:
          type: string
        code:
          type: string
        message:
          type: string
        remediation:
          type: string
        request_id:
          type: string
        retryable:
          type: boolean
      required:
        - code
        - message
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````