Alerts - Meta Data
根據標識元參數的值列出警示元數據資訊。
GET https://management.azure.com/providers/Microsoft.AlertsManagement/alertsMetaData?api-version=2023-07-12-preview&identifier=MonitorServiceList
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
api-version
|
query | True |
string |
用於此作業的 API 版本。 |
identifier
|
query | True |
識別 API 呼叫所要擷取的資訊。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
正常。 已成功列出警示元數據。 |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
範例
MonService
Sample Request
GET https://management.azure.com/providers/Microsoft.AlertsManagement/alertsMetaData?api-version=2023-07-12-preview&identifier=MonitorServiceList
Sample Response
{
"properties": {
"metadataIdentifier": "MonitorServiceList",
"data": [
{
"name": "ActivityLog Administrative",
"displayName": "Activity Log - Administrative"
},
{
"name": "ActivityLog Autoscale",
"displayName": "Activity Log - Autoscale"
},
{
"name": "ActivityLog Policy",
"displayName": "Activity Log - Policy"
},
{
"name": "ActivityLog Recommendation",
"displayName": "Activity Log - Recommendation"
},
{
"name": "ActivityLog Security",
"displayName": "Activity Log - Security"
},
{
"name": "Application Insights",
"displayName": "Application Insights"
},
{
"name": "Azure Backup",
"displayName": "Azure Backup"
},
{
"name": "Custom",
"displayName": "Custom"
},
{
"name": "Data Box Edge",
"displayName": "Data Box Edge"
},
{
"name": "VM Insights",
"displayName": "VM Insights"
},
{
"name": "Log Analytics",
"displayName": "Log Analytics"
},
{
"name": "Nagios",
"displayName": "NAGIOS"
},
{
"name": "Platform",
"displayName": "Platform"
},
{
"name": "Resource Health",
"displayName": "Resource Health"
},
{
"name": "SCOM",
"displayName": "SCOM"
},
{
"name": "ServiceHealth",
"displayName": "Service Health"
},
{
"name": "Smart Detector",
"displayName": "SmartDetector"
},
{
"name": "Zabbix",
"displayName": "ZABBIX"
}
]
}
}
定義
名稱 | Description |
---|---|
alerts |
警示元數據資訊。 |
error |
來自服務的錯誤回應。 |
error |
錯誤回應的詳細數據。 |
identifier |
識別 API 呼叫所要擷取的資訊。 |
alertsMetaData
警示元數據資訊。
名稱 | 類型 | Description |
---|---|---|
properties |
alerts |
警示元數據屬性包 |
errorResponse
來自服務的錯誤回應。
名稱 | 類型 | Description |
---|---|---|
error |
錯誤回應的詳細數據。 |
errorResponseBody
錯誤回應的詳細數據。
名稱 | 類型 | Description |
---|---|---|
code |
string |
錯誤碼,旨在以程序設計方式取用。 |
details |
錯誤的其他詳細數據清單。 |
|
message |
string |
錯誤的描述,用於顯示在使用者介面中。 |
target |
string |
特定錯誤的目標,例如屬性的名稱。 |
identifier
識別 API 呼叫所要擷取的資訊。
名稱 | 類型 | Description |
---|---|---|
MonitorServiceList |
string |