你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ArmSqlModelFactory.SqlServerUsage 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 SqlServerUsage.
public static Azure.ResourceManager.Sql.Models.SqlServerUsage SqlServerUsage (string name = default, string resourceName = default, string displayName = default, double? currentValue = default, double? limit = default, string unit = default, DateTimeOffset? nextResetOn = default);
static member SqlServerUsage : string * string * string * Nullable<double> * Nullable<double> * string * Nullable<DateTimeOffset> -> Azure.ResourceManager.Sql.Models.SqlServerUsage
Public Shared Function SqlServerUsage (Optional name As String = Nothing, Optional resourceName As String = Nothing, Optional displayName As String = Nothing, Optional currentValue As Nullable(Of Double) = Nothing, Optional limit As Nullable(Of Double) = Nothing, Optional unit As String = Nothing, Optional nextResetOn As Nullable(Of DateTimeOffset) = Nothing) As SqlServerUsage
Parameters
- name
- String
Name of the server usage metric.
- resourceName
- String
The name of the resource.
- displayName
- String
The metric display name.
- unit
- String
The units of the metric.
- nextResetOn
- Nullable<DateTimeOffset>
The next reset time for the metric (ISO8601 format).
Returns
A new SqlServerUsage instance for mocking.