Get SLA status for a completed run

Available in versions: 12.55 and later

Description

Returns service level agreement (SLA) data for a completed run.

URL

Copy code
/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 Cookie
2020 or later

LWSSO_COOKIE_KEY={LwssoCookie};

Earlier than 2020

LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};

Request body:

None

Request example:

Copy code
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.

Response example:

Copy code
Results metadata example:
<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: