LoadTestingModelFactory.ResourceMetric 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 ResourceMetric.
public static Azure.Developer.LoadTesting.ResourceMetric ResourceMetric(string id = default, Azure.Core.ResourceIdentifier resourceId = default, string metricNamespace = default, string displayDescription = default, string name = default, string aggregation = default, string unit = default, string resourceType = default);
static member ResourceMetric : string * Azure.Core.ResourceIdentifier * string * string * string * string * string * string -> Azure.Developer.LoadTesting.ResourceMetric
Public Shared Function ResourceMetric (Optional id As String = Nothing, Optional resourceId As ResourceIdentifier = Nothing, Optional metricNamespace As String = Nothing, Optional displayDescription As String = Nothing, Optional name As String = Nothing, Optional aggregation As String = Nothing, Optional unit As String = Nothing, Optional resourceType As String = Nothing) As ResourceMetric
Parameters
- id
- String
Unique name for metric.
- resourceId
- ResourceIdentifier
Azure resource id.
- metricNamespace
- String
Metric name space.
- displayDescription
- String
Metric description.
- name
- String
The invariant value of metric name.
- aggregation
- String
Metric aggregation.
- unit
- String
Metric unit.
- resourceType
- String
Azure resource type.
Returns
A new ResourceMetric instance for mocking.