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

# Threshold breaches — one per breach rather than one per reading, and how bad it got.



## OpenAPI

````yaml /api-reference/openapi.json get /sensor_alerts
openapi: 3.0.0
info:
  description: ''
  title: >-
    The only schema PostgREST exposes (ADR-014). Reads are security_invoker
    views; writes are SECURITY DEFINER functions. Rebuilt wholesale on every
    deploy — it holds no data.
  version: 12.2.3
servers:
  - url: https://app.assetinfinity.ai/api
security: []
tags:
  - name: Signing in
  - name: Profile
  - name: Assets
  - name: Asset lifecycle
  - name: Work lifecycle
  - name: Maintenance
  - name: Inventory
  - name: Inventory detail
  - name: Procurement
  - name: Contracts
  - name: Workforce
  - name: Capacity
  - name: Dispatch
  - name: Routing
  - name: Tools
  - name: Inspections
  - name: Verification
  - name: Reliability
  - name: Parts demand
  - name: Sensors and meters
  - name: Map
  - name: Floor plans
  - name: Labels
  - name: Lost and found
  - name: Root cause analysis
  - name: Reports
  - name: Audit center
  - name: Activity
  - name: Notifications
  - name: Channels
  - name: Search
  - name: Copilot
  - name: Import
  - name: Files
  - name: Sync
  - name: Support
  - name: Admin
  - name: Access
  - name: Lookups
  - name: Read models
  - name: Branding
  - name: Custom fields
  - name: Form studio
  - name: Workflows
  - name: Workflow studio
  - name: Rules
  - name: Statuses and transitions
  - name: Currencies and locales
  - name: Work configuration
  - name: Asset configuration
  - name: Inventory configuration
  - name: Tool configuration
  - name: Workforce configuration
  - name: Vendor and contract configuration
  - name: Document configuration
  - name: Inspection configuration
  - name: Sites, locations and the organisation
  - name: Platform
  - name: Self verification
  - name: Setup
  - name: Tools on a job, and who has them out
  - name: Vendors and contracts
  - name: Work order execution
  - name: Workforce detail
externalDocs:
  description: PostgREST Documentation
  url: https://postgrest.org/en/v12/references/api.html
paths:
  /sensor_alerts:
    get:
      tags:
        - Sensors and meters
      summary: >-
        Threshold breaches — one per breach rather than one per reading, and how
        bad it got.
      parameters:
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.id'
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.threshold_id'
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.threshold_name'
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.comparison'
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.limit_value'
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.sensor_id'
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.sensor_code'
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.measurement'
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.asset_id'
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.asset_number'
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.asset_name'
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.opened_at'
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.opening_value'
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.peak_value'
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.severity'
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.status'
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.acknowledged_at'
        - $ref: >-
            #/components/parameters/rowFilter.sensor_alerts.acknowledged_by_user_id
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.cleared_at'
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.clearing_value'
        - $ref: '#/components/parameters/rowFilter.sensor_alerts.work_order_id'
        - $ref: '#/components/parameters/select'
        - $ref: '#/components/parameters/order'
        - $ref: '#/components/parameters/range'
        - $ref: '#/components/parameters/rangeUnit'
        - $ref: '#/components/parameters/offset'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/preferCount'
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/sensor_alerts'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/sensor_alerts'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/sensor_alerts'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/sensor_alerts'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.sensor_alerts.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.threshold_id:
      in: query
      name: threshold_id
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.threshold_name:
      in: query
      name: threshold_name
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.comparison:
      in: query
      name: comparison
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.limit_value:
      in: query
      name: limit_value
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.sensor_id:
      in: query
      name: sensor_id
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.sensor_code:
      in: query
      name: sensor_code
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.measurement:
      in: query
      name: measurement
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.asset_id:
      in: query
      name: asset_id
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.asset_number:
      in: query
      name: asset_number
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.asset_name:
      in: query
      name: asset_name
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.opened_at:
      in: query
      name: opened_at
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.opening_value:
      in: query
      name: opening_value
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.peak_value:
      in: query
      name: peak_value
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.severity:
      in: query
      name: severity
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.status:
      in: query
      name: status
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.acknowledged_at:
      in: query
      name: acknowledged_at
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.acknowledged_by_user_id:
      in: query
      name: acknowledged_by_user_id
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.cleared_at:
      in: query
      name: cleared_at
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.clearing_value:
      in: query
      name: clearing_value
      required: false
      schema:
        type: string
    rowFilter.sensor_alerts.work_order_id:
      in: query
      name: work_order_id
      required: false
      schema:
        type: string
    select:
      description: Filtering Columns
      in: query
      name: select
      required: false
      schema:
        type: string
    order:
      description: Ordering
      in: query
      name: order
      required: false
      schema:
        type: string
    range:
      description: Limiting and Pagination
      in: header
      name: Range
      required: false
      schema:
        type: string
    rangeUnit:
      description: Limiting and Pagination
      in: header
      name: Range-Unit
      required: false
      schema:
        default: items
        type: string
    offset:
      description: Limiting and Pagination
      in: query
      name: offset
      required: false
      schema:
        type: string
    limit:
      description: Limiting and Pagination
      in: query
      name: limit
      required: false
      schema:
        type: string
    preferCount:
      description: Preference
      in: header
      name: Prefer
      required: false
      schema:
        enum:
          - count=none
        type: string
  schemas:
    sensor_alerts:
      description: >-
        Threshold breaches — one per breach rather than one per reading, and how
        bad it got.
      properties:
        acknowledged_at:
          format: timestamp with time zone
          type: string
        acknowledged_by_user_id:
          description: >-
            Note:

            This is a Foreign Key to `my_profile.user_id`.<fk table='my_profile'
            column='user_id'/>
          format: uuid
          type: string
        asset_id:
          description: >-
            Note:

            This is a Foreign Key to `asset_contracts.asset_id`.<fk
            table='asset_contracts' column='asset_id'/>
          format: uuid
          type: string
        asset_name:
          format: character varying
          maxLength: 250
          type: string
        asset_number:
          format: character varying
          maxLength: 80
          type: string
        cleared_at:
          format: timestamp with time zone
          type: string
        clearing_value:
          format: numeric
          type: number
        comparison:
          format: character varying
          maxLength: 20
          type: string
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        limit_value:
          format: numeric
          type: number
        measurement:
          format: character varying
          maxLength: 30
          type: string
        opened_at:
          format: timestamp with time zone
          type: string
        opening_value:
          format: numeric
          type: number
        peak_value:
          format: numeric
          type: number
        sensor_code:
          format: character varying
          maxLength: 60
          type: string
        sensor_id:
          description: >-
            Note:

            This is a Foreign Key to `sensors.id`.<fk table='sensors'
            column='id'/>
          format: uuid
          type: string
        severity:
          format: character varying
          maxLength: 20
          type: string
        status:
          format: character varying
          maxLength: 20
          type: string
        threshold_id:
          description: >-
            Note:

            This is a Foreign Key to `sensor_thresholds.id`.<fk
            table='sensor_thresholds' column='id'/>
          format: uuid
          type: string
        threshold_name:
          format: character varying
          maxLength: 150
          type: string
        work_order_id:
          description: >-
            Note:

            This is a Foreign Key to
            `inspection_failures.found_in_work_order_id`.<fk
            table='inspection_failures' column='found_in_work_order_id'/>
          format: uuid
          type: string
      type: object

````

## Related topics

- [Sensors and condition alerts](/assets/sensors.md)
- [Notifications](/config/notifications.md)
- [Copilot activity](/analytics/copilot.md)
- [The capacity plan](/work/capacity.md)
- [Inventory settings](/config/inventory.md)
