Delen via


Autoscale.PredictiveMetricGetViaIdentity Method

Definition

get predictive autoscale metric future data

public System.Threading.Tasks.Task PredictiveMetricGetViaIdentity (string viaIdentity, string timespan, TimeSpan interval, string metricNamespace, string metricName, string aggregation, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IPredictiveResponse>,System.Threading.Tasks.Task> onOk, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleErrorResponse>,System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ISendAsync sender);
member this.PredictiveMetricGetViaIdentity : string * string * TimeSpan * string * string * string * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IPredictiveResponse>, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleErrorResponse>, System.Threading.Tasks.Task> * Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.IEventListener * Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ISendAsync -> System.Threading.Tasks.Task
Public Function PredictiveMetricGetViaIdentity (viaIdentity As String, timespan As String, interval As TimeSpan, metricNamespace As String, metricName As String, aggregation As String, onOk As Func(Of HttpResponseMessage, Task(Of IPredictiveResponse), Task), onDefault As Func(Of HttpResponseMessage, Task(Of IAutoscaleErrorResponse), Task), eventListener As IEventListener, sender As ISendAsync) As Task

Parameters

viaIdentity
String
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.

onOk
Func<HttpResponseMessage,Task<IPredictiveResponse>,Task>

a delegate that is called when the remote service returns 200 (OK).

onDefault
Func<HttpResponseMessage,Task<IAutoscaleErrorResponse>,Task>

a delegate that is called when the remote service returns default (any response code not handled elsewhere).

eventListener
IEventListener

an IEventListener instance that will receive events.

sender
ISendAsync

an instance of an Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ISendAsync pipeline to use to make the request.

Returns

A Task that will be complete when handling of the response is completed.

Applies to