Описание ответов детектора сайтов списка
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors?api-version=2023-12-01
Параметры URI
Имя |
В |
Обязательно |
Тип |
Описание |
resourceGroupName
|
path |
True
|
string
minLength: 1 maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$
|
Имя группы ресурсов, к которой принадлежит ресурс.
|
siteName
|
path |
True
|
string
|
Имя сайта
|
slot
|
path |
True
|
string
|
Имя слота
|
subscriptionId
|
path |
True
|
string
|
Идентификатор подписки Azure. Это строка с форматом GUID (например, 0000000000-0000-0000-0000-00000000000000000000000000000).
|
api-version
|
query |
True
|
string
|
Версия API
|
Ответы
Безопасность
azure_auth
Поток OAuth2 Azure Active Directory
Тип:
oauth2
Flow:
implicit
URL-адрес авторизации:
https://login.microsoftonline.com/common/oauth2/authorize
Области
Имя |
Описание |
user_impersonation
|
олицетворения учетной записи пользователя
|
Примеры
Get App Detector Responses
Образец запроса
GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/detectors?api-version=2023-12-01
/**
* Samples for Diagnostics ListSiteDetectorResponses.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorResponses
* .json
*/
/**
* Sample code: Get App Detector Responses.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void getAppDetectorResponses(com.azure.resourcemanager.AzureResourceManager azure) {
azure.webApps().manager().serviceClient().getDiagnostics()
.listSiteDetectorResponses("Sample-WestUSResourceGroup", "SampleApp", com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.web import WebSiteManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-web
# USAGE
python diagnostics_list_site_detector_responses.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = WebSiteManagementClient(
credential=DefaultAzureCredential(),
subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
)
response = client.diagnostics.list_site_detector_responses_slot(
resource_group_name="Sample-WestUSResourceGroup",
site_name="SampleApp",
slot="staging",
)
for item in response:
print(item)
# x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorResponses.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armappservice_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorResponses.json
func ExampleDiagnosticsClient_NewListSiteDetectorResponsesPager_getAppDetectorResponses() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armappservice.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewDiagnosticsClient().NewListSiteDetectorResponsesPager("Sample-WestUSResourceGroup", "SampleApp", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.DetectorResponseCollection = armappservice.DetectorResponseCollection{
// Value: []*armappservice.DetectorResponse{
// {
// Name: to.Ptr("runtimeavailability"),
// ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/detectors/runtimeavailability"),
// Properties: &armappservice.DetectorResponseProperties{
// Dataset: []*armappservice.DiagnosticData{
// },
// Metadata: &armappservice.DetectorInfo{
// Description: to.Ptr("This detector analyzes the requests to your application."),
// Category: to.Ptr("Availability and Performance"),
// },
// },
// }},
// }
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { WebSiteManagementClient } = require("@azure/arm-appservice");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Description for List Site Detector Responses
*
* @summary Description for List Site Detector Responses
* x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorResponses.json
*/
async function getAppDetectorResponses() {
const subscriptionId =
process.env["APPSERVICE_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
const resourceGroupName =
process.env["APPSERVICE_RESOURCE_GROUP"] || "Sample-WestUSResourceGroup";
const siteName = "SampleApp";
const credential = new DefaultAzureCredential();
const client = new WebSiteManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.diagnostics.listSiteDetectorResponses(
resourceGroupName,
siteName,
)) {
resArray.push(item);
}
console.log(resArray);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using Azure;
using Azure.ResourceManager;
using System;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.AppService;
// Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorResponses.json
// this example is just showing the usage of "Diagnostics_ListSiteDetectorResponses" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this WebSiteResource created on azure
// for more information of creating WebSiteResource, please refer to the document of WebSiteResource
string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
string resourceGroupName = "Sample-WestUSResourceGroup";
string siteName = "SampleApp";
ResourceIdentifier webSiteResourceId = WebSiteResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, siteName);
WebSiteResource webSite = client.GetWebSiteResource(webSiteResourceId);
// get the collection of this SiteDetectorResource
SiteDetectorCollection collection = webSite.GetSiteDetectors();
// invoke the operation and iterate over the result
await foreach (SiteDetectorResource item in collection.GetAllAsync())
{
// the variable item is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
AppServiceDetectorData resourceData = item.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
Console.WriteLine($"Succeeded");
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Пример ответа
{
"value": [
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/detectors/runtimeavailability",
"name": "runtimeavailability",
"properties": {
"metadata": {
"description": "This detector analyzes the requests to your application.",
"category": "Availability and Performance"
},
"dataset": []
}
}
]
}
Get App Slot Detector Responses
Образец запроса
GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/detectors?api-version=2023-12-01
/**
* Samples for Diagnostics ListSiteDetectorResponses.
*/
public final class Main {
/*
* x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/
* Diagnostics_ListSiteDetectorResponsesSlot.json
*/
/**
* Sample code: Get App Slot Detector Responses.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void getAppSlotDetectorResponses(com.azure.resourcemanager.AzureResourceManager azure) {
azure.webApps().manager().serviceClient().getDiagnostics()
.listSiteDetectorResponses("Sample-WestUSResourceGroup", "SampleApp", com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.web import WebSiteManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-web
# USAGE
python diagnostics_list_site_detector_responses_slot.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = WebSiteManagementClient(
credential=DefaultAzureCredential(),
subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
)
response = client.diagnostics.list_site_detector_responses_slot(
resource_group_name="Sample-WestUSResourceGroup",
site_name="SampleApp",
slot="staging",
)
for item in response:
print(item)
# x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorResponsesSlot.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armappservice_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorResponsesSlot.json
func ExampleDiagnosticsClient_NewListSiteDetectorResponsesPager_getAppSlotDetectorResponses() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armappservice.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewDiagnosticsClient().NewListSiteDetectorResponsesPager("Sample-WestUSResourceGroup", "SampleApp", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.DetectorResponseCollection = armappservice.DetectorResponseCollection{
// Value: []*armappservice.DetectorResponse{
// {
// Name: to.Ptr("runtimeavailability"),
// ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/detectors/runtimeavailability"),
// Properties: &armappservice.DetectorResponseProperties{
// Dataset: []*armappservice.DiagnosticData{
// },
// Metadata: &armappservice.DetectorInfo{
// Description: to.Ptr("This detector analyzes the requests to your application."),
// Category: to.Ptr("Availability and Performance"),
// },
// },
// }},
// }
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { WebSiteManagementClient } = require("@azure/arm-appservice");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Description for List Site Detector Responses
*
* @summary Description for List Site Detector Responses
* x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorResponsesSlot.json
*/
async function getAppSlotDetectorResponses() {
const subscriptionId =
process.env["APPSERVICE_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
const resourceGroupName =
process.env["APPSERVICE_RESOURCE_GROUP"] || "Sample-WestUSResourceGroup";
const siteName = "SampleApp";
const credential = new DefaultAzureCredential();
const client = new WebSiteManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.diagnostics.listSiteDetectorResponses(
resourceGroupName,
siteName,
)) {
resArray.push(item);
}
console.log(resArray);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using Azure;
using Azure.ResourceManager;
using System;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.AppService;
// Generated from example definition: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorResponsesSlot.json
// this example is just showing the usage of "Diagnostics_ListSiteDetectorResponses" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this WebSiteResource created on azure
// for more information of creating WebSiteResource, please refer to the document of WebSiteResource
string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
string resourceGroupName = "Sample-WestUSResourceGroup";
string siteName = "SampleApp";
ResourceIdentifier webSiteResourceId = WebSiteResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, siteName);
WebSiteResource webSite = client.GetWebSiteResource(webSiteResourceId);
// get the collection of this SiteDetectorResource
SiteDetectorCollection collection = webSite.GetSiteDetectors();
// invoke the operation and iterate over the result
await foreach (SiteDetectorResource item in collection.GetAllAsync())
{
// the variable item is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
AppServiceDetectorData resourceData = item.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
Console.WriteLine($"Succeeded");
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Пример ответа
{
"value": [
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/detectors/runtimeavailability",
"name": "runtimeavailability",
"properties": {
"metadata": {
"description": "This detector analyzes the requests to your application.",
"category": "Availability and Performance"
},
"dataset": []
}
}
]
}
Определения
Object
Дополнительная конфигурация для поставщиков данных
DataTableResponseColumn
Object
Определение столбца
Имя |
Тип |
Описание |
columnName
|
string
|
Имя столбца
|
columnType
|
string
|
Тип столбца
|
dataType
|
string
|
Тип данных, который выглядит как String или Int32.
|
DataTableResponseObject
Object
Таблица данных, которая определяет столбцы и необработанные значения строк
Имя |
Тип |
Описание |
columns
|
DataTableResponseColumn[]
|
Список столбцов с типами данных
|
rows
|
string[]
|
Необработанные значения строк
|
tableName
|
string
|
Имя таблицы
|
DefaultErrorResponse
Object
Ответ об ошибке службы приложений.
Имя |
Тип |
Описание |
error
|
Error
|
Модель ошибок.
|
Details
Object
Имя |
Тип |
Описание |
code
|
string
|
Стандартизованная строка для программной идентификации ошибки.
|
message
|
string
|
Подробные сведения об ошибке и сведения об отладке.
|
target
|
string
|
Подробные сведения об ошибке и сведения об отладке.
|
DetectorInfo
Object
Определение детектора
Имя |
Тип |
Описание |
analysisType
|
string[]
|
Типы анализа, к которым должен применяться этот детектор.
|
author
|
string
|
Автор детектора.
|
category
|
string
|
Категория проблем. Это служит для организации группы для детекторов.
|
description
|
string
|
Краткое описание детектора и его назначения.
|
id
|
string
|
Идентификатор детектора
|
name
|
string
|
Имя детектора
|
score
|
number
(float)
|
Определяет оценку детектора для сопоставления на основе машинного обучения.
|
supportTopicList
|
SupportTopic[]
|
Список разделов поддержки, для которых включен этот детектор.
|
type
|
DetectorType
|
Является ли этот детектор детектором анализа или нет.
|
DetectorResponse
Object
Класс, представляющий ответ от детектора
Имя |
Тип |
Описание |
id
|
string
|
Идентификатор ресурса.
|
kind
|
string
|
Тип ресурса.
|
name
|
string
|
Имя ресурса.
|
properties.dataProvidersMetadata
|
DataProviderMetadata[]
|
Дополнительная конфигурация для различных поставщиков данных, используемых пользовательским интерфейсом
|
properties.dataset
|
DiagnosticData[]
|
Набор данных
|
properties.metadata
|
DetectorInfo
|
метаданные для детектора
|
properties.status
|
Status
|
Указывает состояние наиболее серьезного анализа.
|
properties.suggestedUtterances
|
QueryUtterancesResults
|
Предлагаемые речевые фрагменты, в которых может применяться детектор.
|
type
|
string
|
Тип ресурса.
|
DetectorResponseCollection
Object
Коллекция ответов детектора
Имя |
Тип |
Описание |
nextLink
|
string
|
Ссылка на следующую страницу ресурсов.
|
value
|
DetectorResponse[]
|
Коллекция ресурсов.
|
DetectorType
Перечисление
Является ли этот детектор детектором анализа или нет.
Значение |
Описание |
Analysis
|
|
CategoryOverview
|
|
Detector
|
|
DiagnosticData
Object
Набор данных с инструкциями по отрисовке
Error
Object
Модель ошибок.
Имя |
Тип |
Описание |
code
|
string
|
Стандартизованная строка для программной идентификации ошибки.
|
details
|
Details[]
|
Подробные ошибки.
|
innererror
|
string
|
Дополнительные сведения об ошибке отладки.
|
message
|
string
|
Подробные сведения об ошибке и сведения об отладке.
|
target
|
string
|
Подробные сведения об ошибке и сведения об отладке.
|
InsightStatus
Перечисление
Уровень наиболее серьезного анализа, созданного детектором.
Значение |
Описание |
Critical
|
|
Info
|
|
None
|
|
Success
|
|
Warning
|
|
KeyValuePair[String,Object]
Object
Имя |
Тип |
Описание |
key
|
string
|
|
value
|
object
|
|
QueryUtterancesResult
Object
Результат запроса речевых фрагментов.
Имя |
Тип |
Описание |
sampleUtterance
|
SampleUtterance
|
Пример речевых фрагментов.
|
score
|
number
(float)
|
Оценка примера речевых фрагментов.
|
QueryUtterancesResults
Object
Предлагаемые речевые фрагменты, в которых детектор может быть применим
Имя |
Тип |
Описание |
query
|
string
|
Поисковый запрос.
|
results
|
QueryUtterancesResult[]
|
Массив результатов речевых фрагментов для поискового запроса.
|
Rendering
Object
Инструкции по отрисовке данных
Имя |
Тип |
Описание |
description
|
string
|
Описание данных, которые помогут интерпретироваться
|
title
|
string
|
Название данных
|
type
|
RenderingType
|
Тип отрисовки
|
RenderingType
Перечисление
Тип отрисовки
Значение |
Описание |
AppInsight
|
|
AppInsightEnablement
|
|
Card
|
|
ChangeAnalysisOnboarding
|
|
ChangeSets
|
|
ChangesView
|
|
DataSummary
|
|
DependencyGraph
|
|
Detector
|
|
DownTime
|
|
DropDown
|
|
DynamicInsight
|
|
Email
|
|
Form
|
|
Guage
|
|
Insights
|
|
Markdown
|
|
NoGraph
|
|
PieChart
|
|
SearchComponent
|
|
Solution
|
|
SummaryCard
|
|
Table
|
|
TimeSeries
|
|
TimeSeriesPerInstance
|
|
SampleUtterance
Object
Пример речевых фрагментов.
Имя |
Тип |
Описание |
links
|
string[]
|
Ссылки атрибута примера речевых фрагментов.
|
qid
|
string
|
Идентификатор вопроса примера речевых фрагментов (для заголовков вопросов stackoverflow).
|
text
|
string
|
Текстовый атрибут примера речевых фрагментов.
|
Status
Object
Определите состояние наиболее серьезного анализа, созданного детектором.
Имя |
Тип |
Описание |
message
|
string
|
Описательное сообщение.
|
statusId
|
InsightStatus
|
Уровень наиболее серьезного анализа, созданного детектором.
|
SupportTopic
Object
Определяет уникальный раздел поддержки
Имя |
Тип |
Описание |
id
|
string
|
Идентификатор раздела поддержки
|
pesId
|
string
|
Уникальный идентификатор ресурса
|