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

Diagnostics - List Site Analyses

获取网站分析的说明

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/analyses?api-version=2022-03-01

URI 参数

Name In Required Type Description
diagnosticCategory
path True
  • string

诊断类别

resourceGroupName
path True
  • string

资源所属的资源组的名称。

Regex pattern: ^[-\w\._\(\)]+[^\.]$

siteName
path True
  • string

站点名称

subscriptionId
path True
  • string

Azure 订阅 ID。 这是 GUID 格式的字符串, (例如 000000000-0000-0000-0000-00000000000000) 。

api-version
query True
  • string

API 版本

响应

Name Type Description
200 OK

OK

Other Status Codes

App 服务错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation 模拟用户帐户

示例

List App Analyses
List App Slot Analyses

List App Analyses

Sample Request

GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses?api-version=2022-03-01

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses/appanalysis",
      "name": "appanalysis",
      "properties": {
        "description": "Determine causes of availability loss as well as solutions for these problems"
      }
    },
    {
      "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses/apprestartanalyses",
      "name": "apprestartanalysis",
      "properties": {
        "description": "Find the reasons that your app restarted"
      }
    },
    {
      "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses/memoryanalysis",
      "name": "memoryanalysis",
      "properties": {
        "description": "Detect issues with memory as well as suggest ways to troubleshoot memory problems"
      }
    },
    {
      "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses/tcpconnectionsanalysis",
      "name": "tcpconnectionsanalysis",
      "properties": {
        "description": "Analyze port usage and find out if a high number of connections is causing problems for your web app"
      }
    },
    {
      "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses/perfanalysis",
      "name": "perfanalysis",
      "properties": {
        "description": "Determine causes of performance degredation as well as solutions for these problems"
      }
    }
  ]
}

List App Slot Analyses

Sample Request

GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses?api-version=2022-03-01

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/appanalysis",
      "name": "appanalysis",
      "properties": {
        "description": "Determine causes of availability loss as well as solutions for these problems"
      }
    },
    {
      "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/apprestartanalyses",
      "name": "apprestartanalysis",
      "properties": {
        "description": "Find the reasons that your app restarted"
      }
    },
    {
      "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/memoryanalysis",
      "name": "memoryanalysis",
      "properties": {
        "description": "Detect issues with memory as well as suggest ways to troubleshoot memory problems"
      }
    },
    {
      "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/tcpconnectionsanalysis",
      "name": "tcpconnectionsanalysis",
      "properties": {
        "description": "Analyze port usage and find out if a high number of connections is causing problems for your web app"
      }
    },
    {
      "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/perfanalysis",
      "name": "perfanalysis",
      "properties": {
        "description": "Determine causes of performance degredation as well as solutions for these problems"
      }
    }
  ]
}

定义

AnalysisDefinition

分析的定义

DefaultErrorResponse

App 服务错误响应。

Details
DiagnosticAnalysisCollection

诊断分析集合

Error

错误模型。

AnalysisDefinition

分析的定义

Name Type Description
id
  • string

资源 ID。

kind
  • string

资源类型。

name
  • string

资源名称。

properties.description
  • string

分析说明

type
  • string

资源类型。

DefaultErrorResponse

App 服务错误响应。

Name Type Description
error

错误模型。

Details

Name Type Description
code
  • string

标准化字符串以编程方式标识错误。

message
  • string

详细的错误说明和调试信息。

target
  • string

详细的错误说明和调试信息。

DiagnosticAnalysisCollection

诊断分析集合

Name Type Description
nextLink
  • string

链接到下一页的资源。

value

资源集合。

Error

错误模型。

Name Type Description
code
  • string

标准化字符串以编程方式标识错误。

details

详细错误。

innererror
  • string

有关调试错误的详细信息。

message
  • string

详细的错误说明和调试信息。

target
  • string

详细的错误说明和调试信息。