Insights - Create
创建洞察资源,这是仅管理员操作
PUT https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}?api-version=2026-01-01-preview
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
insight
|
path | True |
string pattern: ^[a-zA-Z0-9][a-zA-Z0-9.]*[a-zA-Z0-9]{3,180}$ |
洞察的名称 |
|
subscription
|
path | True |
string (uuid) |
目标订阅的 ID。 该值必须是 UUID。 |
|
workload
|
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 |
此资源的资源特定属性。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
资源“洞察”更新操作成功 |
|
| 201 Created |
资源“洞察”创建操作成功 |
|
| Other Status Codes |
意外的错误响应。 |
安全性
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 |
文章细节,如标题、描述等 |
|
created |
创建资源的标识的类型。 |
|
Error |
资源管理错误附加信息。 |
|
Error |
错误详细信息。 |
|
Error |
错误响应 |
|
Impact |
已为其生成见解的影响的详细信息。 |
| Insight |
洞察资源 |
|
Insight |
影响类别属性。 |
|
Provisioning |
资源的预配状态。 |
|
system |
与创建和上次修改资源相关的元数据。 |
Content
文章细节,如标题、描述等
| 名称 | 类型 | 说明 |
|---|---|---|
| description |
string |
见解说明 |
| title |
string |
见解的标题 |
createdByType
创建资源的标识的类型。
| 值 | 说明 |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
ErrorAdditionalInfo
资源管理错误附加信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| info |
object |
其他信息。 |
| type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| additionalInfo |
错误附加信息。 |
|
| code |
string |
错误代码。 |
| details |
错误详细信息。 |
|
| message |
string |
错误消息。 |
| target |
string |
错误目标。 |
ErrorResponse
错误响应
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误对象。 |
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 |
此资源的资源特定属性。 |
|
| systemData |
Azure 资源管理器 包含 createdBy 和 modifiedBy 信息的元数据。 |
|
| type |
string |
资源类型。 例如,“Microsoft。计算/虚拟机“或”Microsoft“。存储/存储账户” |
InsightProperties
影响类别属性。
| 名称 | 类型 | 说明 |
|---|---|---|
| additionalDetails |
object |
见解的其他详细信息。 |
| category |
string |
见解类别。 |
| content |
包含见解的标题 & 说明 |
|
| eventId |
string |
已与此见解关联的事件的标识符。 这可用于聚合同一事件的见解。 |
| eventTime |
string (date-time) |
事件的时间,该时间与影响相关。 |
| groupId |
string |
可用于对类似见解进行分组的标识符。 |
| impact |
已为其生成见解的影响的详细信息。 |
|
| insightUniqueId |
string |
见解的唯一 ID。 |
| provisioningState |
资源预配状态。 |
|
| status |
string |
见解的状态。 示例已解析、修复、其他。 |
ProvisioningState
资源的预配状态。
| 值 | 说明 |
|---|---|
| Succeeded |
配置成功 |
| Failed |
配置失败 |
| Canceled |
配置取消 |
systemData
与创建和上次修改资源相关的元数据。
| 名称 | 类型 | 说明 |
|---|---|---|
| createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
| createdBy |
string |
创建资源的标识。 |
| createdByType |
创建资源的标识的类型。 |
|
| lastModifiedAt |
string (date-time) |
资源上次修改的时间戳 (UTC) |
| lastModifiedBy |
string |
上次修改资源的标识。 |
| lastModifiedByType |
上次修改资源的标识的类型。 |