Layero Perf API

The perf API from Layero — 5 operation(s) for perf.

GitHub OpenAPI

Operations 5

GET /projects/{project_id}/perf Project Perf #
GET /environments/{environment_id}/perf Environment Perf #
GET /projects/{project_id}/perf/memory Project Runtime Memory #
GET /projects/{project_id}/health Project Health #
GET /projects/{project_id}/perf/summary Project Perf Summary #

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/layero-ru:layero-ru-perf-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

layero-ru-perf-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Layero Perf API
  version: 0.1.0
tags:
- name: perf
paths:
  /projects/{project_id}/perf:
    get:
      tags:
      - perf
      summary: Project Perf
      operationId: project_perf_projects__project_id__perf_get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      - name: from
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: From
      - name: to
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: To
      - name: granularity
        in: query
        required: false
        schema:
          type: string
          pattern: ^(5m|1h|1d)$
          default: 5m
          title: Granularity
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PerfBucketOut'
                title: Response Project Perf Projects  Project Id  Perf Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /environments/{environment_id}/perf:
    get:
      tags:
      - perf
      summary: Environment Perf
      operationId: environment_perf_environments__environment_id__perf_get
      parameters:
      - name: environment_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Environment Id
      - name: from
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: From
      - name: to
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: To
      - name: granularity
        in: query
        required: false
        schema:
          type: string
          pattern: ^(5m|1h|1d)$
          default: 5m
          title: Granularity
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PerfBucketOut'
                title: Response Environment Perf Environments  Environment Id  Perf Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /projects/{project_id}/perf/memory:
    get:
      tags:
      - perf
      summary: Project Runtime Memory
      operationId: project_runtime_memory_projects__project_id__perf_memory_get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      - name: from
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: From
      - name: to
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: To
      - name: granularity
        in: query
        required: false
        schema:
          type: string
          pattern: ^(5m|1h|1d)$
          default: 5m
          title: Granularity
      - name: environment_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Environment Id
      - name: deploy_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Deploy Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RuntimeMemoryOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /projects/{project_id}/health:
    get:
      tags:
      - perf
      summary: Project Health
      description: 'Как себя чувствует сайт — один вызов вместо семи.


        Живая проверка адреса включена по умолчанию: без неё ответ говорит о

        телеметрии, но не о главном — открывается ли сайт вообще. Недоступность

        самого сайта считается ДАННЫМИ, а не сбоем этой ручки, поэтому любая

        сетевая ошибка сворачивается в `serving=false`.'
      operationId: project_health_projects__project_id__health_get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      - name: check_url
        in: query
        required: false
        schema:
          type: boolean
          description: дёрнуть сам сайт, чтобы узнать, отдаётся ли он
          default: true
          title: Check Url
        description: дёрнуть сам сайт, чтобы узнать, отдаётся ли он
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectHealthOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /projects/{project_id}/perf/summary:
    get:
      tags:
      - perf
      summary: Project Perf Summary
      operationId: project_perf_summary_projects__project_id__perf_summary_get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      - name: from
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: From
      - name: to
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: To
      - name: environment_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Environment Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PerfSummaryOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PerfSummarySliceOut:
      properties:
        requests:
          type: integer
          title: Requests
        errors:
          type: integer
          title: Errors
        error_rate:
          type: number
          title: Error Rate
        p95_ms:
          anyOf:
          - type: integer
          - type: 'null'
          title: P95 Ms
        cache_hit_ratio:
          anyOf:
          - type: number
          - type: 'null'
          title: Cache Hit Ratio
      type: object
      required:
      - requests
      - errors
      - error_rate
      title: PerfSummarySliceOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RuntimeMemoryOut:
      properties:
        is_runtime:
          type: boolean
          title: Is Runtime
        limit_mb:
          type: integer
          title: Limit Mb
        cpu_quota:
          type: number
          title: Cpu Quota
          default: 0.25
        tier_id:
          type: string
          title: Tier Id
        tier_label:
          type: string
          title: Tier Label
        last_rss_mb:
          anyOf:
          - type: number
          - type: 'null'
          title: Last Rss Mb
        last_sampled_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Sampled At
        last_status:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Status
        p95_rss_mb:
          anyOf:
          - type: number
          - type: 'null'
          title: P95 Rss Mb
        max_rss_mb:
          anyOf:
          - type: number
          - type: 'null'
          title: Max Rss Mb
        last_cpu_cores:
          anyOf:
          - type: number
          - type: 'null'
          title: Last Cpu Cores
        avg_cpu_cores:
          anyOf:
          - type: number
          - type: 'null'
          title: Avg Cpu Cores
        max_cpu_cores:
          anyOf:
          - type: number
          - type: 'null'
          title: Max Cpu Cores
        samples_24h:
          type: integer
          title: Samples 24H
          default: 0
        is_sleeping:
          type: boolean
          title: Is Sleeping
          default: true
        awake_minutes_24h:
          type: integer
          title: Awake Minutes 24H
          default: 0
        buckets:
          items:
            $ref: '#/components/schemas/RuntimeMemoryBucketOut'
          type: array
          title: Buckets
          default: []
      type: object
      required:
      - is_runtime
      - limit_mb
      - tier_id
      - tier_label
      title: RuntimeMemoryOut
      description: 'Потребление RAM runtime-инстанса относительно квоты тарифа.


        Для SPA-проектов контейнера нет вовсе — тогда `is_runtime=false` и всё

        остальное пустое (фронт такой проект и не спрашивает, но пусть ответ

        остаётся осмысленным).'
    PerfSummaryOut:
      properties:
        last_24h:
          $ref: '#/components/schemas/PerfSummarySliceOut'
        last_7d:
          $ref: '#/components/schemas/PerfSummarySliceOut'
        window:
          anyOf:
          - $ref: '#/components/schemas/PerfSummarySliceOut'
          - type: 'null'
      type: object
      required:
      - last_24h
      - last_7d
      title: PerfSummaryOut
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ProjectHealthOut:
      properties:
        project:
          anyOf:
          - type: string
          - type: 'null'
          title: Project
        url:
          anyOf:
          - type: string
          - type: 'null'
          title: Url
        type:
          type: string
          title: Type
        serving:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Serving
        http_code:
          anyOf:
          - type: integer
          - type: 'null'
          title: Http Code
        deploy:
          additionalProperties: true
          type: object
          title: Deploy
        traffic:
          additionalProperties: true
          type: object
          title: Traffic
        runtime:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Runtime
        lighthouse:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Lighthouse
        anomalies:
          items:
            type: string
          type: array
          title: Anomalies
        verdict:
          type: string
          title: Verdict
      type: object
      required:
      - project
      - url
      - type
      - serving
      - http_code
      - deploy
      - traffic
      - runtime
      - lighthouse
      - anomalies
      - verdict
      title: ProjectHealthOut
      description: 'Здоровье проекта одним ответом (AGENT-10).


        Форма выбрана под агента: выводы, а не сырьё. Временных рядов здесь нет

        намеренно — они не влезут в контекст, и вопрос всё равно звучит как

        «всё ли хорошо», а не «дай данные, я посчитаю».'
    RuntimeMemoryBucketOut:
      properties:
        bucket_start:
          type: string
          format: date-time
          title: Bucket Start
        avg_rss_mb:
          type: number
          title: Avg Rss Mb
        max_rss_mb:
          type: number
          title: Max Rss Mb
        avg_cpu_cores:
          anyOf:
          - type: number
          - type: 'null'
          title: Avg Cpu Cores
        max_cpu_cores:
          anyOf:
          - type: number
          - type: 'null'
          title: Max Cpu Cores
        limit_mb:
          type: integer
          title: Limit Mb
        samples:
          type: integer
          title: Samples
        state:
          type: string
          title: State
          default: running
      type: object
      required:
      - bucket_start
      - avg_rss_mb
      - max_rss_mb
      - limit_mb
      - samples
      title: RuntimeMemoryBucketOut
    PerfBucketOut:
      properties:
        bucket_start:
          type: string
          format: date-time
          title: Bucket Start
        req_count:
          type: integer
          title: Req Count
        err_4xx:
          type: integer
          title: Err 4Xx
        err_5xx:
          type: integer
          title: Err 5Xx
        bytes_out:
          type: integer
          title: Bytes Out
        cache_hit_ratio:
          anyOf:
          - type: number
          - type: 'null'
          title: Cache Hit Ratio
        p50_ms:
          anyOf:
          - type: integer
          - type: 'null'
          title: P50 Ms
        p95_ms:
          anyOf:
          - type: integer
          - type: 'null'
          title: P95 Ms
        p99_ms:
          anyOf:
          - type: integer
          - type: 'null'
          title: P99 Ms
      type: object
      required:
      - bucket_start
      - req_count
      - err_4xx
      - err_5xx
      - bytes_out
      title: PerfBucketOut