Delen via


Insights - Create

Inzichtresource maken, dit is alleen beheerbewerking

PUT https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}?api-version=2024-05-01-preview

URI-parameters

Name In Vereist Type Description
insightName
path True

string

pattern: ^[a-zA-Z0-9][a-zA-Z0-9.]*[a-zA-Z0-9]{3,180}$

Naam van het inzicht

subscriptionId
path True

string

minLength: 1

De id van het doelabonnement.

workloadImpactName
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

De API-versie die voor deze bewerking moet worden gebruikt.

Aanvraagbody

Name Vereist Type Description
properties.category True

string

categorie van het inzicht.

properties.content True

Content

Bevat de titel & beschrijving voor het inzicht

properties.impact True

ImpactDetails

details van de impact waarvoor inzicht is gegenereerd.

properties.insightUniqueId True

string

unieke id van het inzicht.

properties.additionalDetails

object

aanvullende details van het inzicht.

properties.eventId

string

Id van de gebeurtenis die is gecorreleerd met dit inzicht. Dit kan worden gebruikt om inzichten voor dezelfde gebeurtenis te aggregeren.

properties.eventTime

string (date-time)

Tijd van de gebeurtenis, die is gecorreleerd aan de impact.

properties.groupId

string

Id die kan worden gebruikt om vergelijkbare inzichten te groeperen.

properties.status

string

status van het inzicht. voorbeeld opgelost, hersteld, overig.

Antwoorden

Name Type Description
200 OK

Insight

Updatebewerking van Resource Insight is voltooid

201 Created

Insight

De bewerking voor het maken van resource 'Insight' is voltooid

Other Status Codes

ErrorResponse

Een onverwachte foutreactie.

Beveiliging

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

Creating an insight

Voorbeeldaanvraag

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Impact/workloadImpacts/impactid22/insights/insightId12?api-version=2024-05-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"
    }
  }
}

Voorbeeldrespons

{
  "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"
    }
  }
}

Definities

Name Description
Content

Artikeldetails van het inzicht, zoals titel, beschrijving, enzovoort

createdByType

Het type identiteit waarmee de resource is gemaakt.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

ImpactDetails

details van de impact waarvoor inzicht is gegenereerd.

Insight

Inzichtresource

ProvisioningState

Inrichtingsstatus van de resource.

systemData

Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.

Content

Artikeldetails van het inzicht, zoals titel, beschrijving, enzovoort

Name Type Description
description

string

Beschrijving van het inzicht

title

string

Titel van het inzicht

createdByType

Het type identiteit waarmee de resource is gemaakt.

Waarde Description
Application
Key
ManagedIdentity
User

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het extra informatietype.

ErrorDetail

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout bevat aanvullende informatie.

code

string

De foutcode.

details

ErrorDetail[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorResponse

Foutreactie

Name Type Description
error

ErrorDetail

Het foutobject.

ImpactDetails

details van de impact waarvoor inzicht is gegenereerd.

Name Type Description
endTime

string (date-time)

Tijdstip waarop de impact is beëindigd volgens gerapporteerde impact.

impactId

string

Azure-id van de impact.

impactedResourceId

string

Lijst met betrokken Azure-resources.

startTime

string (date-time)

Tijdstip waarop de impact is gestart volgens gerapporteerde impact.

Insight

Inzichtresource

Name Type Description
id

string

Volledig gekwalificeerde resource-id voor de resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

De naam van de resource

properties.additionalDetails

object

aanvullende details van het inzicht.

properties.category

string

categorie van het inzicht.

properties.content

Content

Bevat de titel & beschrijving voor het inzicht

properties.eventId

string

Id van de gebeurtenis die is gecorreleerd met dit inzicht. Dit kan worden gebruikt om inzichten voor dezelfde gebeurtenis te aggregeren.

properties.eventTime

string (date-time)

Tijd van de gebeurtenis, die is gecorreleerd aan de impact.

properties.groupId

string

Id die kan worden gebruikt om vergelijkbare inzichten te groeperen.

properties.impact

ImpactDetails

details van de impact waarvoor inzicht is gegenereerd.

properties.insightUniqueId

string

unieke id van het inzicht.

properties.provisioningState

ProvisioningState

Inrichtingsstatus van resource.

properties.status

string

status van het inzicht. voorbeeld opgelost, hersteld, overig.

systemData

systemData

Azure Resource Manager-metagegevens met createdBy- en modifiedBy-gegevens.

type

string

Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts'

ProvisioningState

Inrichtingsstatus van de resource.

Waarde Description
Canceled

Inrichting geannuleerd

Failed

Inrichten is mislukt

Succeeded

Inrichten voltooid

systemData

Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.

Name Type Description
createdAt

string (date-time)

De tijdstempel van het maken van resources (UTC).

createdBy

string

De identiteit waarmee de resource is gemaakt.

createdByType

createdByType

Het type identiteit waarmee de resource is gemaakt.

lastModifiedAt

string (date-time)

De tijdstempel van de laatste wijziging van de resource (UTC)

lastModifiedBy

string

De identiteit die de resource voor het laatst heeft gewijzigd.

lastModifiedByType

createdByType

Het type identiteit dat de resource voor het laatst heeft gewijzigd.