Freigeben über


ArmMonitorModelFactory.SubscriptionMonitorMetric Method

Definition

Initializes a new instance of SubscriptionMonitorMetric.

public static Azure.ResourceManager.Monitor.Models.SubscriptionMonitorMetric SubscriptionMonitorMetric(string id = default, string subscriptionScopeMetricType = default, Azure.ResourceManager.Monitor.Models.MonitorLocalizableString name = default, string displayDescription = default, string errorCode = default, string errorMessage = default, Azure.ResourceManager.Monitor.Models.MonitorMetricUnit unit = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.MonitorTimeSeriesElement> timeseries = default);
static member SubscriptionMonitorMetric : string * string * Azure.ResourceManager.Monitor.Models.MonitorLocalizableString * string * string * string * Azure.ResourceManager.Monitor.Models.MonitorMetricUnit * seq<Azure.ResourceManager.Monitor.Models.MonitorTimeSeriesElement> -> Azure.ResourceManager.Monitor.Models.SubscriptionMonitorMetric
Public Shared Function SubscriptionMonitorMetric (Optional id As String = Nothing, Optional subscriptionScopeMetricType As String = Nothing, Optional name As MonitorLocalizableString = Nothing, Optional displayDescription As String = Nothing, Optional errorCode As String = Nothing, Optional errorMessage As String = Nothing, Optional unit As MonitorMetricUnit = Nothing, Optional timeseries As IEnumerable(Of MonitorTimeSeriesElement) = Nothing) As SubscriptionMonitorMetric

Parameters

id
String

the metric Id.

subscriptionScopeMetricType
String

the resource type of the metric resource.

name
MonitorLocalizableString

the name and the display name of the metric, i.e. it is localizable string.

displayDescription
String

Detailed description of this metric.

errorCode
String

'Success' or the error details on query failures for this metric.

errorMessage
String

Error message encountered querying this specific metric.

unit
MonitorMetricUnit

The unit of the metric.

timeseries
IEnumerable<MonitorTimeSeriesElement>

the time series returned when a data query is performed.

Returns

A new SubscriptionMonitorMetric instance for mocking.

Applies to