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

# Get App Component Metrics



## OpenAPI

````yaml /api-reference/openapi.json get /api/runtime-security/apps/{app_uuid}/components/metrics
openapi: 3.1.0
info:
  title: Blindsight API
  version: 0.1.0
  description: >-
    The full Blindsight REST surface, generated from the running application.
    Replace the server host with your own deployment.


    For the Runtime Security integration surface (scan, proxy, tool calls) see
    the Runtime Security spec, which is hand written and carries worked
    examples.
servers:
  - url: https://api.your-blindsight.com
    description: Your Blindsight deployment
security: []
paths:
  /api/runtime-security/apps/{app_uuid}/components/metrics:
    get:
      tags:
        - runtime-security-apps
      summary: Get App Component Metrics
      operationId: >-
        get_app_component_metrics_api_runtime_security_apps__app_uuid__components_metrics_get
      parameters:
        - name: app_uuid
          in: path
          required: true
          schema:
            type: string
            title: App Uuid
        - name: window_days
          in: query
          required: false
          schema:
            type: integer
            default: 7
            title: Window Days
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppComponentMetrics'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AppComponentMetrics:
      properties:
        window_days:
          type: integer
          title: Window Days
        generated_at:
          type: string
          format: date-time
          title: Generated At
        rows:
          items:
            $ref: '#/components/schemas/AppComponentMetricsRow'
          type: array
          title: Rows
        unassigned:
          $ref: '#/components/schemas/AppComponentMetricsRow'
        totals:
          $ref: '#/components/schemas/AppComponentMetricsRow'
      type: object
      required:
        - window_days
        - generated_at
        - unassigned
        - totals
      title: AppComponentMetrics
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AppComponentMetricsRow:
      properties:
        component_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Component Id
        component_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Component Key
        kind:
          anyOf:
            - type: string
              enum:
                - llm
                - tool
                - retrieval
                - router
                - guardrail
                - output
                - custom
            - type: 'null'
          title: Kind
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        event_count:
          type: integer
          title: Event Count
          default: 0
        blocks:
          type: integer
          title: Blocks
          default: 0
        redacts:
          type: integer
          title: Redacts
          default: 0
        allows:
          type: integer
          title: Allows
          default: 0
        block_rate:
          type: number
          title: Block Rate
          default: 0
        redact_rate:
          type: number
          title: Redact Rate
          default: 0
        p95_injection_score:
          type: number
          title: P95 Injection Score
          default: 0
        unique_tokens:
          type: integer
          title: Unique Tokens
          default: 0
        unique_sessions:
          type: integer
          title: Unique Sessions
          default: 0
      type: object
      title: AppComponentMetricsRow
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````