Skip to main content

metrics

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

Overview

Namemetrics
TypeResource
Idazure.developer_loadtesting.metrics

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
dataarrayAn array of data points representing the metric values.
dimensionValuesarrayThe dimension values.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_metricsselecttest_run_id, metricname, metricNamespace, timespan, endpointaggregation, intervalList the metric values for a load test run. List the metric values for a load 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.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
metricNamespacestringMetric namespace to query metric definitions for. Required.
metricnamestringMetric name. Required.
test_run_idstringUnique name for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters. Required.
timespanstringThe timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'. Required.
aggregationstringThe aggregation. Default value is None.
intervalstringThe interval (i.e. timegrain) of the query. Known values are: "PT5S", "PT10S", "PT1M", "PT5M", and "PT1H". Default value is None.

SELECT examples

List the metric values for a load test run. List the metric values for a load test run.

SELECT
data,
dimensionValues
FROM azure.developer_loadtesting.metrics
WHERE test_run_id = '{{ test_run_id }}' -- required
AND metricname = '{{ metricname }}' -- required
AND metricNamespace = '{{ metricNamespace }}' -- required
AND timespan = '{{ timespan }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND aggregation = '{{ aggregation }}'
AND interval = '{{ interval }}'
;