你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AutoscaleSettingResource.GetPredictiveMetric 方法

定义

获取预测性自动缩放指标未来数据

  • 请求路径/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName}/predictiveMetrics
  • 操作IdPredictiveMetric_Get
public virtual Azure.Response<Azure.ResourceManager.Monitor.Models.AutoscaleSettingPredicativeResult> GetPredictiveMetric (string timespan, TimeSpan interval, string metricNamespace, string metricName, string aggregation, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPredictiveMetric : string * TimeSpan * string * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Monitor.Models.AutoscaleSettingPredicativeResult>
override this.GetPredictiveMetric : string * TimeSpan * string * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Monitor.Models.AutoscaleSettingPredicativeResult>
Public Overridable Function GetPredictiveMetric (timespan As String, interval As TimeSpan, metricNamespace As String, metricName As String, aggregation As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AutoscaleSettingPredicativeResult)

参数

timespan
String

查询的时间跨度。 它是具有以下格式的字符串“startDateTime_ISO/endDateTime_ISO”。

interval
TimeSpan

间隔 (即查询的 timegrain) 。

metricNamespace
String

要查询其指标定义的指标命名空间。

metricName
String

要检索的指标名称 (逗号分隔) 。 特殊情况:如果指标名本身包含逗号,则使用 %2 来指示它。 例如:“Metric,Name1”应为“Metric%2Name1”。

aggregation
String

聚合类型列表 (逗号分隔) 进行检索。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

timespanmetricNamespacemetricNameaggregation 为 null。

适用于