Create a New KPI in a Test Run

This Eggplant Performance Analyzer REST method creates a new Key Performance Indicator (KPI) in a test run. You use the following URL with a POST HTTP method as described here.


/analyzer/api/1.0/<workspace>/<project>/<series>/<test>/<run number>/create_kpi

You can use this URL with a POST method as described here.

HTTP Method

POST: Creates a KPI in a test run.

Request Parameters

Parameter Type Description
name string The name of the new KPI.
operand string The operand to use for the new KPI. Possible values are “<=” and “>=”.
target number The target value of the new KPI.
category string The category of the new KPI.
statType string The statistic type of the new KPI.
chartAxisSeriesType string The series type of the new KPI.
summaryStatType string The summary statistic type of the new KPI.
bucketCount number The number of buckets to use when calculating the data. By default it will use the default number of buckets, which is usually 100.
measurementName string The measurement name for the new KPI. (Only required if category is "System Under Test" or "Measurements".)
series list of strings The series against which the KPI will be applied.

Response Parameters

Parameter Type Description
KPI string The URL of the newly created KPI.

Example Request





"name": "Max transaction rate should be greater than 10",

"operand": ">=",

"target": 10.0,

"category": "Transactions",

"statType": "Rate",

"chartAxisSeriesType": "Timing",

"summaryStatType": "Maximum",

"series": ["<COMBINED>"]


Example Response


"Max transaction rate should be greater than 10": "http://localhost:5000/analyzer/api/1.0/Workspace%201/Project%201/Series%201/Test%201/1/kpis/Max%20transaction%20rate%20should%20be%20greater%20than%2010"



This topic was last updated on January 13, 2022, at 02:42:23 PM.

Eggplant icon | Documentation Home | User Forums | Support | Copyright © 2022 Eggplant