LoadTestingModelFactory.MetricDefinition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of MetricDefinition.
public static Azure.Developer.LoadTesting.MetricDefinition MetricDefinition(System.Collections.Generic.IEnumerable<Azure.Developer.LoadTesting.NameAndDescription> dimensions = default, string description = default, string name = default, string namespace = default, Azure.Developer.LoadTesting.AggregationType? primaryAggregationType = default, System.Collections.Generic.IEnumerable<string> supportedAggregationTypes = default, Azure.Developer.LoadTesting.MetricUnit? unit = default, System.Collections.Generic.IEnumerable<Azure.Developer.LoadTesting.MetricAvailability> metricAvailabilities = default);
static member MetricDefinition : seq<Azure.Developer.LoadTesting.NameAndDescription> * string * string * string * Nullable<Azure.Developer.LoadTesting.AggregationType> * seq<string> * Nullable<Azure.Developer.LoadTesting.MetricUnit> * seq<Azure.Developer.LoadTesting.MetricAvailability> -> Azure.Developer.LoadTesting.MetricDefinition
Public Shared Function MetricDefinition (Optional dimensions As IEnumerable(Of NameAndDescription) = Nothing, Optional description As String = Nothing, Optional name As String = Nothing, Optional namespace As String = Nothing, Optional primaryAggregationType As Nullable(Of AggregationType) = Nothing, Optional supportedAggregationTypes As IEnumerable(Of String) = Nothing, Optional unit As Nullable(Of MetricUnit) = Nothing, Optional metricAvailabilities As IEnumerable(Of MetricAvailability) = Nothing) As MetricDefinition
Parameters
- dimensions
- IEnumerable<NameAndDescription>
List of dimensions.
- description
- String
The metric description.
- name
- String
The metric name.
- namespace
- String
The namespace the metric belongs to.
- primaryAggregationType
- Nullable<AggregationType>
The primary aggregation type value defining how to use the values for display.
- supportedAggregationTypes
- IEnumerable<String>
The collection of what all aggregation types are supported.
- unit
- Nullable<MetricUnit>
The unit of the metric.
- metricAvailabilities
- IEnumerable<MetricAvailability>
Metric availability specifies the time grain (aggregation interval or frequency).
Returns
A new MetricDefinition instance for mocking.