Cosmoplat Alarm Records API

The Alarm Records API from Cosmoplat — 2 operation(s) for alarm records.

Operations 2

POST /alarm/{entityType}/getTenantAlarms 分页查询告警记录 #
POST /alarm/setAlarmDetails/{alarmId} 处理告警记录 #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cosmoplat-alarm-records-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cosmoplat-alarm-records-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: COSMOPlat IoT Platform Open Alarm Records API
  version: 线上 (online)
  summary: Device, product, alarm, rule-chain, thing-model, telemetry and RPC operations for the COSMOPlat (Kaos) industrial IoT platform.
  description: "Machine-readable transcription of the COSMOPlat 物联开发平台 (IoT development platform) \"OpenApi-线上\" reference published by COSMOPlat at https://www.cosmoplat.com/help/detail/304/1038\n\nThe provider publishes this contract as an HTML reference table only — no OpenAPI, Swagger, Postman or other machine-readable artifact is served anywhere on cosmoplat.com. This document transcribes that reference so it can be read by a machine.\n\nGAPS THE PROVIDER HAS NOT PUBLISHED (deliberately left empty here rather than guessed):\n  * No base URL / server host is stated anywhere in the reference, so `servers` is omitted.\n  * No authentication scheme is documented for these operations, so `securitySchemes` is empty.\n  * No per-operation 4xx/5xx catalogue is published; the single documented failure envelope from 公共分类 › 状态码描述 is wired as the `default` response.\n"
  contact:
    name: COSMOPlat
    email: market@cosmoplat.com
    url: https://www.cosmoplat.com/help
  x-provenance:
    authored_by: API Evangelist (catalog-authored)
    method: generated
    source: https://www.cosmoplat.com/help/detail/304/1038
    generated: '2026-08-11'
    note: Transcribed field-for-field from the provider's published HTML API reference. COSMOPlat does not publish an OpenAPI document; this is not a provider artifact. Re-harvest and replace verbatim if COSMOPlat ever serves one.
tags:
- name: Alarm Records
paths:
  /alarm/{entityType}/getTenantAlarms:
    post:
      operationId: postAlarmByEntityTypeGetTenantAlarms
      summary: 分页查询告警记录
      tags:
      - Alarm Records
      parameters:
      - name: entityType
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                page:
                  type: number
                pageSize:
                  type: number
      responses:
        '200':
          description: 业务数据 / Business payload
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: object
                          properties:
                            entityType:
                              type: string
                              description: 固定值:ALARM
                            id:
                              type: string
                              description: ID
                          description: ID
                        createdTime:
                          type: number
                          description: 创建时间
                        tenantId:
                          type: object
                          properties:
                            entityType:
                              type: string
                              description: 固定值:TENANT
                            id:
                              type: string
                              description: 租户ID
                          description: 租户
                        type:
                          type: string
                          description: 告警规则
                        originator:
                          type: object
                          properties:
                            entityType:
                              type: string
                              description: 固定值:DEVICE
                            id:
                              type: string
                              description: 设备ID
                          description: 告警源头
                        severity:
                          type: string
                          description: 告警级别:CRITICAL, MAJOR, MINOR, WARNING, INDETERMINATE
                        status:
                          type: string
                          description: 状态:ACTIVE_UNACK, ACTIVE_ACK, CLEARED_UNACK, CLEARED_ACK
                        startTs:
                          type: number
                          description: 开始时间
                        endTs:
                          type: number
                          description: 结束时间
                        ackTs:
                          type: number
                          description: 应答时间
                        clearTs:
                          type: number
                          description: 清理时间
                        handlerUserNickname:
                          type: string
                          description: 处理人昵称
                        handlerDetails:
                          type: string
                          description: 处理详情
                        handlerUserId:
                          type: string
                          description: 处理人ID
                        deviceName:
                          type: string
                          description: 设备标识
                        realName:
                          type: string
                          description: 设备名称
                        name:
                          type: string
                          description: 告警规则
                    description: 业务数据
                  totalPages:
                    type: number
                    description: 总页数
                  totalElements:
                    type: number
                    description: 总记录数
                  hasNext:
                    type: boolean
                    description: 是否有下一条记录
        default:
          description: 失败响应 / Failure envelope documented in 公共分类 › 状态码描述
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      externalDocs:
        description: 分页查询告警记录
        url: https://www.cosmoplat.com/help/detail/304/1038
  /alarm/setAlarmDetails/{alarmId}:
    post:
      operationId: postAlarmSetAlarmDetailsByAlarmId
      summary: 处理告警记录
      tags:
      - Alarm Records
      description: 成功httpCode返回200。
      parameters:
      - name: alarmId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                handlerDetails:
                  type: string
                  description: 处理详情
      responses:
        '200':
          description: 成功 / Success
        default:
          description: 失败响应 / Failure envelope documented in 公共分类 › 状态码描述
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      externalDocs:
        description: 处理告警记录
        url: https://www.cosmoplat.com/help/detail/304/1038
components:
  schemas:
    Error:
      type: object
      description: 失败报文 / Failure envelope (公共分类 › 状态码描述)
      properties:
        status:
          type: integer
          description: 状态码,和 httpCode 一致 / status code, same as the HTTP status
        message:
          type: string
          description: 状态描述 / status description
        errorCode:
          type: integer
          description: 错误码 / error code
        timestamp:
          type: string
          format: date-time
          description: 时间戳 / timestamp
      examples:
      - status: 500
        message: 内部配置错误
        errorCode: 2
        timestamp: '2023-08-04T00:56:54.243+00:00'
externalDocs:
  description: COSMOPlat IoT platform documentation
  url: https://www.cosmoplat.com/help/detail/304/1012