Alerts - Get History
Lekérheti egy riasztás előzményeit, amely rögzíti a monitorozási feltételek változásait (Aktivált/Feloldva) és a riasztás állapotváltozásait (Új/Nyugtázva/Lezárva).
GET https://management.azure.com/{scope}/providers/Microsoft.AlertsManagement/alerts/{alertId}/history?api-version=2023-07-12-preview
URI-paraméterek
Name | In | Kötelező | Típus | Description |
---|---|---|---|---|
alert
|
path | True |
string |
Egy riasztáspéldány egyedi azonosítója. |
scope
|
path | True |
string |
scope here is resourceId , amelyhez riasztást hoz létre. |
api-version
|
query | True |
string |
A művelethez használandó API-verzió. |
Válaszok
Name | Típus | Description |
---|---|---|
200 OK |
OK gombra. A megadott riasztás előzményeit adja vissza. |
|
Other Status Codes |
Hibaválasz, amely leírja, hogy a művelet miért hiúsult meg. |
Példák
Resolve
Sample Request
GET https://management.azure.com/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100/history?api-version=2023-07-12-preview
Sample Response
{
"properties": {
"alertId": "66114d64-d9d9-478b-95c9-b789d6502100",
"modifications": [
{
"modificationEvent": "StateChange",
"oldValue": "New",
"newValue": "Acknowledged",
"modifiedAt": "2018-06-13T06:14:15.7378737Z",
"modifiedBy": "vikramm@microsoft.com",
"comments": "Acknowledging alert",
"description": "State changed from 'New' to 'Acknowledged'"
},
{
"modificationEvent": "AlertCreated",
"oldValue": "",
"newValue": "",
"modifiedAt": "2018-06-13T06:09:01Z",
"modifiedBy": "System",
"comments": "",
"description": "New Alert Object is created"
}
]
},
"id": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100/history/default",
"type": "Microsoft.AlertsManagement/alerts",
"name": "CPU Alert"
}
Definíciók
Name | Description |
---|---|
alert |
Riasztás módosításának részletei |
Alert |
A módosítás oka |
alert |
Riasztás-módosítási elem. |
alert |
A riasztás-módosítási elem tulajdonságai. |
error |
Hibaválasz a szolgáltatástól. |
error |
A hibaválasz részletei. |
alertModification
Riasztás módosításának részletei
Name | Típus | Description |
---|---|---|
id |
string |
Azure-erőforrás azonosítója |
name |
string |
Azure-erőforrás neve |
properties |
A riasztás-módosítási elem tulajdonságai. |
|
type |
string |
Azure-erőforrástípus |
AlertModificationEvent
A módosítás oka
Name | Típus | Description |
---|---|---|
ActionRuleSuppressed |
string |
|
ActionRuleTriggered |
string |
|
ActionsFailed |
string |
|
ActionsSuppressed |
string |
|
ActionsTriggered |
string |
|
AlertCreated |
string |
|
MonitorConditionChange |
string |
|
SeverityChange |
string |
|
StateChange |
string |
alertModificationItem
Riasztás-módosítási elem.
Name | Típus | Description |
---|---|---|
comments |
string |
Módosítási megjegyzések |
description |
string |
A módosítás leírása |
modificationEvent |
A módosítás oka |
|
modifiedAt |
string |
Módosítás dátuma és időpontja |
modifiedBy |
string |
Módosított felhasználói adatok (egyszerű ügyfél neve) |
newValue |
string |
Új érték |
oldValue |
string |
Régi érték |
alertModificationProperties
A riasztás-módosítási elem tulajdonságai.
Name | Típus | Description |
---|---|---|
alertId |
string |
Annak a riasztásnak az egyedi azonosítója, amelyhez az előzményeket lekérik |
modifications |
Módosítás részletei |
errorResponse
Hibaválasz a szolgáltatástól.
Name | Típus | Description |
---|---|---|
error |
A hibaválasz részletei. |
errorResponseBody
A hibaválasz részletei.
Name | Típus | Description |
---|---|---|
code |
string |
Hibakód, amely programozott módon használható. |
details |
A hibával kapcsolatos további részletek listája. |
|
message |
string |
A hiba leírása, amely a felhasználói felületen való megjelenítésre szolgál. |
target |
string |
Az adott hiba célja, például a tulajdonság neve. |