你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Log Analytics - Get Waf Log Analytics Metrics
获取 AFD 配置文件的 Waf 相关日志分析报告。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/getWafLogAnalyticsMetrics?api-version=2023-05-01&metrics=clientRequestCount&dateTimeBegin={dateTimeBegin}&dateTimeEnd={dateTimeEnd}&granularity={granularity}
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/getWafLogAnalyticsMetrics?api-version=2023-05-01&metrics=clientRequestCount&dateTimeBegin={dateTimeBegin}&dateTimeEnd={dateTimeEnd}&granularity={granularity}&actions={actions}&groupBy={groupBy}&ruleTypes={ruleTypes}
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
profile
|
path | True |
string |
资源组中唯一的 Azure Front Door Standard 或 Azure Front Door Premium 配置文件的名称。 在资源组中是唯一的。 |
resource
|
path | True |
string |
Azure 订阅中的资源组的名称。 Regex pattern: |
subscription
|
path | True |
string |
Azure 订阅 ID。 |
api-version
|
query | True |
string |
要与客户端请求一起使用的 API 的版本。 当前版本为 2023-05-01。 |
date
|
query | True |
string date-time |
|
date
|
query | True |
string date-time |
|
granularity
|
query | True | ||
metrics
|
query | True | ||
actions
|
query | |||
group
|
query | |||
rule
|
query |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
描述成功操作的结果。 |
|
Other Status Codes |
描述操作失败原因的 Azure Front Door 错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
LogAnalytics_GetWafLogAnalyticsMetrics
Sample Request
GET https://management.azure.com/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/getWafLogAnalyticsMetrics?api-version=2023-05-01&metrics=clientRequestCount&dateTimeBegin=2020-11-04T06:49:27.554Z&dateTimeEnd=2020-11-04T09:49:27.554Z&granularity=PT5M&actions=block&actions=log
Sample Response
{
"dateTimeBegin": "2020-11-04T14:30:27.554+08:00",
"dateTimeEnd": "2020-11-04T17:00:27.554+08:00",
"granularity": "PT5M",
"series": [
{
"metric": "clientRequestCount",
"unit": "count",
"groups": [],
"data": [
{
"dateTime": "2020-11-04T07:05:00+00:00",
"value": 2
},
{
"dateTime": "2020-11-04T07:10:00+00:00",
"value": 32
},
{
"dateTime": "2020-11-04T07:15:00+00:00",
"value": 31
},
{
"dateTime": "2020-11-04T07:20:00+00:00",
"value": 63
},
{
"dateTime": "2020-11-04T07:25:00+00:00",
"value": 50
},
{
"dateTime": "2020-11-04T07:30:00+00:00",
"value": 12
},
{
"dateTime": "2020-11-04T07:35:00+00:00",
"value": 8
},
{
"dateTime": "2020-11-04T07:40:00+00:00",
"value": 21
},
{
"dateTime": "2020-11-04T07:45:00+00:00",
"value": 30
},
{
"dateTime": "2020-11-04T07:50:00+00:00",
"value": 18
},
{
"dateTime": "2020-11-04T07:55:00+00:00",
"value": 28
},
{
"dateTime": "2020-11-04T08:00:00+00:00",
"value": 3
},
{
"dateTime": "2020-11-04T08:05:00+00:00",
"value": 58
},
{
"dateTime": "2020-11-04T08:10:00+00:00",
"value": 42
},
{
"dateTime": "2020-11-04T08:15:00+00:00",
"value": 17
},
{
"dateTime": "2020-11-04T08:20:00+00:00",
"value": 21
},
{
"dateTime": "2020-11-04T08:25:00+00:00",
"value": 41
},
{
"dateTime": "2020-11-04T08:30:00+00:00",
"value": 8
},
{
"dateTime": "2020-11-04T08:35:00+00:00",
"value": 15
},
{
"dateTime": "2020-11-04T08:40:00+00:00",
"value": 25
},
{
"dateTime": "2020-11-04T08:45:00+00:00",
"value": 13
},
{
"dateTime": "2020-11-04T08:50:00+00:00",
"value": 17
},
{
"dateTime": "2020-11-04T08:55:00+00:00",
"value": 29
},
{
"dateTime": "2020-11-04T09:00:00+00:00",
"value": 17
}
]
}
]
}
定义
名称 | 说明 |
---|---|
Afd |
错误响应 |
Data | |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Groups | |
Metrics |
|
Series | |
Waf |
|
Waf |
|
Waf |
|
Waf |
|
Waf |
Waf 指标响应 |
Waf |
|
Waf |
AfdErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
Data
名称 | 类型 | 说明 |
---|---|---|
dateTime |
string |
|
value |
number |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
Groups
名称 | 类型 | 说明 |
---|---|---|
name |
string |
|
value |
string |
MetricsSeriesUnit
名称 | 类型 | 说明 |
---|---|---|
bitsPerSecond |
string |
|
bytes |
string |
|
count |
string |
|
milliSeconds |
string |
Series
名称 | 类型 | 说明 |
---|---|---|
data |
Data[] |
|
groups |
Groups[] |
|
metric |
string |
|
unit |
WafAction
名称 | 类型 | 说明 |
---|---|---|
allow |
string |
|
block |
string |
|
log |
string |
|
redirect |
string |
WafGranularity
名称 | 类型 | 说明 |
---|---|---|
P1D |
string |
|
PT1H |
string |
|
PT5M |
string |
WafMetric
名称 | 类型 | 说明 |
---|---|---|
clientRequestCount |
string |
WafMetricsGranularity
名称 | 类型 | 说明 |
---|---|---|
P1D |
string |
|
PT1H |
string |
|
PT5M |
string |
WafMetricsResponse
Waf 指标响应
名称 | 类型 | 说明 |
---|---|---|
dateTimeBegin |
string |
|
dateTimeEnd |
string |
|
granularity | ||
series |
Series[] |
WafRankingGroupBy
名称 | 类型 | 说明 |
---|---|---|
customDomain |
string |
|
httpStatusCode |
string |
WafRuleType
名称 | 类型 | 说明 |
---|---|---|
bot |
string |
|
custom |
string |
|
managed |
string |