Share this page

# 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 2020 (or later) | LWSSO_COOKIE_KEY={LwssoCookie};
Versions 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.

## Examples

Results Metadata
Copy code

    <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

Run results

Tips to improve your search results... LoadRunner Enterprise REST API Reference LRE REST API All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic(Undefined variable: _rscC_Basic_Variables.VersionLabel)