Skip to main content

server_metrics_configs

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

Overview

Nameserver_metrics_configs
TypeResource
Idazure.developer_loadtesting.server_metrics_configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
createdBystringThe user that created.
createdDateTimestring (date-time)The creation datetime(RFC 3339 literal format).
lastModifiedBystringThe user that last modified.
lastModifiedDateTimestring (date-time)The last Modified datetime(RFC 3339 literal format).
metricsobjectAzure resource metrics collection {metric id : metrics object} (Refer : https://learn.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition _ for metric id). Required.
testIdstringTest identifier.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_server_metrics_configselecttest_id, endpointList server metrics configuration for the given test. List server metrics configuration for the given test.
create_or_update_server_metrics_configinserttest_id, endpoint, metricsConfigure server metrics for a test. Configure server metrics for a test.
create_or_update_server_metrics_configreplacetest_id, endpoint, metricsConfigure server metrics for a test. Configure server metrics for a test.

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_idstringUnique name for the load test, must contain only lower-case alphabetic, numeric, underscore or hyphen characters. Required.

SELECT examples

List server metrics configuration for the given test. List server metrics configuration for the given test.

SELECT
createdBy,
createdDateTime,
lastModifiedBy,
lastModifiedDateTime,
metrics,
testId
FROM azure.developer_loadtesting.server_metrics_configs
WHERE test_id = '{{ test_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

INSERT examples

Configure server metrics for a test. Configure server metrics for a test.

INSERT INTO azure.developer_loadtesting.server_metrics_configs (
metrics,
test_id,
endpoint
)
SELECT
'{{ metrics }}' /* required */,
'{{ test_id }}',
'{{ endpoint }}'
RETURNING
createdBy,
createdDateTime,
lastModifiedBy,
lastModifiedDateTime,
metrics,
testId
;

REPLACE examples

Configure server metrics for a test. Configure server metrics for a test.

REPLACE azure.developer_loadtesting.server_metrics_configs
SET
metrics = '{{ metrics }}'
WHERE
test_id = '{{ test_id }}' --required
AND endpoint = '{{ endpoint }}' --required
AND metrics = '{{ metrics }}' --required
RETURNING
createdBy,
createdDateTime,
lastModifiedBy,
lastModifiedDateTime,
metrics,
testId;