Share via


ProfileResource.GetWafLogAnalyticsMetricsAsync Method

Definition

Overloads

GetWafLogAnalyticsMetricsAsync(ProfileResourceGetWafLogAnalyticsMetricsOptions, CancellationToken)

Get Waf related log analytics report for AFD profile.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/getWafLogAnalyticsMetrics
  • Operation Id: LogAnalytics_GetWafLogAnalyticsMetrics
  • Default Api Version: 2024-02-01
GetWafLogAnalyticsMetricsAsync(IEnumerable<WafMetric>, DateTimeOffset, DateTimeOffset, WafGranularity, IEnumerable<WafAction>, IEnumerable<WafRankingGroupBy>, IEnumerable<WafRuleType>, CancellationToken)

Get Waf related log analytics report for AFD profile.

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

GetWafLogAnalyticsMetricsAsync(ProfileResourceGetWafLogAnalyticsMetricsOptions, CancellationToken)

Source:
ProfileResource.cs
Source:
ProfileResource.cs

Get Waf related log analytics report for AFD profile.

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

Parameters

options
ProfileResourceGetWafLogAnalyticsMetricsOptions

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

GetWafLogAnalyticsMetricsAsync(IEnumerable<WafMetric>, DateTimeOffset, DateTimeOffset, WafGranularity, IEnumerable<WafAction>, IEnumerable<WafRankingGroupBy>, IEnumerable<WafRuleType>, CancellationToken)

Source:
ProfileResource.cs
Source:
ProfileResource.cs

Get Waf related log analytics report for AFD profile.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/getWafLogAnalyticsMetrics
  • Operation Id: LogAnalytics_GetWafLogAnalyticsMetrics
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.Models.WafMetricsResponse>> GetWafLogAnalyticsMetricsAsync (System.Collections.Generic.IEnumerable<Azure.ResourceManager.Cdn.Models.WafMetric> metrics, DateTimeOffset dateTimeBegin, DateTimeOffset dateTimeEnd, Azure.ResourceManager.Cdn.Models.WafGranularity granularity, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Cdn.Models.WafAction> actions = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Cdn.Models.WafRankingGroupBy> groupBy = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Cdn.Models.WafRuleType> ruleTypes = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetWafLogAnalyticsMetricsAsync : seq<Azure.ResourceManager.Cdn.Models.WafMetric> * DateTimeOffset * DateTimeOffset * Azure.ResourceManager.Cdn.Models.WafGranularity * seq<Azure.ResourceManager.Cdn.Models.WafAction> * seq<Azure.ResourceManager.Cdn.Models.WafRankingGroupBy> * seq<Azure.ResourceManager.Cdn.Models.WafRuleType> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.Models.WafMetricsResponse>>
override this.GetWafLogAnalyticsMetricsAsync : seq<Azure.ResourceManager.Cdn.Models.WafMetric> * DateTimeOffset * DateTimeOffset * Azure.ResourceManager.Cdn.Models.WafGranularity * seq<Azure.ResourceManager.Cdn.Models.WafAction> * seq<Azure.ResourceManager.Cdn.Models.WafRankingGroupBy> * seq<Azure.ResourceManager.Cdn.Models.WafRuleType> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.Models.WafMetricsResponse>>
Public Overridable Function GetWafLogAnalyticsMetricsAsync (metrics As IEnumerable(Of WafMetric), dateTimeBegin As DateTimeOffset, dateTimeEnd As DateTimeOffset, granularity As WafGranularity, Optional actions As IEnumerable(Of WafAction) = Nothing, Optional groupBy As IEnumerable(Of WafRankingGroupBy) = Nothing, Optional ruleTypes As IEnumerable(Of WafRuleType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of WafMetricsResponse))

Parameters

metrics
IEnumerable<WafMetric>

The ArrayOfWafMetric to use.

dateTimeBegin
DateTimeOffset

The DateTime to use.

dateTimeEnd
DateTimeOffset

The DateTime to use.

granularity
WafGranularity

The WafGranularity to use.

actions
IEnumerable<WafAction>

The ArrayOfWafAction to use.

groupBy
IEnumerable<WafRankingGroupBy>

The ArrayOfWafRankingGroupBy to use.

ruleTypes
IEnumerable<WafRuleType>

The ArrayOfWafRuleType to use.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

metrics is null.

Applies to