Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI Studio
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Load Testing
  • Getting started
  • Access management
  • Pricing policy
  • Terraform reference
    • API authentication
      • Overview
        • Overview
        • GetTable
        • CalculateKpiValues
  • Audit Trails events
  • Release notes

In this article:

  • HTTP request
  • Body parameters
  • Kpi
  • KpiSelector
  • ResponseTime
  • Instances
  • ProtocolCodesAbsolute
  • ProtocolCodesRelative
  • NetworkCodesAbsolute
  • NetworkCodesRelative
  • KpiThreshold
  • Response
  • KpiValue
  1. API reference
  2. REST
  3. Report
  4. CalculateKpiValues

Load Testing API, REST: Report.CalculateKpiValues

Written by
Yandex Cloud
Updated at August 8, 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.

Was the article helpful?

Previous
GetTable
Next
Overview
© 2025 Direct Cursus Technology L.L.C.