azure.developer.loadtesting package

class azure.developer.loadtesting.LoadTestingClient(endpoint: str, credential: TokenCredential, **kwargs: Any)[source]

These APIs allow end users to create, view and run load tests using Azure Load Test Service.

Variables
Parameters
  • endpoint (str) – URL to perform data plane API operations on the resource. Required.

  • credential (TokenCredential) – Credential needed for the client to connect to Azure. Required.

Keyword Arguments

api_version (str) – Api Version. Default value is “2022-06-01-preview”. Note that overriding this default value may result in unsupported behavior.

close()None[source]
send_request(request: azure.core.rest._rest_py3.HttpRequest, **kwargs: Any)azure.core.rest._rest_py3.HttpResponse[source]

Runs the network request through the client’s chained policies.

>>> from azure.core.rest import HttpRequest
>>> request = HttpRequest("GET", "https://www.example.org/")
<HttpRequest [GET], url: 'https://www.example.org/'>
>>> response = client.send_request(request)
<HttpResponse: 200 OK>

For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request

Parameters

request (HttpRequest) – The network request you want to make. Required.

Keyword Arguments

stream (bool) – Whether the response payload will be streamed. Defaults to False.

Returns

The response of your network call. Does not do error handling on your response.

Return type

HttpResponse