SLA (Get Status of Completed Run)
Available in versions: 12.55 and later
Description
Returns service level agreement (SLA) data for a completed run.
URL
/LoadTest/rest/domains/{domainName}/projects/{projectName}/runs/{RunID}/SlaData
Remarks
The ID of the run is in the request data. See below.
HTTP Method
GET: Returns the SLA data for the completed run in the body of the response.
Request
Headers:
Accept: application/xml
Cookies:
Version 2020 (or later) | LWSSO_COOKIE_KEY={LwssoCookie}; |
Versions earlier than 2020 | LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie}; |
Request Body:
None

GET http://<LRE_Server>/LoadTest/rest/domains/MyDomain/projects/MyProject/Runs/20/SlaData
Response
Headers:
Content-Type: application/xml
Cookies:
None
HTML Return Code:
One of the HTTP Return Codes
HTML Body:
The XML containing the SLA data.
Examples

<SlaData xmlns="http://www.hp.com/PC/REST/API"> <SlaItems> <SlaItem> <SlaStatus>Passed</SlaStatus>
<MeasurementName>total</MeasurementName> <MeasurementType>TotalThroughput</MeasurementType> <ActualValue>196500</ActualValue> <Difference>9.16666666666667</Difference> <GoalValue>180000</GoalValue> </LoadCriteria > <LoadEndValue>-1</LoadEndValue> <LoadStartValue>-1</LoadStartValue> </SlaItem> <SlaItem> <SlaStatus>Passed</SlaStatus>
<MeasurementName>average</MeasurementName> <MeasurementType>AverageHitsPerSecond</MeasurementType> <ActualValue>0.14705882352941177</ActualValue> <Difference>47.0588235294118</Difference> <GoalValue>0.1</GoalValue> </LoadCriteria > <LoadEndValue>-1</LoadEndValue> <LoadStartValue>-1</LoadStartValue> </SlaItem> <SlaItem> <SlaStatus>Passed</SlaStatus>
<MeasurementName>total</MeasurementName> <MeasurementType>TotalHits</MeasurementType> <ActualValue>10</ActualValue> <Difference>0</Difference> <GoalValue>10</GoalValue> </LoadCriteria > <LoadEndValue>-1</LoadEndValue> <LoadStartValue>-1</LoadStartValue> </SlaItem> <SlaItem> <SlaStatus>Passed</SlaStatus>
<MeasurementName>average</MeasurementName> <MeasurementType>AverageThroughput</MeasurementType> <ActualValue>2889.705882352941</ActualValue> <Difference>44.4852941176471</Difference> <GoalValue>2000</GoalValue> </LoadCriteria > <LoadEndValue>-1</LoadEndValue> <LoadStartValue>-1</LoadStartValue> </SlaItem> </SlaItems> <SLARunStatus>Passed</SLARunStatus> </SlaData >
See Also