Jobs - Get Detector
取得指定容器應用程式作業的診斷資料。
取得容器應用程式作業的診斷資料。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/detectors/{detectorName}?api-version=2026-01-01
URI 參數
| 名稱 | 位於 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
detector
|
path | True |
string pattern: ^[-\w\._\(\)]+$ |
容器應用程式作業偵測器的名稱。 |
|
job
|
path | True |
string pattern: ^[-\w\._\(\)]+$ |
作業名稱 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
資源群組的名稱。 名稱不區分大小寫。 |
|
subscription
|
path | True |
string minLength: 1 |
目標訂用帳戶的標識碼。 |
|
api-version
|
query | True |
string minLength: 1 |
用於此作業的 API 版本。 |
回應
| 名稱 | 類型 | Description |
|---|---|---|
| 200 OK |
OK |
|
| Other Status Codes |
常見錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
| 名稱 | Description |
|---|---|
| user_impersonation | 模擬您的用戶帳戶 |
範例
Get diagnostic data for a Container App Job
範例要求
GET https://management.azure.com/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/jobs/mikonojob1/detectors/containerappjobnetworkIO?api-version=2026-01-01
範例回覆
{
"id": "/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/jobs/mikonojob1/detectors/containerappjobnetworkIO",
"name": "containerappjobnetworkIO",
"type": "Microsoft.App/jobs/detectors",
"properties": {
"metadata": {
"id": "containerappjobnetworkIO",
"name": "Container App Job Network Inbound and Outbound",
"description": "This detector shows the Container App Job 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": "Container App Job Network Inbound ",
"description": "",
"isVisible": true
}
}
],
"status": {
"statusId": 3
}
}
}
定義
| 名稱 | Description |
|---|---|
|
created |
建立資源的身分識別類型。 |
|
Default |
App Service 錯誤回應。 |
| Details |
詳細資料或錯誤 |
|
Diagnostic |
資料提供者的中繼資料清單。 |
|
Diagnostic |
表格中的欄 |
|
Diagnostic |
表格回應 |
|
Diagnostic |
表格回應的詳細資料 |
| Diagnostics |
資源的診斷數據。 |
|
Diagnostics |
與回應相關聯的資料集合集。 |
|
Diagnostics |
診斷回應的中繼資料。 |
|
Diagnostics |
診斷回應的狀態。 |
|
Diagnostic |
支援主題清單 |
| Error |
錯誤模型。 |
| Properties |
診斷資源特定屬性 |
|
Property |
屬性集合 |
|
system |
與建立和上次修改資源相關的元數據。 |
createdByType
建立資源的身分識別類型。
| 值 | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
DefaultErrorResponse
App Service 錯誤回應。
| 名稱 | 類型 | Description |
|---|---|---|
| error |
錯誤模型。 |
Details
詳細資料或錯誤
| 名稱 | 類型 | Description |
|---|---|---|
| code |
string |
標準化字串,以程式設計方式識別錯誤。 |
| message |
string |
詳細的錯誤描述和偵錯資訊。 |
| target |
string |
詳細的錯誤描述和偵錯資訊。 |
DiagnosticDataProviderMetadata
資料提供者的中繼資料清單。
| 名稱 | 類型 | Description |
|---|---|---|
| propertyBag |
屬性集合 |
|
| providerName |
string |
資料提供者名稱 |
DiagnosticDataTableResponseColumn
表格中的欄
| 名稱 | 類型 | Description |
|---|---|---|
| columnName |
string |
欄位名稱 |
| columnType |
string |
欄類型 |
| dataType |
string |
資料行的資料類型 |
DiagnosticDataTableResponseObject
表格回應
| 名稱 | 類型 | Description |
|---|---|---|
| columns |
表格中的欄 |
|
| rows |
object[] |
表格中的列 |
| tableName |
string |
數據表名稱 |
DiagnosticRendering
表格回應的詳細資料
| 名稱 | 類型 | Description |
|---|---|---|
| description |
string |
表格說明 |
| isVisible |
boolean |
標記是否應該轉譯表格 |
| title |
string |
表格標題 |
| type |
integer (int32) |
轉譯類型 |
Diagnostics
資源的診斷數據。
| 名稱 | 類型 | Description |
|---|---|---|
| id |
string (arm-id) |
資源的完整資源標識碼。 例如,“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
| name |
string |
資源的名稱 |
| properties |
診斷資源特定屬性 |
|
| systemData |
包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。 |
|
| type |
string |
資源的類型。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts” |
DiagnosticsDataApiResponse
與回應相關聯的資料集合集。
| 名稱 | 類型 | Description |
|---|---|---|
| renderingProperties |
表格回應的詳細資料 |
|
| table |
表格回應 |
DiagnosticsDefinition
診斷回應的中繼資料。
| 名稱 | 類型 | Description |
|---|---|---|
| analysisTypes |
string[] |
分析類型清單 |
| author |
string |
探測器的作者名稱 |
| category |
string |
探測器的類別 |
| description |
string |
診斷資訊的詳細資料 |
| id |
string |
唯一偵測器名稱 |
| name |
string |
偵測器的顯示名稱 |
| score |
number |
探測器的作者名稱 |
| supportTopicList |
支援主題清單 |
|
| type |
string |
探測器的作者名稱 |
DiagnosticsStatus
診斷回應的狀態。
| 名稱 | 類型 | Description |
|---|---|---|
| message |
string |
診斷訊息 |
| statusId |
integer (int32) |
狀態 |
DiagnosticSupportTopic
支援主題清單
| 名稱 | 類型 | Description |
|---|---|---|
| id |
string |
唯一主題識別碼 |
| pesId |
string |
PES 識別碼 |
Error
錯誤模型。
| 名稱 | 類型 | Description |
|---|---|---|
| code |
string |
標準化字串,以程式設計方式識別錯誤。 |
| details |
Details[] |
詳細資料或錯誤 |
| innererror |
string |
偵錯錯誤的詳細資訊。 |
| message |
string |
詳細的錯誤描述和偵錯資訊。 |
| target |
string |
詳細的錯誤描述和偵錯資訊。 |
Properties
診斷資源特定屬性
| 名稱 | 類型 | Description |
|---|---|---|
| dataProviderMetadata |
資料提供者的中繼資料清單。 |
|
| dataset |
與回應相關聯的資料集合集。 |
|
| metadata |
診斷回應的中繼資料。 |
|
| status |
診斷回應的狀態。 |
PropertyBag
屬性集合
| 名稱 | 類型 | Description |
|---|---|---|
| name |
string |
屬性名稱 |
| value |
string |
屬性值 |
systemData
與建立和上次修改資源相關的元數據。
| 名稱 | 類型 | Description |
|---|---|---|
| createdAt |
string (date-time) |
資源建立的時間戳(UTC)。 |
| createdBy |
string |
建立資源的身分識別。 |
| createdByType |
建立資源的身分識別類型。 |
|
| lastModifiedAt |
string (date-time) |
上次修改的資源時間戳 (UTC) |
| lastModifiedBy |
string |
上次修改資源的身分識別。 |
| lastModifiedByType |
上次修改資源的身分識別類型。 |