Aracılığıyla paylaş


Insights - Create

Insight kaynağı oluştur, Bu sadece yönetici operasyondur

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

URI Parametreleri

Name İçinde Gerekli Tür Description
insightName
path True

string

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

İçgörün adı

subscriptionId
path True

string (uuid)

Hedef aboneliğin kimliği. Değer bir UUID olmalıdır.

workloadImpactName
path True

string

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

workloadImpact kaynağı

api-version
query True

string

minLength: 1

Bu işlem için kullanılacak API sürümü.

İstek Gövdesi

Name Tür Description
properties

InsightProperties

Bu kaynağın kaynağa özgü özellikleri.

Yanıtlar

Name Tür Description
200 OK

Insight

Kaynak 'Insight' güncelleme işlemi başarılı oldu

201 Created

Insight

Kaynak 'İçgörülü' operasyon oluşturdu

Other Status Codes

ErrorResponse

Beklenmeyen bir hata yanıtı.

Güvenlik

azure_auth

Azure Active Directory OAuth2 Flow.

Tür: oauth2
Akış: implicit
Yetkilendirme URL’si: https://login.microsoftonline.com/common/oauth2/authorize

Kapsamlar

Name Description
user_impersonation kullanıcı hesabınızın kimliğine bürünme

Örnekler

Creating an insight

Örnek isteği

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

Örnek yanıt

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

Tanımlar

Name Description
Content

İçgörün başlık, açıklama gibi makale detayları

createdByType

Kaynağı oluşturan kimliğin türü.

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

ErrorDetail

Hata ayrıntısı.

ErrorResponse

Hata yanıtı

ImpactDetails

içgörülerin oluşturulduğu etkinin ayrıntıları.

Insight

İçgörü kaynağı

InsightProperties

Etki kategorisi özellikleri.

ProvisioningState

Kaynağın sağlama durumu.

systemData

Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler.

Content

İçgörün başlık, açıklama gibi makale detayları

Name Tür Description
description

string

İçgörü açıklaması

title

string

İçgörü başlığı

createdByType

Kaynağı oluşturan kimliğin türü.

Değer Description
User
Application
ManagedIdentity
Key

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

Name Tür Description
info

object

Ek bilgiler.

type

string

Ek bilgi türü.

ErrorDetail

Hata ayrıntısı.

Name Tür Description
additionalInfo

ErrorAdditionalInfo[]

Hata ek bilgileri.

code

string

Hata kodu.

details

ErrorDetail[]

Hata ayrıntıları.

message

string

Hata iletisi.

target

string

Hata hedefi

ErrorResponse

Hata yanıtı

Name Tür Description
error

ErrorDetail

Hata nesnesi.

ImpactDetails

içgörülerin oluşturulduğu etkinin ayrıntıları.

Name Tür Description
endTime

string (date-time)

Bildirilen etkiye göre etkinin sona erdiği zaman.

impactId

string

Azure Id etkisinin anlaşılması.

impactedResourceId

string

Etkilenen Azure kaynaklarının listesi.

startTime

string (date-time)

Bildirilen etkiye göre etkinin başlatıldığı zaman.

Insight

İçgörü kaynağı

Name Tür Description
id

string (arm-id)

Kaynağın tam kaynak kimliği. Örneğin "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

name

string

Kaynağın adı

properties

InsightProperties

Bu kaynağın kaynağa özgü özellikleri.

systemData

systemData

Azure Resource Manager metadata içeren createdBy ve modifiedBy bilgileri.

type

string

Kaynağın türü. Örneğin "Microsoft. Compute/virtualMachines" veya "Microsoft. Depo/Depolama Hesapları"

InsightProperties

Etki kategorisi özellikleri.

Name Tür Description
additionalDetails

object

içgörüye ilişkin ek ayrıntılar.

category

string

kategorisini seçin.

content

Content

İçgörü için başlık & açıklamasını içerir

eventId

string

Bu içgörüyle bağıntılı olan olayın tanımlayıcısı. Bu, aynı olayla ilgili içgörüleri toplamak için kullanılabilir.

eventTime

string (date-time)

Etkiyle bağıntılı olan olayın zamanı.

groupId

string

Benzer içgörüleri gruplandırmak için kullanılabilecek tanımlayıcı.

impact

ImpactDetails

içgörülerin oluşturulduğu etkinin ayrıntıları.

insightUniqueId

string

içgörü benzersiz kimliği.

provisioningState

ProvisioningState

Kaynak sağlama durumu.

status

string

içgörünün durumu. örnek çözüldü, onarıldı, diğer.

ProvisioningState

Kaynağın sağlama durumu.

Değer Description
Succeeded

Tedarik Başarılı Oldu

Failed

Sağlama başarısız oldu

Canceled

Tedarik İptal Edildi

systemData

Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler.

Name Tür Description
createdAt

string (date-time)

Kaynak oluşturma (UTC) zaman damgası.

createdBy

string

Kaynağı oluşturan kimlik.

createdByType

createdByType

Kaynağı oluşturan kimliğin türü.

lastModifiedAt

string (date-time)

Kaynağın son değişikliğinin zaman damgası (UTC)

lastModifiedBy

string

Kaynağı en son değiştiren kimlik.

lastModifiedByType

createdByType

Kaynağı en son değiştiren kimlik türü.