ArmMonitorModelFactory.MonitorMetric 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 MonitorMetric.
public static Azure.ResourceManager.Monitor.Models.MonitorMetric MonitorMetric(string id = default, string metricType = 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 MonitorMetric : 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.MonitorMetric
Public Shared Function MonitorMetric (Optional id As String = Nothing, Optional metricType 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 MonitorMetric
Parameters
- id
- String
the metric Id.
- metricType
- String
the resource type of the metric resource.
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 MonitorMetric instance for mocking.