MonitorQueryModelFactory.MetricResult 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.
Creates an instance of MetricResult to support mocking.
public static Azure.Monitor.Query.Models.MetricResult MetricResult (string id, string resourceType, string name, Azure.Monitor.Query.Models.MetricUnit unit, System.Collections.Generic.IEnumerable<Azure.Monitor.Query.Models.MetricTimeSeriesElement> timeSeries);
static member MetricResult : string * string * string * Azure.Monitor.Query.Models.MetricUnit * seq<Azure.Monitor.Query.Models.MetricTimeSeriesElement> -> Azure.Monitor.Query.Models.MetricResult
Public Shared Function MetricResult (id As String, resourceType As String, name As String, unit As MetricUnit, timeSeries As IEnumerable(Of MetricTimeSeriesElement)) As MetricResult
Parameters
- id
- String
The metric ID.
- resourceType
- String
The resource type of the metric resource.
- name
- String
The name of the metric.
- unit
- MetricUnit
The unit of the metric.
- timeSeries
- IEnumerable<MetricTimeSeriesElement>
The time series returned when a data query is performed.
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET