Yandex Cloud
Поиск
Связаться с намиПодключиться
  • Истории успеха
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Доступны в регионе
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • ИИ для бизнеса
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Партнёрская программа
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Тарифы Yandex Cloud
    • Промоакции и free tier
    • Правила тарификации
  • Истории успеха
  • Документация
  • Блог
Проект Яндекса
© 2025 ТОО «Облачные Сервисы Казахстан»
Yandex Load Testing
  • Начало работы
  • Управление доступом
  • Правила тарификации
  • Справочник Terraform
    • Аутентификация в API
      • Overview
        • Overview
        • GetTable
        • CalculateKpiValues
  • Аудитные логи Audit Trails
  • История изменений
  • Обучающие курсы

В этой статье:

  • HTTP request
  • Body parameters
  • Kpi
  • KpiSelector
  • ResponseTime
  • Instances
  • ProtocolCodesAbsolute
  • ProtocolCodesRelative
  • NetworkCodesAbsolute
  • NetworkCodesRelative
  • KpiThreshold
  • Response
  • KpiValue
  1. Справочник API
  2. REST (англ.)
  3. Report
  4. CalculateKpiValues

Load Testing API, REST: Report.CalculateKpiValues

Статья создана
Yandex Cloud
Обновлена 30 октября 2025 г.
  • HTTP request
  • Body parameters
  • Kpi
  • KpiSelector
  • ResponseTime
  • Instances
  • ProtocolCodesAbsolute
  • ProtocolCodesRelative
  • NetworkCodesAbsolute
  • NetworkCodesRelative
  • KpiThreshold
  • Response
  • KpiValue

Returns a list of KPI values for tests matching the specified filter.

HTTP requestHTTP request

POST https://loadtesting.api.cloud.yandex.net/loadtesting/api/v1/reports/calculateKpiValues

Body parametersBody parameters

{
  "folderId": "string",
  "testFilter": "string",
  "testCase": "string",
  "kpi": {
    "selector": {
      // Includes only one of the fields `responseTime`, `instances`, `imbalanceRps`, `protocolCodesAbsolute`, `protocolCodesRelative`, `networkCodesAbsolute`, `networkCodesRelative`
      "responseTime": {
        "quantile": "string"
      },
      "instances": {
        "agg": "string"
      },
      "imbalanceRps": "object",
      "protocolCodesAbsolute": {
        "codesPatterns": [
          "string"
        ]
      },
      "protocolCodesRelative": {
        "codesPatterns": [
          "string"
        ]
      },
      "networkCodesAbsolute": {
        "codesPatterns": [
          "string"
        ]
      },
      "networkCodesRelative": {
        "codesPatterns": [
          "string"
        ]
      }
      // end of the list of possible fields
    },
    "threshold": {
      "value": "string",
      "comparison": "string"
    }
  }
}

Field

Description

folderId

string

Required field. ID of the folder containing tests.

testFilter

string

Required field. Test filter selector to calculate KPI values for.

testCase

string

Test case to calculate KPI values for.

If not specified, KPI values will be calculated for 'overall' case.

kpi

Kpi

Required field. KPI to be calculated.

KpiKpi

KPI (Key Performance Indicator) represents some integral indicator measured during test.

Field

Description

selector

KpiSelector

Kind of KPI.

threshold

KpiThreshold

A condition that should be specified.

KpiSelectorKpiSelector

KPI selector.

Field

Description

responseTime

ResponseTime

Response time cummulative quantile (percentile).

Includes only one of the fields responseTime, instances, imbalanceRps, protocolCodesAbsolute, protocolCodesRelative, networkCodesAbsolute, networkCodesRelative.

instances

Instances

A number of instances throughout the test.

Includes only one of the fields responseTime, instances, imbalanceRps, protocolCodesAbsolute, protocolCodesRelative, networkCodesAbsolute, networkCodesRelative.

imbalanceRps

object

An RPS at the moment the test has been auto-stopped.

Includes only one of the fields responseTime, instances, imbalanceRps, protocolCodesAbsolute, protocolCodesRelative, networkCodesAbsolute, networkCodesRelative.

protocolCodesAbsolute

ProtocolCodesAbsolute

A total number of requests completed with certain protocol (HTTP, GRPC, etc.) codes.

Includes only one of the fields responseTime, instances, imbalanceRps, protocolCodesAbsolute, protocolCodesRelative, networkCodesAbsolute, networkCodesRelative.

protocolCodesRelative

ProtocolCodesRelative

A percentage of requests completed with certain protocol (HTTP, GRPC, etc.) codes.

Includes only one of the fields responseTime, instances, imbalanceRps, protocolCodesAbsolute, protocolCodesRelative, networkCodesAbsolute, networkCodesRelative.

networkCodesAbsolute

NetworkCodesAbsolute

A total number of requests completed with certain network codes.

Includes only one of the fields responseTime, instances, imbalanceRps, protocolCodesAbsolute, protocolCodesRelative, networkCodesAbsolute, networkCodesRelative.

networkCodesRelative

NetworkCodesRelative

A percentage of requests completed with certain network codes.

Includes only one of the fields responseTime, instances, imbalanceRps, protocolCodesAbsolute, protocolCodesRelative, networkCodesAbsolute, networkCodesRelative.

ResponseTimeResponseTime

Response time.

Field

Description

quantile

enum (QuantileType)

Cummulative quantile (percentile).

  • QUANTILE_TYPE_UNSPECIFIED: Unspecified percentile.
  • QUANTILE_TYPE_50: 50 percentile (median).
  • QUANTILE_TYPE_75: 75 percentile.
  • QUANTILE_TYPE_80: 80 percentile.
  • QUANTILE_TYPE_85: 85 percentile.
  • QUANTILE_TYPE_90: 90 percentile.
  • QUANTILE_TYPE_95: 95 percentile.
  • QUANTILE_TYPE_98: 98 percentile.
  • QUANTILE_TYPE_99: 99 percentile.
  • QUANTILE_TYPE_100: 100 percentile (maximum or minimum).

InstancesInstances

Aggregated number of instances.

Field

Description

agg

enum (Aggregation)

Aggregation function.

  • AGGREGATION_UNSPECIFIED: Unspecified.
  • AGGREGATION_MIN: Minimum.
  • AGGREGATION_MAX: Maximum.
  • AGGREGATION_AVG: Average.
  • AGGREGATION_MEDIAN: Median.
  • AGGREGATION_STD_DEV: Standard deviation.

ProtocolCodesAbsoluteProtocolCodesAbsolute

Field

Description

codesPatterns[]

string

Protocol (HTTP, GRPC) code patterns to match.

All successful HTTP responses: ['2xx', '3xx'].
All failed HTTP responses: ['0', '4xx', '5xx'].

ProtocolCodesRelativeProtocolCodesRelative

Field

Description

codesPatterns[]

string

Protocol (HTTP, GRPC) code patterns to match.

All successful HTTP responses: ['2xx', '3xx'].
All failed HTTP responses: ['0', '4xx', '5xx'].

NetworkCodesAbsoluteNetworkCodesAbsolute

Field

Description

codesPatterns[]

string

Network code patterns to match.

All successful network responses: ['0'].
All failed network responses: ['xx', 'xxx'].

NetworkCodesRelativeNetworkCodesRelative

Field

Description

codesPatterns[]

string

Network code patterns to match.

All successful network responses: ['0'].
All failed network responses: ['xx', 'xxx'].

KpiThresholdKpiThreshold

KPI threshold represents a condition that an actual value of test's KPI should satisfy.

Field

Description

value

string

Value for comparison with an actual KPI value.

comparison

enum (Comparison)

Comparison operator for comparing actual with the threshold value.

Rule: actual (</<=/>/>=) reference

  • COMPARISON_UNSPECIFIED: Unspecified.
  • COMPARISON_LT: Less than the specified value.
  • COMPARISON_LTE: Less than or equal to the specified value.
  • COMPARISON_GT: Greater than the specified value.
  • COMPARISON_GTE: Greater than or equal to the specified value.

ResponseResponse

HTTP Code: 200 - OK

{
  "folderId": "string",
  "values": [
    {
      "testId": "string",
      "value": "string",
      "isOk": "boolean"
    }
  ]
}

Field

Description

folderId

string

ID of the folder.

values[]

KpiValue

Actual KPI values.

KpiValueKpiValue

An actual value of test's KPI.

Field

Description

testId

string

ID of a test.

value

string

Value of KPI.

isOk

boolean

A flag indicating whether the value satisfies KPI threshold condition.

Была ли статья полезна?

Предыдущая
GetTable
Следующая
Overview
Проект Яндекса
© 2025 ТОО «Облачные Сервисы Казахстан»