Managed Environment Diagnostics - Get Detector
获取给定托管环境的诊断数据。
获取用于托管容器应用的托管环境的诊断数据。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors/{detectorName}?api-version=2025-01-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
detector
|
path | True |
string |
托管环境检测器的名称。 |
environment
|
path | True |
string |
环境的名称。 |
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 名称不区分大小写。 |
subscription
|
path | True |
string minLength: 1 |
目标订阅的 ID。 |
api-version
|
query | True |
string minLength: 1 |
要用于此操作的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
好的 |
|
Other Status Codes |
常见的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Get diagnostic data for a managed environments
示例请求
示例响应
{
"id": "/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/managedEnvironments/mikonokubeenv/detectors/ManagedEnvAvailabilityMetrics",
"name": "ManagedEnvAvailabilityMetrics",
"type": "Microsoft.App/managedEnvironments/detectors",
"properties": {
"metadata": {
"id": "ManagedEnvAvailabilityMetrics",
"name": "Managed Env Netowrk Inbound and Outbound",
"description": "This detector shows the Managed Environment Network Inbound and Outbound.",
"author": "",
"category": "Availability and Performance",
"supportTopicList": [],
"type": "Detector",
"score": 0
},
"dataset": [
{
"table": {
"tableName": "",
"columns": [
{
"columnName": "TimeStamp",
"dataType": "DateTime"
},
{
"columnName": "Metric",
"dataType": "String"
},
{
"columnName": "Average",
"dataType": "Double"
}
],
"rows": [
[
"2022-03-15T21:35:00",
"RxBytes",
0
]
]
},
"renderingProperties": {
"type": 8,
"title": "Managed Environment Network Inbound ",
"description": "",
"isVisible": true
}
}
],
"status": {
"statusId": 3
}
}
}
定义
名称 | 说明 |
---|---|
created |
创建资源的标识的类型。 |
Default |
应用服务错误响应。 |
Details |
详细信息或错误 |
Diagnostic |
诊断数据提供程序的详细信息 |
Diagnostic |
诊断数据列 |
Diagnostic |
诊断数据表 |
Diagnostic |
呈现诊断表的详细信息 |
Diagnostics |
诊断资源的数据。 |
Diagnostics |
从检测器返回的诊断数据 |
Diagnostics |
诊断响应的元数据 |
Diagnostics |
呈现诊断表的详细信息 |
Diagnostic |
支持主题信息 |
Error |
错误模型。 |
Properties |
诊断资源特定属性 |
Property |
属性集合 |
system |
与创建和上次修改资源相关的元数据。 |
createdByType
创建资源的标识的类型。
值 | 说明 |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
DefaultErrorResponse
应用服务错误响应。
名称 | 类型 | 说明 |
---|---|---|
error |
错误模型。 |
Details
详细信息或错误
名称 | 类型 | 说明 |
---|---|---|
code |
string |
标准化字符串,以编程方式标识错误。 |
message |
string |
详细的错误说明和调试信息。 |
target |
string |
详细的错误说明和调试信息。 |
DiagnosticDataProviderMetadata
诊断数据提供程序的详细信息
名称 | 类型 | 说明 |
---|---|---|
propertyBag |
属性集合 |
|
providerName |
string |
数据提供程序的名称 |
DiagnosticDataTableResponseColumn
诊断数据列
名称 | 类型 | 说明 |
---|---|---|
columnName |
string |
列名称 |
columnType |
string |
列类型 |
dataType |
string |
列的数据类型 |
DiagnosticDataTableResponseObject
诊断数据表
名称 | 类型 | 说明 |
---|---|---|
columns |
表中的列 |
|
rows |
object[] |
表中的行 |
tableName |
string |
表名称 |
DiagnosticRendering
呈现诊断表的详细信息
名称 | 类型 | 说明 |
---|---|---|
description |
string |
表的说明 |
isVisible |
boolean |
如果应呈现表,则标记 |
title |
string |
表的标题 |
type |
integer (int32) |
呈现类型 |
Diagnostics
诊断资源的数据。
名称 | 类型 | 说明 |
---|---|---|
id |
string (arm-id) |
资源的完全限定资源 ID。 例如“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
name |
string |
资源的名称 |
properties |
诊断资源特定属性 |
|
systemData |
包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。 |
|
type |
string |
资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
DiagnosticsDataApiResponse
从检测器返回的诊断数据
名称 | 类型 | 说明 |
---|---|---|
renderingProperties |
表响应的详细信息 |
|
table |
表响应 |
DiagnosticsDefinition
诊断响应的元数据
名称 | 类型 | 说明 |
---|---|---|
analysisTypes |
string[] |
分析类型列表 |
author |
string |
作者的姓名检测器 |
category |
string |
检测器的类别 |
description |
string |
诊断信息的详细信息 |
id |
string |
唯一检测器名称 |
name |
string |
检测器的显示名称 |
score |
number |
作者的姓名检测器 |
supportTopicList |
支持主题列表 |
|
type |
string |
作者的姓名检测器 |
DiagnosticsStatus
呈现诊断表的详细信息
名称 | 类型 | 说明 |
---|---|---|
message |
string |
诊断消息 |
statusId |
integer (int32) |
状态 |
DiagnosticSupportTopic
支持主题信息
名称 | 类型 | 说明 |
---|---|---|
id |
string |
唯一主题标识符 |
pesId |
string |
PES 标识符 |
Error
错误模型。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
标准化字符串,以编程方式标识错误。 |
details |
Details[] |
详细信息或错误 |
innererror |
string |
调试错误的详细信息。 |
message |
string |
详细的错误说明和调试信息。 |
target |
string |
详细的错误说明和调试信息。 |
Properties
诊断资源特定属性
名称 | 类型 | 说明 |
---|---|---|
dataProviderMetadata |
数据提供程序的元数据列表。 |
|
dataset |
与响应关联的数据集。 |
|
metadata |
诊断响应的元数据。 |
|
status |
诊断响应的状态。 |
PropertyBag
属性集合
名称 | 类型 | 说明 |
---|---|---|
name |
string |
属性名称 |
value |
string |
属性值 |
systemData
与创建和上次修改资源相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识的类型。 |
|
lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识的类型。 |