AutoscaleSettingResource.GetPredictiveMetric 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.
get predictive autoscale metric future data
- Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName}/predictiveMetrics
- Operation Id: PredictiveMetric_Get
- Default Api Version: 2022-10-01
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)
Parameters
- timespan
- String
The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.
- interval
- TimeSpan
The interval (i.e. timegrain) of the query.
- metricNamespace
- String
Metric namespace to query metric definitions for.
- metricName
- String
The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be 'Metric%2Name1'.
- aggregation
- String
The list of aggregation types (comma separated) to retrieve.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
timespan
, metricNamespace
, metricName
or aggregation
is null.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應