Skip to main content

metric_definitions

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

Overview​

Namemetric_definitions
TypeResource
Idazure.developer_loadtesting.metric_definitions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe metric name.
descriptionstringThe metric description.
dimensionsarrayList of dimensions.
metricAvailabilitiesarrayMetric availability specifies the time grain (aggregation interval or frequency).
namespacestringThe namespace the metric belongs to.
primaryAggregationTypestringThe primary aggregation type value defining how to use the values for display. Known values are: "Average", "Count", "None", "Total", "Percentile75", "Percentile90", "Percentile95", "Percentile96", "Percentile97", "Percentile98", "Percentile99", "Percentile999", and "Percentile9999". (Average, Count, None, Total, Percentile75, Percentile90, Percentile95, Percentile96, Percentile97, Percentile98, Percentile99, Percentile999, Percentile9999)
supportedAggregationTypesarrayThe collection of what all aggregation types are supported.
unitstringThe unit of the metric. Known values are: "NotSpecified", "Percent", "Count", "Seconds", "Milliseconds", "Bytes", "BytesPerSecond", and "CountPerSecond". (NotSpecified, Percent, Count, Seconds, Milliseconds, Bytes, BytesPerSecond, CountPerSecond)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_metric_definitionsselecttest_run_id, metricNamespace, endpointList the metric definitions for a load test run. List the metric definitions 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.
test_run_idstringUnique name for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters. Required.

SELECT examples​

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

SELECT
name,
description,
dimensions,
metricAvailabilities,
namespace,
primaryAggregationType,
supportedAggregationTypes,
unit
FROM azure.developer_loadtesting.metric_definitions
WHERE test_run_id = '{{ test_run_id }}' -- required
AND metricNamespace = '{{ metricNamespace }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;