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

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

  • gRPC request
  • CalculateReportKpiValuesRequest
  • Kpi
  • KpiSelector
  • ResponseTime
  • Instances
  • ImbalanceRps
  • ProtocolCodesAbsolute
  • ProtocolCodesRelative
  • NetworkCodesAbsolute
  • NetworkCodesRelative
  • KpiThreshold
  • CalculateReportKpiValuesResponse
  • KpiValue
  1. Справочник API
  2. gRPC (англ.)
  3. Report
  4. CalculateKpiValues

Load Testing API, gRPC: ReportService.CalculateKpiValues

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

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

gRPC requestgRPC request

rpc CalculateKpiValues (CalculateReportKpiValuesRequest) returns (CalculateReportKpiValuesResponse)

CalculateReportKpiValuesRequestCalculateReportKpiValuesRequest

{
  "folder_id": "string",
  "test_filter": "string",
  "test_case": "string",
  "kpi": {
    "selector": {
      // Includes only one of the fields `response_time`, `instances`, `imbalance_rps`, `protocol_codes_absolute`, `protocol_codes_relative`, `network_codes_absolute`, `network_codes_relative`
      "response_time": {
        "quantile": "QuantileType"
      },
      "instances": {
        "agg": "Aggregation"
      },
      "imbalance_rps": "ImbalanceRps",
      "protocol_codes_absolute": {
        "codes_patterns": [
          "string"
        ]
      },
      "protocol_codes_relative": {
        "codes_patterns": [
          "string"
        ]
      },
      "network_codes_absolute": {
        "codes_patterns": [
          "string"
        ]
      },
      "network_codes_relative": {
        "codes_patterns": [
          "string"
        ]
      }
      // end of the list of possible fields
    },
    "threshold": {
      "value": "double",
      "comparison": "Comparison"
    }
  }
}

Field

Description

folder_id

string

Required field. ID of the folder containing tests.

test_filter

string

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

test_case

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

response_time

ResponseTime

Response time cummulative quantile (percentile).

Includes only one of the fields response_time, instances, imbalance_rps, protocol_codes_absolute, protocol_codes_relative, network_codes_absolute, network_codes_relative.

instances

Instances

A number of instances throughout the test.

Includes only one of the fields response_time, instances, imbalance_rps, protocol_codes_absolute, protocol_codes_relative, network_codes_absolute, network_codes_relative.

imbalance_rps

ImbalanceRps

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

Includes only one of the fields response_time, instances, imbalance_rps, protocol_codes_absolute, protocol_codes_relative, network_codes_absolute, network_codes_relative.

protocol_codes_absolute

ProtocolCodesAbsolute

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

Includes only one of the fields response_time, instances, imbalance_rps, protocol_codes_absolute, protocol_codes_relative, network_codes_absolute, network_codes_relative.

protocol_codes_relative

ProtocolCodesRelative

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

Includes only one of the fields response_time, instances, imbalance_rps, protocol_codes_absolute, protocol_codes_relative, network_codes_absolute, network_codes_relative.

network_codes_absolute

NetworkCodesAbsolute

A total number of requests completed with certain network codes.

Includes only one of the fields response_time, instances, imbalance_rps, protocol_codes_absolute, protocol_codes_relative, network_codes_absolute, network_codes_relative.

network_codes_relative

NetworkCodesRelative

A percentage of requests completed with certain network codes.

Includes only one of the fields response_time, instances, imbalance_rps, protocol_codes_absolute, protocol_codes_relative, network_codes_absolute, network_codes_relative.

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.

ImbalanceRpsImbalanceRps

Imbalance RPS.

Field

Description

Empty

ProtocolCodesAbsoluteProtocolCodesAbsolute

Field

Description

codes_patterns[]

string

Protocol (HTTP, GRPC) code patterns to match.

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

ProtocolCodesRelativeProtocolCodesRelative

Field

Description

codes_patterns[]

string

Protocol (HTTP, GRPC) code patterns to match.

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

NetworkCodesAbsoluteNetworkCodesAbsolute

Field

Description

codes_patterns[]

string

Network code patterns to match.

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

NetworkCodesRelativeNetworkCodesRelative

Field

Description

codes_patterns[]

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

double

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.

CalculateReportKpiValuesResponseCalculateReportKpiValuesResponse

{
  "folder_id": "string",
  "values": [
    {
      "test_id": "string",
      "value": "double",
      "is_ok": "bool"
    }
  ]
}

Field

Description

folder_id

string

ID of the folder.

values[]

KpiValue

Actual KPI values.

KpiValueKpiValue

An actual value of test's KPI.

Field

Description

test_id

string

ID of a test.

value

double

Value of KPI.

is_ok

bool

A flag indicating whether the value satisfies KPI threshold condition.

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

Предыдущая
GetTable
Следующая
Overview
Проект Яндекса
© 2025 ООО «Яндекс.Облако»