Share via


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
alertId
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

alertModification

OK gombra. A megadott riasztás előzményeit adja vissza.

Other Status Codes

errorResponse

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
alertModification

Riasztás módosításának részletei

AlertModificationEvent

A módosítás oka

alertModificationItem

Riasztás-módosítási elem.

alertModificationProperties

A riasztás-módosítási elem tulajdonságai.

errorResponse

Hibaválasz a szolgáltatástól.

errorResponseBody

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

alertModificationProperties

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

AlertModificationEvent

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

alertModificationItem[]

Módosítás részletei

errorResponse

Hibaválasz a szolgáltatástól.

Name Típus Description
error

errorResponseBody

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

errorResponseBody[]

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.