Share via


ProfileResource.GetLogAnalyticsMetricsAsync Method

Definition

Overloads

GetLogAnalyticsMetricsAsync(ProfileResourceGetLogAnalyticsMetricsOptions, CancellationToken)

Get log report for AFD profile

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/getLogAnalyticsMetrics
  • Operation Id: LogAnalytics_GetLogAnalyticsMetrics
  • Default Api Version: 2024-02-01
GetLogAnalyticsMetricsAsync(IEnumerable<LogMetric>, DateTimeOffset, DateTimeOffset, LogMetricsGranularity, IEnumerable<String>, IEnumerable<String>, IEnumerable<LogMetricsGroupBy>, IEnumerable<String>, IEnumerable<String>, CancellationToken)

Get log report for AFD profile

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/getLogAnalyticsMetrics
  • Operation Id: LogAnalytics_GetLogAnalyticsMetrics

GetLogAnalyticsMetricsAsync(ProfileResourceGetLogAnalyticsMetricsOptions, CancellationToken)

Source:
ProfileResource.cs
Source:
ProfileResource.cs

Get log report for AFD profile

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/getLogAnalyticsMetrics
  • Operation Id: LogAnalytics_GetLogAnalyticsMetrics
  • Default Api Version: 2024-02-01
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.Models.MetricsResponse>> GetLogAnalyticsMetricsAsync (Azure.ResourceManager.Cdn.Models.ProfileResourceGetLogAnalyticsMetricsOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member GetLogAnalyticsMetricsAsync : Azure.ResourceManager.Cdn.Models.ProfileResourceGetLogAnalyticsMetricsOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.Models.MetricsResponse>>
override this.GetLogAnalyticsMetricsAsync : Azure.ResourceManager.Cdn.Models.ProfileResourceGetLogAnalyticsMetricsOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.Models.MetricsResponse>>
Public Overridable Function GetLogAnalyticsMetricsAsync (options As ProfileResourceGetLogAnalyticsMetricsOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MetricsResponse))

Parameters

options
ProfileResourceGetLogAnalyticsMetricsOptions

A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

options is null.

Applies to

GetLogAnalyticsMetricsAsync(IEnumerable<LogMetric>, DateTimeOffset, DateTimeOffset, LogMetricsGranularity, IEnumerable<String>, IEnumerable<String>, IEnumerable<LogMetricsGroupBy>, IEnumerable<String>, IEnumerable<String>, CancellationToken)

Source:
ProfileResource.cs
Source:
ProfileResource.cs

Get log report for AFD profile

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/getLogAnalyticsMetrics
  • Operation Id: LogAnalytics_GetLogAnalyticsMetrics
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.Models.MetricsResponse>> GetLogAnalyticsMetricsAsync (System.Collections.Generic.IEnumerable<Azure.ResourceManager.Cdn.Models.LogMetric> metrics, DateTimeOffset dateTimeBegin, DateTimeOffset dateTimeEnd, Azure.ResourceManager.Cdn.Models.LogMetricsGranularity granularity, System.Collections.Generic.IEnumerable<string> customDomains, System.Collections.Generic.IEnumerable<string> protocols, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Cdn.Models.LogMetricsGroupBy> groupBy = default, System.Collections.Generic.IEnumerable<string> continents = default, System.Collections.Generic.IEnumerable<string> countryOrRegions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetLogAnalyticsMetricsAsync : seq<Azure.ResourceManager.Cdn.Models.LogMetric> * DateTimeOffset * DateTimeOffset * Azure.ResourceManager.Cdn.Models.LogMetricsGranularity * seq<string> * seq<string> * seq<Azure.ResourceManager.Cdn.Models.LogMetricsGroupBy> * seq<string> * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.Models.MetricsResponse>>
override this.GetLogAnalyticsMetricsAsync : seq<Azure.ResourceManager.Cdn.Models.LogMetric> * DateTimeOffset * DateTimeOffset * Azure.ResourceManager.Cdn.Models.LogMetricsGranularity * seq<string> * seq<string> * seq<Azure.ResourceManager.Cdn.Models.LogMetricsGroupBy> * seq<string> * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.Models.MetricsResponse>>
Public Overridable Function GetLogAnalyticsMetricsAsync (metrics As IEnumerable(Of LogMetric), dateTimeBegin As DateTimeOffset, dateTimeEnd As DateTimeOffset, granularity As LogMetricsGranularity, customDomains As IEnumerable(Of String), protocols As IEnumerable(Of String), Optional groupBy As IEnumerable(Of LogMetricsGroupBy) = Nothing, Optional continents As IEnumerable(Of String) = Nothing, Optional countryOrRegions As IEnumerable(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MetricsResponse))

Parameters

metrics
IEnumerable<LogMetric>

The ArrayOfLogMetric to use.

dateTimeBegin
DateTimeOffset

The DateTime to use.

dateTimeEnd
DateTimeOffset

The DateTime to use.

granularity
LogMetricsGranularity

The LogMetricsGranularity to use.

customDomains
IEnumerable<String>

The ArrayOfGet11ItemsItem to use.

protocols
IEnumerable<String>

The ArrayOfGet12ItemsItem to use.

groupBy
IEnumerable<LogMetricsGroupBy>

The ArrayOfLogMetricsGroupBy to use.

continents
IEnumerable<String>

The ArrayOfGet9ItemsItem to use.

countryOrRegions
IEnumerable<String>

The ArrayOfGet10ItemsItem to use.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

metrics, customDomains or protocols is null.

Applies to