通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Insights - Create

创建洞察资源,这是仅管理员操作

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

URI 参数

名称 必需 类型 说明
insightName
path True

string

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

洞察的名称

subscriptionId
path True

string (uuid)

目标订阅的 ID。 该值必须是 UUID。

workloadImpactName
path True

string

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

工作负载影响资源

api-version
query True

string

minLength: 1

用于此作的 API 版本。

请求正文

名称 类型 说明
properties

InsightProperties

此资源的资源特定属性。

响应

名称 类型 说明
200 OK

Insight

资源“洞察”更新操作成功

201 Created

Insight

资源“洞察”创建操作成功

Other Status Codes

ErrorResponse

意外的错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 Flow.

类型: oauth2
流向: implicit
授权 URL: https://login.microsoftonline.com/common/oauth2/authorize

作用域

名称 说明
user_impersonation 模拟用户帐户

示例

Creating an insight

示例请求

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

示例响应

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

定义

名称 说明
Content

文章细节,如标题、描述等

createdByType

创建资源的标识的类型。

ErrorAdditionalInfo

资源管理错误附加信息。

ErrorDetail

错误详细信息。

ErrorResponse

错误响应

ImpactDetails

已为其生成见解的影响的详细信息。

Insight

洞察资源

InsightProperties

影响类别属性。

ProvisioningState

资源的预配状态。

systemData

与创建和上次修改资源相关的元数据。

Content

文章细节,如标题、描述等

名称 类型 说明
description

string

见解说明

title

string

见解的标题

createdByType

创建资源的标识的类型。

说明
User
Application
ManagedIdentity
Key

ErrorAdditionalInfo

资源管理错误附加信息。

名称 类型 说明
info

object

其他信息。

type

string

其他信息类型。

ErrorDetail

错误详细信息。

名称 类型 说明
additionalInfo

ErrorAdditionalInfo[]

错误附加信息。

code

string

错误代码。

details

ErrorDetail[]

错误详细信息。

message

string

错误消息。

target

string

错误目标。

ErrorResponse

错误响应

名称 类型 说明
error

ErrorDetail

错误对象。

ImpactDetails

已为其生成见解的影响的详细信息。

名称 类型 说明
endTime

string (date-time)

根据报告的影响结束影响的时间。

impactId

string

Azure Id 的冲击。

impactedResourceId

string

受影响的 Azure 资源列表。

startTime

string (date-time)

根据报告的影响开始影响的时间。

Insight

洞察资源

名称 类型 说明
id

string (arm-id)

资源的完全限定资源 ID。 例如,“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}”

name

string

资源的名称

properties

InsightProperties

此资源的资源特定属性。

systemData

systemData

Azure 资源管理器 包含 createdBy 和 modifiedBy 信息的元数据。

type

string

资源类型。 例如,“Microsoft。计算/虚拟机“或”Microsoft“。存储/存储账户”

InsightProperties

影响类别属性。

名称 类型 说明
additionalDetails

object

见解的其他详细信息。

category

string

见解类别。

content

Content

包含见解的标题 & 说明

eventId

string

已与此见解关联的事件的标识符。 这可用于聚合同一事件的见解。

eventTime

string (date-time)

事件的时间,该时间与影响相关。

groupId

string

可用于对类似见解进行分组的标识符。

impact

ImpactDetails

已为其生成见解的影响的详细信息。

insightUniqueId

string

见解的唯一 ID。

provisioningState

ProvisioningState

资源预配状态。

status

string

见解的状态。 示例已解析、修复、其他。

ProvisioningState

资源的预配状态。

说明
Succeeded

配置成功

Failed

配置失败

Canceled

配置取消

systemData

与创建和上次修改资源相关的元数据。

名称 类型 说明
createdAt

string (date-time)

资源创建时间戳(UTC)。

createdBy

string

创建资源的标识。

createdByType

createdByType

创建资源的标识的类型。

lastModifiedAt

string (date-time)

资源上次修改的时间戳 (UTC)

lastModifiedBy

string

上次修改资源的标识。

lastModifiedByType

createdByType

上次修改资源的标识的类型。