MonitorQueryModelFactory.MetricResult Method

Definition

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