Skip to main content

test_profile_runs

Creates, updates, deletes, gets or lists a test_profile_runs resource.

Overview

Nametest_profile_runs
TypeResource
Idazure.developer_loadtesting.test_profile_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
createdBystringThe user that created.
createdDateTimestring (date-time)The creation datetime(RFC 3339 literal format).
descriptionstringThe test profile run description.
displayNamestringDisplay name for the test profile run.
durationInSecondsintegerTest profile run duration in seconds.
endDateTimestring (date-time)The test profile run end DateTime(RFC 3339 literal format).
errorDetailsarrayError details if there is any failure in test profile run. These errors are specific to the Test Profile Run.
lastModifiedBystringThe user that last modified.
lastModifiedDateTimestring (date-time)The last Modified datetime(RFC 3339 literal format).
recommendationsarrayRecommendations provided based on a successful test profile run.
startDateTimestring (date-time)The test profile run start DateTime(RFC 3339 literal format).
statusstringThe test profile run status. Known values are: "ACCEPTED", "NOTSTARTED", "EXECUTING", "DONE", "CANCELLING", "CANCELLED", and "FAILED". (ACCEPTED, NOTSTARTED, EXECUTING, DONE, CANCELLING, CANCELLED, FAILED)
targetResourceConfigurationsobjectConfigurations of the target resource on which the test profile ran.
targetResourceIdstringTarget resource ID on which the test profile run is created.
testProfileIdstringAssociated test profile ID for the test profile run. This is required to create a test profile run and can't be updated.
testProfileRunIdstringUnique identifier for the test profile run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters. Required.
testRunDetailsobjectDetails of the test runs ran as part of the test profile run. Key is the testRunId of the corresponding testRun.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_test_profile_runselecttest_profile_run_id, endpointGet test profile run details. Get test profile run details by test profile run Id.
list_test_profile_runsselectendpointmaxpagesize, minStartDateTime, maxStartDateTime, minEndDateTime, maxEndDateTime, createdDateStartTime, createdDateEndTime, testProfileRunIds, testProfileIds, statusesList test profile runs. Get all test profile runs for the given filters.
delete_test_profile_rundeletetest_profile_run_id, endpointDelete an existing load test profile run. Delete an existing load test profile run by providing the test profile run Id.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
test_profile_run_idstringUnique identifier for the test profile run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters. Required.
createdDateEndTimestring (date-time)End DateTime(RFC 3339 literal format) of the created time range to filter test profile runs. Default value is None.
createdDateStartTimestring (date-time)Start DateTime(RFC 3339 literal format) of the created time range to filter test profile runs. Default value is None.
maxEndDateTimestring (date-time)Maximum End DateTime(RFC 3339 literal format) of the test profile runs to filter on. Default value is None.
maxStartDateTimestring (date-time)Maximum Start DateTime(RFC 3339 literal format) of the test profile runs to filter on. Default value is None.
maxpagesizeinteger
minEndDateTimestring (date-time)Minimum End DateTime(RFC 3339 literal format) of the test profile runs to filter on. Default value is None.
minStartDateTimestring (date-time)Minimum Start DateTime(RFC 3339 literal format) of the test profile runs to filter on. Default value is None.
statusesarrayComma separated list of Statuses of the test profile runs to filter. Default value is None.
testProfileIdsarrayComma separated IDs of the test profiles which should be associated with the test profile runs to fetch. Default value is None.
testProfileRunIdsarrayComma separated list of IDs of the test profile runs to filter. Default value is None.

SELECT examples

Get test profile run details. Get test profile run details by test profile run Id.

SELECT
createdBy,
createdDateTime,
description,
displayName,
durationInSeconds,
endDateTime,
errorDetails,
lastModifiedBy,
lastModifiedDateTime,
recommendations,
startDateTime,
status,
targetResourceConfigurations,
targetResourceId,
testProfileId,
testProfileRunId,
testRunDetails
FROM azure.developer_loadtesting.test_profile_runs
WHERE test_profile_run_id = '{{ test_profile_run_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

DELETE examples

Delete an existing load test profile run. Delete an existing load test profile run by providing the test profile run Id.

DELETE FROM azure.developer_loadtesting.test_profile_runs
WHERE test_profile_run_id = '{{ test_profile_run_id }}' --required
AND endpoint = '{{ endpoint }}' --required
;