Share via


Alerts - List Enrichments

A riasztások bővítésének listázása. Egy alapértelmezett nevű objektum gyűjteményét adja vissza.

GET https://management.azure.com/{scope}/providers/Microsoft.AlertsManagement/alerts/{alertId}/enrichments?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

alertEnrichmentsList

OK gombra. A megadott riasztás bővítéseit 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/72fa99ef-9c84-4a7c-b343-ec62da107d81/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502101/enrichments?api-version=2023-07-12-preview

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502101/enrichments/default",
      "type": "Microsoft.AlertsManagement/alerts/enrichments",
      "name": "default",
      "properties": {
        "alertId": "66114d64-d9d9-478b-95c9-b789d6502101",
        "enrichments": [
          {
            "title": "Number of OOM killed events by container",
            "description": "Enrichment description",
            "status": "Succeeded",
            "type": "PrometheusInstantQuery",
            "grafanaExplorePath": "/explore?left=%7B%22datasource%22...",
            "linkToApi": "https://test-3sxl.eastus.prometheus.monitor.azure.com/api/v1/query_range?...",
            "datasources": [
              "/subscriptions/72fa99ef-9c84-4a7c-b343-ec62da107d81/resourceGroups/SyntheticRules/providers/microsoft.monitor/accounts/canaryamw"
            ],
            "query": "sum by (cluster,container,replicaset,namespace)(label_replace( kube_pod_container_status_last_terminated_reason{reason='OOMKilled', cluster='cluster1', namespace='namespace1'}'}, 'replicaset', '$1', 'pod', '(.*)(-[a-z0-9]{5})$')) > 0",
            "time": "2015-07-01T20:10:51.781Z"
          },
          {
            "title": "Number of OOM killed events by container",
            "description": "Enrichment description",
            "status": "Succeeded",
            "type": "PrometheusRangeQuery",
            "linkToApi": "https://test-3sxl.eastus.prometheus.monitor.azure.com/api/v1/query_range?...",
            "grafanaExplorePath": "/explore?left=%7B%22datasource%22...",
            "datasources": [
              "/subscriptions/72fa99ef-9c84-4a7c-b343-ec62da107d81/resourceGroups/SyntheticRules/providers/microsoft.monitor/accounts/canaryamw"
            ],
            "query": "sum by (cluster,container,replicaset,namespace)(label_replace( kube_pod_container_status_last_terminated_reason{reason='OOMKilled', cluster='cluster1', namespace='namespace'}'}, 'replicaset', '$1', 'pod', '(.*)(-[a-z0-9]{5})$')) > 0",
            "start": "2015-07-01T20:10:51.781Z",
            "end": "2015-07-01T20:20:51.781Z",
            "step": "PT15S"
          },
          {
            "title": "Number of OOM killed events by container",
            "description": "Enrichment description",
            "status": "Failed",
            "type": "PrometheusRangeQuery",
            "linkToApi": "https://test-3sxl.eastus.prometheus.monitor.azure.com/api/v1/query_range?...",
            "grafanaExplorePath": "/explore?left=%7B%22datasource%22...",
            "errorMessage": "Calling Prometheus query API failed",
            "datasources": [
              "/subscriptions/72fa99ef-9c84-4a7c-b343-ec62da107d81/resourceGroups/SyntheticRules/providers/microsoft.monitor/accounts/canaryamw"
            ],
            "query": "sum by (cluster,container,replicaset,namespace)(label_replace( kube_pod_container_status_last_terminated_reason{reason='OOMKilled', cluster='cluster1', namespace='namespace'}'}, 'replicaset', '$1', 'pod', '(.*)(-[a-z0-9]{5})$')) > 0",
            "start": "2015-07-01T20:10:51.781Z",
            "end": "2015-07-01T20:20:51.781Z",
            "step": "PT15S"
          }
        ]
      }
    }
  ]
}

Definíciók

Name Description
alertEnrichmentProperties

A riasztási bővítési elem tulajdonságai.

alertEnrichmentResponse

A riasztás bővítései.

alertEnrichmentsList

Sorolja fel a riasztás bővítéseit.

ErrorAdditionalInfo

Az erőforrás-kezelési hiba további információi.

ErrorDetail

A hiba részletei.

ErrorResponse

Hibaválasz

alertEnrichmentProperties

A riasztási bővítési elem tulajdonságai.

Name Típus Description
alertId

string

Annak a riasztásnak az egyedi azonosítója (GUID), amelyhez a bővítéseket lekéri.

enrichments

alertEnrichmentItem[]

Bővítés részletei

alertEnrichmentResponse

A riasztás bővítései.

Name Típus Description
id

string

Azure-erőforrás azonosítója

name

string

Azure-erőforrás neve

properties

alertEnrichmentProperties

A riasztási bővítési elem tulajdonságai.

type

string

Azure-erőforrástípus

alertEnrichmentsList

Sorolja fel a riasztás bővítéseit.

Name Típus Description
nextLink

string

Kérelem URL-címe, amely a következő oldal lekérdezéséhez használható.

value

alertEnrichmentResponse[]

A riasztás bővítéseinek listázása

ErrorAdditionalInfo

Az erőforrás-kezelési hiba további információi.

Name Típus Description
info

object

A további információk.

type

string

A további adattípus.

ErrorDetail

A hiba részletei.

Name Típus Description
additionalInfo

ErrorAdditionalInfo[]

A hiba további információi.

code

string

A hibakód.

details

ErrorDetail[]

A hiba részletei.

message

string

A hibaüzenet.

target

string

A hiba célja.

ErrorResponse

Hibaválasz

Name Típus Description
error

ErrorDetail

A hibaobjektum.