Insights - Create
Létrehozza az Insight erőforrást, Ez csak adminisztratív művelet
PUT https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}?api-version=2026-01-01-preview
URI-paraméterek
| Name | In | Kötelező | Típus | Description |
|---|---|---|---|---|
|
insight
|
path | True |
string pattern: ^[a-zA-Z0-9][a-zA-Z0-9.]*[a-zA-Z0-9]{3,180}$ |
Az insight neve |
|
subscription
|
path | True |
string (uuid) |
A cél-előfizetés azonosítója. Az értéknek UUID-nek kell lennie. |
|
workload
|
path | True |
string pattern: ^[a-zA-Z0-9][a-zA-Z0-9-:]*[a-zA-Z0-9]{3,120}$ |
workloadImpact resource |
|
api-version
|
query | True |
string minLength: 1 |
A művelethez használandó API-verzió. |
Kérelem törzse
| Name | Típus | Description |
|---|---|---|
| properties |
Az erőforrás erőforrás-specifikus tulajdonságai. |
Válaszok
| Name | Típus | Description |
|---|---|---|
| 200 OK |
Az Erőforrás 'Insight' frissítési művelete sikeres |
|
| 201 Created |
Erőforrás 'Insight' létrehozása művelet sikeres |
|
| Other Status Codes |
Váratlan hibaválasz. |
Biztonság
azure_auth
Azure Active Directory OAuth2 Flow.
Típus:
oauth2
Folyamat:
implicit
Engedélyezési URL:
https://login.microsoftonline.com/common/oauth2/authorize
Hatókörök
| Name | Description |
|---|---|
| user_impersonation | a felhasználói fiók megszemélyesítése |
Példák
Creating an insight
Mintakérelem
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Impact/workloadImpacts/impactid22/insights/insightId12?api-version=2026-01-01-preview
{
"properties": {
"content": {
"title": "Impact Has been correlated to an outage",
"description": "At 2018-11-08T00:00:00Z UTC, your services dependent on these resources <link href=”…”>VM1</link> may have experienced an issue. <br/><div>We have identified an outage that affected these resources(s). You can look at outage information on <link href=\"https:// portal.azure.com/#view/Microsoft_Azure_Health/AzureHealthBrowseBlade/~/serviceIssues/trackingId/NL2W-VCZ\">NL2W-VCZ</link> link.<div>"
},
"category": "repair",
"status": "resolved",
"eventTime": "2023-06-15T04:00:00.009223Z",
"insightUniqueId": "00000000-0000-0000-0000-000000000000",
"impact": {
"impactedResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-rg/providers/Microsoft.Sql/sqlserver/dbservername",
"startTime": "2023-06-15T01:00:00.009223Z",
"impactId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.Impact/workloadImpacts/impactid22"
}
}
}
Mintaválasz
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.Impact/workloadImpacts/impactid22/insights/insightId12",
"name": "insightId12",
"type": "Microsoft.Impact/insights",
"properties": {
"eventTime": "2023-06-15T04:00:00.009223Z",
"content": {
"title": "Impact Has been correlated to an outage",
"description": "At 2018-11-08T00:00:00Z UTC, your services dependent on these resources <link href=”…”>VM1</link> may have experienced an issue. <br/><div>We have identified an outage that affected these resources(s). You can look at outage information on <link href=\"https:// portal.azure.com/#view/Microsoft_Azure_Health/AzureHealthBrowseBlade/~/serviceIssues/trackingId/NL2W-VCZ\">NL2W-VCZ</link> link.<div>"
},
"category": "repair",
"status": "resolved",
"insightUniqueId": "00000000-0000-0000-0000-000000000000",
"impact": {
"impactedResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-rg/providers/Microsoft.Sql/sqlserver/dbservername",
"startTime": "2023-06-15T01:00:00.009223Z",
"impactId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.Impact/workloadImpacts/impactid22"
}
}
}
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.Impact/workloadImpacts/impactid22/insights/insightId12",
"name": "insightId12",
"type": "Microsoft.Impact/insights",
"properties": {
"eventTime": "2023-06-15T04:00:00.009223Z",
"content": {
"title": "Impact Has been correlated to an outage",
"description": "At 2018-11-08T00:00:00Z UTC, your services dependent on these resources <link href=”…”>VM1</link> may have experienced an issue. <br/><div>We have identified an outage that affected these resources(s). You can look at outage information on <link href=\"https:// portal.azure.com/#view/Microsoft_Azure_Health/AzureHealthBrowseBlade/~/serviceIssues/trackingId/NL2W-VCZ\">NL2W-VCZ</link> link.<div>"
},
"category": "repair",
"status": "resolved",
"insightUniqueId": "00000000-0000-0000-0000-000000000000",
"impact": {
"impactedResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-rg/providers/Microsoft.Sql/sqlserver/dbservername",
"startTime": "2023-06-15T01:00:00.009223Z",
"impactId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.Impact/workloadImpacts/impactid22"
}
}
}
Definíciók
| Name | Description |
|---|---|
| Content |
A cikk részletei, mint például a cím, leírás stb |
|
created |
Az erőforrást létrehozó identitás típusa. |
|
Error |
Az erőforrás-kezelési hiba további információi. |
|
Error |
A hiba részletei. |
|
Error |
Hibaválasz |
|
Impact |
annak a hatásnak a részleteit, amelyre vonatkozóan megállapítást hoztak létre. |
| Insight |
Insight forrás |
|
Insight |
Hatáskategóriás tulajdonságok. |
|
Provisioning |
Az erőforrás kiépítési állapota. |
|
system |
Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok. |
Content
A cikk részletei, mint például a cím, leírás stb
| Name | Típus | Description |
|---|---|---|
| description |
string |
A megállapítás leírása |
| title |
string |
A megállapítás címe |
createdByType
Az erőforrást létrehozó identitás típusa.
| Érték | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
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 információtípus. |
ErrorDetail
A hiba részletei.
| Name | Típus | Description |
|---|---|---|
| additionalInfo |
A hiba további információi. |
|
| code |
string |
A hibakód. |
| details |
A hiba részletei. |
|
| message |
string |
A hibaüzenet. |
| target |
string |
A hiba célpontja. |
ErrorResponse
Hibaválasz
| Name | Típus | Description |
|---|---|---|
| error |
A hibaobjektum. |
ImpactDetails
annak a hatásnak a részleteit, amelyre vonatkozóan megállapítást hoztak létre.
| Name | Típus | Description |
|---|---|---|
| endTime |
string (date-time) |
Az a időpont, amikor a hatás a jelentett hatásnak megfelelően véget ért. |
| impactId |
string |
Azure Id az ütközésről. |
| impactedResourceId |
string |
Az érintett Azure erőforrások listája. |
| startTime |
string (date-time) |
A hatás bejelentés szerinti indításának időpontja. |
Insight
Insight forrás
| Name | Típus | Description |
|---|---|---|
| id |
string (arm-id) |
Az erőforrás teljes erőforrás-azonosítója. Például: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
| name |
string |
Az erőforrás neve |
| properties |
Az erőforrás erőforrás-specifikus tulajdonságai. |
|
| systemData |
Azure Resource Manager metaadat, amely createdBy és modifiedBy információkat tartalmaz. |
|
| type |
string |
Az erőforrás típusa. Például: "Microsoft. Compute/virtualMachines" vagy "Microsoft. Tárhely/tárolásFiókok" |
InsightProperties
Hatáskategóriás tulajdonságok.
| Name | Típus | Description |
|---|---|---|
| additionalDetails |
object |
további részletek a megállapításról. |
| category |
string |
kategóriája. |
| content |
A megállapítás címének & leírását tartalmazza |
|
| eventId |
string |
Az ezzel a megállapítással korrelált esemény azonosítója. Ez felhasználható ugyanahhoz az eseményhez tartozó elemzések összesítéséhez. |
| eventTime |
string (date-time) |
Az esemény időpontja, amely korrelált a hatáshoz. |
| groupId |
string |
Hasonló elemzések csoportosítására használható azonosító. |
| impact |
annak a hatásnak a részleteit, amelyre vonatkozóan megállapítást hoztak létre. |
|
| insightUniqueId |
string |
az elemzés egyedi azonosítója. |
| provisioningState |
Erőforrás-kiépítési állapot. |
|
| status |
string |
a megállapítás állapota. például megoldva, javítva, egyéb. |
ProvisioningState
Az erőforrás kiépítési állapota.
| Érték | Description |
|---|---|
| Succeeded |
Az ellátás sikeres |
| Failed |
A kiépítés sikertelen |
| Canceled |
Ellátás törlése |
systemData
Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok.
| Name | Típus | Description |
|---|---|---|
| createdAt |
string (date-time) |
Az erőforrás-létrehozás időbélyege (UTC). |
| createdBy |
string |
Az erőforrást létrehozó identitás. |
| createdByType |
Az erőforrást létrehozó identitás típusa. |
|
| lastModifiedAt |
string (date-time) |
Az erőforrás utolsó módosításának időbélyege (UTC) |
| lastModifiedBy |
string |
Az erőforrást legutóbb módosító identitás. |
| lastModifiedByType |
Az erőforrást legutóbb módosító identitás típusa. |