latest_test_run_insights
Creates, updates, deletes, gets or lists a latest_test_run_insights resource.
Overview
| Name | latest_test_run_insights |
| Type | Resource |
| Id | azure.developer_loadtesting.latest_test_run_insights |
Fields
The following fields are returned by SELECT queries:
- get_latest_test_run_insights
| Name | Datatype | Description |
|---|---|---|
columns | array | The columns of the insights. |
rows | object | The rows of the insights. |
status | string | The status of the insights. Known values are: "NotStarted", "Running", "Succeeded", "Failed", and "Canceled". (NotStarted, Running, Succeeded, Failed, Canceled) |
version | integer | The version of the insights. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_latest_test_run_insights | select | test_run_id, endpoint | Get the latest insights for the test run. Get the latest insights for the test run. | |
update_latest_test_run_insights | update | test_run_id, endpoint | Update the latest insights for the test run. Update the latest insights for the test run. |
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.
| Name | Datatype | Description |
|---|---|---|
endpoint | string | The service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: ) |
test_run_id | string | Unique name for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters. Required. |
SELECT examples
- get_latest_test_run_insights
Get the latest insights for the test run. Get the latest insights for the test run.
SELECT
columns,
rows,
status,
version
FROM azure.developer_loadtesting.latest_test_run_insights
WHERE test_run_id = '{{ test_run_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;
UPDATE examples
- update_latest_test_run_insights
Update the latest insights for the test run. Update the latest insights for the test run.
UPDATE azure.developer_loadtesting.latest_test_run_insights
SET
rows = '{{ rows }}'
WHERE
test_run_id = '{{ test_run_id }}' --required
AND endpoint = '{{ endpoint }}' --required
RETURNING
columns,
rows,
status,
version;