- 最新の を
する - 2025-09-01-プレビュー
- 2025-03-01-preview
- 2024-10-01-preview
- 2024-06-01-プレビュー
- 2024-05-01
- 2023-09-01-プレビュー
- 2023-05-01-プレビュー
- 2023-03-01-プレビュー
- 2022-09-01-プレビュー
- 2022-08-01
- 2022-04-01-プレビュー
- 2021-12-01-プレビュー
- 2021-08-01
- 2021-04-01-プレビュー
- 2021-01-01-プレビュー
- 2020-12-01
- 2020-06-01-プレビュー
- 2019-12-01
- 2019-12-01-プレビュー
- 2019-01-01
- 2018-06-01-プレビュー
- 2018-01-01
- 2017-03-01
Bicep リソース定義
サービス/apis/diagnostics リソースの種類は、次を対象とする操作と共にデプロイできます。
- リソース グループの - リソース グループのデプロイ コマンド 参照
各 API バージョンで変更されたプロパティの一覧については、変更ログの
使用例
Bicep サンプル
API Management サービス API 診断ログのデプロイの基本的な例。
param resourceName string = 'acctest0001'
param location string = 'westeurope'
resource component 'Microsoft.Insights/components@2020-02-02' = {
name: resourceName
location: location
kind: 'web'
properties: {
Application_Type: 'web'
DisableIpMasking: false
DisableLocalAuth: false
ForceCustomerStorageForProfiler: false
RetentionInDays: 90
SamplingPercentage: 100
publicNetworkAccessForIngestion: 'Enabled'
publicNetworkAccessForQuery: 'Enabled'
}
}
resource service 'Microsoft.ApiManagement/service@2021-08-01' = {
name: resourceName
location: location
sku: {
capacity: 0
name: 'Consumption'
}
properties: {
certificates: []
customProperties: {
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11': 'false'
}
disableGateway: false
publicNetworkAccess: 'Enabled'
publisherEmail: 'pub1@email.com'
publisherName: 'pub1'
virtualNetworkType: 'None'
}
}
resource api 'Microsoft.ApiManagement/service/apis@2021-08-01' = {
name: '${resourceName};rev=1'
parent: service
properties: {
apiType: 'http'
apiVersion: ''
format: 'swagger-link-json'
path: 'test'
type: 'http'
value: 'http://conferenceapi.azurewebsites.net/?format=json'
}
}
resource logger 'Microsoft.ApiManagement/service/loggers@2021-08-01' = {
name: resourceName
parent: service
properties: {
credentials: {
instrumentationKey: component.properties.InstrumentationKey
}
description: ''
isBuffered: true
loggerType: 'applicationInsights'
}
}
resource diagnostic 'Microsoft.ApiManagement/service/apis/diagnostics@2021-08-01' = {
name: 'applicationinsights'
parent: api
properties: {
loggerId: logger.id
operationNameFormat: 'Name'
}
}
Azure 検証済みモジュール
次の Azure 検証済みモジュール を使用して、このリソースの種類をデプロイできます。
| Module | Description |
|---|---|
| API管理サービス - API診断 | API管理サービス用AVM子モジュール - API診断 |
リソースの形式
Microsoft.ApiManagement/service/apis/diagnostics リソースを作成するには、次の Bicep をテンプレートに追加します。
resource symbolicname 'Microsoft.ApiManagement/service/apis/diagnostics@2024-10-01-preview' = {
parent: resourceSymbolicName
name: 'string'
properties: {
alwaysLog: 'string'
backend: {
request: {
body: {
bytes: int
}
dataMasking: {
headers: [
{
mode: 'string'
value: 'string'
}
]
queryParams: [
{
mode: 'string'
value: 'string'
}
]
}
headers: [
'string'
]
}
response: {
body: {
bytes: int
}
dataMasking: {
headers: [
{
mode: 'string'
value: 'string'
}
]
queryParams: [
{
mode: 'string'
value: 'string'
}
]
}
headers: [
'string'
]
}
}
frontend: {
request: {
body: {
bytes: int
}
dataMasking: {
headers: [
{
mode: 'string'
value: 'string'
}
]
queryParams: [
{
mode: 'string'
value: 'string'
}
]
}
headers: [
'string'
]
}
response: {
body: {
bytes: int
}
dataMasking: {
headers: [
{
mode: 'string'
value: 'string'
}
]
queryParams: [
{
mode: 'string'
value: 'string'
}
]
}
headers: [
'string'
]
}
}
httpCorrelationProtocol: 'string'
largeLanguageModel: {
logs: 'string'
requests: {
maxSizeInBytes: int
messages: 'string'
}
responses: {
maxSizeInBytes: int
messages: 'string'
}
}
logClientIp: bool
loggerId: 'string'
metrics: bool
operationNameFormat: 'string'
sampling: {
percentage: int
samplingType: 'string'
}
verbosity: 'string'
}
}
プロパティ値
Microsoft.ApiManagement/service/apis/diagnostics
| 名前 | Description | 価値 |
|---|---|---|
| 名前 | リソース名 | string 制約: 最小長 = 1 最大長 = 80 パターン = ^[^*#&+:<>?]+$ (必須) |
| 親 | Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。 詳細については、「親リソースの外部 |
種類のリソースのシンボリック名: service/apis |
| プロパティ | 診断エンティティ コントラクトのプロパティ。 | DiagnosticContractProperties (診断契約プロパティ) |
BodyDiagnosticSettings
| 名前 | Description | 価値 |
|---|---|---|
| バイト | ログに記録する要求本文のバイト数。 | int 制約: 最大値 = 8192 |
データマスキング
| 名前 | Description | 価値 |
|---|---|---|
| headers | ヘッダーのマスキング設定 | データマスキングエンティティ[] |
| queryParams (クエリパラメータ) | Url クエリ パラメーターのマスキング設定 | データマスキングエンティティ[] |
データマスキングエンティティ
| 名前 | Description | 価値 |
|---|---|---|
| mode | データマスキングモード。 | 「隠れる」 「マスク」 |
| value | マスクするエンティティの名前 (ヘッダーの名前やクエリ パラメーターの名前など)。 | 文字列 |
DiagnosticContractProperties (診断契約プロパティ)
| 名前 | Description | 価値 |
|---|---|---|
| alwaysLog (常時ログ) | 適用しないメッセージ サンプリング設定の種類を指定します。 | 'allErrors' |
| バックエンド | バックエンドへの受信/送信 HTTP メッセージの診断設定 | パイプライン診断設定 |
| frontend | ゲートウェイへの受信/送信 HTTP メッセージの診断設定。 | パイプライン診断設定 |
| httpCorrelationプロトコル | Application Insights 診断に使用する相関プロトコルを設定します。 | 「レガシー」 「なし」 「W3C」 |
| large言語モデル | 大規模言語モデルの診断設定 | LLMDiagnosticSettings (LLMDiagnostic設定) |
| logClientIp | ClientIP をログに記録します。 既定値は false です。 | ブール (bool) |
| ロガーID | ターゲット ロガーのリソース ID。 | string (必須) |
| メトリクス | emit-metric ポリシーを使用してカスタム メトリックを出力します。 Application Insights の診断設定にのみ適用されます。 | ブール (bool) |
| operationNameFormat (操作名フォーマット) | Application Insights テレメトリの操作名の形式。 デフォルトは [名前] です。 | '名前' 「URL」 |
| サンプリング | 診断のサンプリング設定。 | サンプリング設定 |
| 詳細 | トレース ポリシーによって発行されるトレースに適用される詳細レベル。 | 'エラー' 「情報」 「冗長」 |
HttpMessageDiagnostic (英語)
| 名前 | Description | 価値 |
|---|---|---|
| body | 本文ログの設定。 | BodyDiagnosticSettings |
| データマスキング | データマスキング設定。 | データマスキング |
| headers | ログに記録する HTTP ヘッダーの配列。 | string[] |
LLMDiagnosticSettings (LLMDiagnostic設定)
| 名前 | Description | 価値 |
|---|---|---|
| ログ | 大規模な言語モデルに対して既定の診断を有効にするかどうかを指定します。 | '無効' '有効' |
| リクエスト | 大規模言語モデル要求の診断設定。 | LLMMessageDiagnosticSettings (LLMMessageDiagnostic設定) |
| 応答 | 大規模言語モデル応答の診断設定。 | LLMMessageDiagnosticSettings (LLMMessageDiagnostic設定) |
LLMMessageDiagnosticSettings (LLMMessageDiagnostic設定)
| 名前 | Description | 価値 |
|---|---|---|
| 最大サイズインバイト | ログへのメッセージの最大サイズ (バイト単位)。 デフォルトのサイズは 32KB です。 | int 制約: 最小値 = 1 最大値 = 262144 |
| messages | ログに記録するメッセージを指定します。 現在、'all'オプションしかありません。 | 「すべて」 |
パイプライン診断設定
| 名前 | Description | 価値 |
|---|---|---|
| 要求 | 要求の診断設定。 | HttpMessageDiagnostic の |
| response | 応答の診断設定。 | HttpMessageDiagnostic の |
サンプリング設定
| 名前 | Description | 価値 |
|---|---|---|
| 百分率 | 固定レート サンプリングのサンプリングレート。 | int 制約: 最小値 = 0 最大値 = 100 |
| サンプリングタイプ | サンプリングの種類。 | '修正済み' |
ARM テンプレート リソース定義
サービス/apis/diagnostics リソースの種類は、次を対象とする操作と共にデプロイできます。
- リソースグループ - リソースグループのデプロイコマンドを参照してください。 各APIバージョンの変更プロパティ一覧は 変更ログをご覧ください。
使用例
リソースの形式
Microsoft.ApiManagement/service/apis/diagnostics リソースを作成するには、次の JSON をテンプレートに追加します。
{
"type": "Microsoft.ApiManagement/service/apis/diagnostics",
"apiVersion": "2024-10-01-preview",
"name": "string",
"properties": {
"alwaysLog": "string",
"backend": {
"request": {
"body": {
"bytes": "int"
},
"dataMasking": {
"headers": [
{
"mode": "string",
"value": "string"
}
],
"queryParams": [
{
"mode": "string",
"value": "string"
}
]
},
"headers": [ "string" ]
},
"response": {
"body": {
"bytes": "int"
},
"dataMasking": {
"headers": [
{
"mode": "string",
"value": "string"
}
],
"queryParams": [
{
"mode": "string",
"value": "string"
}
]
},
"headers": [ "string" ]
}
},
"frontend": {
"request": {
"body": {
"bytes": "int"
},
"dataMasking": {
"headers": [
{
"mode": "string",
"value": "string"
}
],
"queryParams": [
{
"mode": "string",
"value": "string"
}
]
},
"headers": [ "string" ]
},
"response": {
"body": {
"bytes": "int"
},
"dataMasking": {
"headers": [
{
"mode": "string",
"value": "string"
}
],
"queryParams": [
{
"mode": "string",
"value": "string"
}
]
},
"headers": [ "string" ]
}
},
"httpCorrelationProtocol": "string",
"largeLanguageModel": {
"logs": "string",
"requests": {
"maxSizeInBytes": "int",
"messages": "string"
},
"responses": {
"maxSizeInBytes": "int",
"messages": "string"
}
},
"logClientIp": "bool",
"loggerId": "string",
"metrics": "bool",
"operationNameFormat": "string",
"sampling": {
"percentage": "int",
"samplingType": "string"
},
"verbosity": "string"
}
}
プロパティ値
Microsoft.ApiManagement/service/apis/diagnostics
| 名前 | Description | 価値 |
|---|---|---|
| apiVersion | API のバージョン | '2024-10-01-preview' |
| 名前 | リソース名 | string 制約: 最小長 = 1 最大長 = 80 パターン = ^[^*#&+:<>?]+$ (必須) |
| プロパティ | 診断エンティティ コントラクトのプロパティ。 | DiagnosticContractProperties (診断契約プロパティ) |
| 型 | リソースの種類 | 'Microsoft.ApiManagement/service/apis/diagnostics' |
BodyDiagnosticSettings
| 名前 | Description | 価値 |
|---|---|---|
| バイト | ログに記録する要求本文のバイト数。 | int 制約: 最大値 = 8192 |
データマスキング
| 名前 | Description | 価値 |
|---|---|---|
| headers | ヘッダーのマスキング設定 | データマスキングエンティティ[] |
| queryParams (クエリパラメータ) | Url クエリ パラメーターのマスキング設定 | データマスキングエンティティ[] |
データマスキングエンティティ
| 名前 | Description | 価値 |
|---|---|---|
| mode | データマスキングモード。 | 「隠れる」 「マスク」 |
| value | マスクするエンティティの名前 (ヘッダーの名前やクエリ パラメーターの名前など)。 | 文字列 |
DiagnosticContractProperties (診断契約プロパティ)
| 名前 | Description | 価値 |
|---|---|---|
| alwaysLog (常時ログ) | 適用しないメッセージ サンプリング設定の種類を指定します。 | 'allErrors' |
| バックエンド | バックエンドへの受信/送信 HTTP メッセージの診断設定 | パイプライン診断設定 |
| frontend | ゲートウェイへの受信/送信 HTTP メッセージの診断設定。 | パイプライン診断設定 |
| httpCorrelationプロトコル | Application Insights 診断に使用する相関プロトコルを設定します。 | 「レガシー」 「なし」 「W3C」 |
| large言語モデル | 大規模言語モデルの診断設定 | LLMDiagnosticSettings (LLMDiagnostic設定) |
| logClientIp | ClientIP をログに記録します。 既定値は false です。 | ブール (bool) |
| ロガーID | ターゲット ロガーのリソース ID。 | string (必須) |
| メトリクス | emit-metric ポリシーを使用してカスタム メトリックを出力します。 Application Insights の診断設定にのみ適用されます。 | ブール (bool) |
| operationNameFormat (操作名フォーマット) | Application Insights テレメトリの操作名の形式。 デフォルトは [名前] です。 | '名前' 「URL」 |
| サンプリング | 診断のサンプリング設定。 | サンプリング設定 |
| 詳細 | トレース ポリシーによって発行されるトレースに適用される詳細レベル。 | 'エラー' 「情報」 「冗長」 |
HttpMessageDiagnostic (英語)
| 名前 | Description | 価値 |
|---|---|---|
| body | 本文ログの設定。 | BodyDiagnosticSettings |
| データマスキング | データマスキング設定。 | データマスキング |
| headers | ログに記録する HTTP ヘッダーの配列。 | string[] |
LLMDiagnosticSettings (LLMDiagnostic設定)
| 名前 | Description | 価値 |
|---|---|---|
| ログ | 大規模な言語モデルに対して既定の診断を有効にするかどうかを指定します。 | '無効' '有効' |
| リクエスト | 大規模言語モデル要求の診断設定。 | LLMMessageDiagnosticSettings (LLMMessageDiagnostic設定) |
| 応答 | 大規模言語モデル応答の診断設定。 | LLMMessageDiagnosticSettings (LLMMessageDiagnostic設定) |
LLMMessageDiagnosticSettings (LLMMessageDiagnostic設定)
| 名前 | Description | 価値 |
|---|---|---|
| 最大サイズインバイト | ログへのメッセージの最大サイズ (バイト単位)。 デフォルトのサイズは 32KB です。 | int 制約: 最小値 = 1 最大値 = 262144 |
| messages | ログに記録するメッセージを指定します。 現在、'all'オプションしかありません。 | 「すべて」 |
パイプライン診断設定
| 名前 | Description | 価値 |
|---|---|---|
| 要求 | 要求の診断設定。 | HttpMessageDiagnostic の |
| response | 応答の診断設定。 | HttpMessageDiagnostic の |
サンプリング設定
| 名前 | Description | 価値 |
|---|---|---|
| 百分率 | 固定レート サンプリングのサンプリングレート。 | int 制約: 最小値 = 0 最大値 = 100 |
| サンプリングタイプ | サンプリングの種類。 | '修正済み' |
Terraform (AzAPI プロバイダー) リソース定義
サービス/apis/diagnostics リソースの種類は、次を対象とする操作と共にデプロイできます。
- リソースグループ 各APIバージョンの変更プロパティ一覧については、 変更ログをご覧ください。
使用例
Terraformサンプル
API Management サービス API 診断ログのデプロイの基本的な例。
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "component" {
type = "Microsoft.Insights/components@2020-02-02"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
kind = "web"
properties = {
Application_Type = "web"
DisableIpMasking = false
DisableLocalAuth = false
ForceCustomerStorageForProfiler = false
RetentionInDays = 90
SamplingPercentage = 100
publicNetworkAccessForIngestion = "Enabled"
publicNetworkAccessForQuery = "Enabled"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "service" {
type = "Microsoft.ApiManagement/service@2021-08-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
certificates = [
]
customProperties = {
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10" = "false"
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11" = "false"
}
disableGateway = false
publicNetworkAccess = "Enabled"
publisherEmail = "pub1@email.com"
publisherName = "pub1"
virtualNetworkType = "None"
}
sku = {
capacity = 0
name = "Consumption"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "api" {
type = "Microsoft.ApiManagement/service/apis@2021-08-01"
parent_id = azapi_resource.service.id
name = "${var.resource_name};rev=1"
body = {
properties = {
apiType = "http"
apiVersion = ""
format = "swagger-link-json"
path = "test"
type = "http"
value = "http://conferenceapi.azurewebsites.net/?format=json"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "logger" {
type = "Microsoft.ApiManagement/service/loggers@2021-08-01"
parent_id = azapi_resource.service.id
name = var.resource_name
body = {
properties = {
credentials = {
instrumentationKey = azapi_resource.component.output.properties.InstrumentationKey
}
description = ""
isBuffered = true
loggerType = "applicationInsights"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
lifecycle {
ignore_changes = [body.properties.credentials.instrumentationKey]
}
}
resource "azapi_resource" "diagnostic" {
type = "Microsoft.ApiManagement/service/apis/diagnostics@2021-08-01"
parent_id = azapi_resource.api.id
name = "applicationinsights"
body = {
properties = {
loggerId = azapi_resource.logger.id
operationNameFormat = "Name"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
リソースの形式
Microsoft.ApiManagement/service/apis/diagnostics リソースを作成するには、次の Terraform をテンプレートに追加します。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.ApiManagement/service/apis/diagnostics@2024-10-01-preview"
name = "string"
parent_id = "string"
body = {
properties = {
alwaysLog = "string"
backend = {
request = {
body = {
bytes = int
}
dataMasking = {
headers = [
{
mode = "string"
value = "string"
}
]
queryParams = [
{
mode = "string"
value = "string"
}
]
}
headers = [
"string"
]
}
response = {
body = {
bytes = int
}
dataMasking = {
headers = [
{
mode = "string"
value = "string"
}
]
queryParams = [
{
mode = "string"
value = "string"
}
]
}
headers = [
"string"
]
}
}
frontend = {
request = {
body = {
bytes = int
}
dataMasking = {
headers = [
{
mode = "string"
value = "string"
}
]
queryParams = [
{
mode = "string"
value = "string"
}
]
}
headers = [
"string"
]
}
response = {
body = {
bytes = int
}
dataMasking = {
headers = [
{
mode = "string"
value = "string"
}
]
queryParams = [
{
mode = "string"
value = "string"
}
]
}
headers = [
"string"
]
}
}
httpCorrelationProtocol = "string"
largeLanguageModel = {
logs = "string"
requests = {
maxSizeInBytes = int
messages = "string"
}
responses = {
maxSizeInBytes = int
messages = "string"
}
}
logClientIp = bool
loggerId = "string"
metrics = bool
operationNameFormat = "string"
sampling = {
percentage = int
samplingType = "string"
}
verbosity = "string"
}
}
}
プロパティ値
Microsoft.ApiManagement/service/apis/diagnostics
| 名前 | Description | 価値 |
|---|---|---|
| 名前 | リソース名 | string 制約: 最小長 = 1 最大長 = 80 パターン = ^[^*#&+:<>?]+$ (必須) |
| parent_id | このリソースの親であるリソースの ID。 | 種類のリソースの ID: service/apis |
| プロパティ | 診断エンティティ コントラクトのプロパティ。 | DiagnosticContractProperties (診断契約プロパティ) |
| 型 | リソースの種類 | "Microsoft.ApiManagement/service/apis/diagnostics@2024-10-01-preview" |
BodyDiagnosticSettings
| 名前 | Description | 価値 |
|---|---|---|
| バイト | ログに記録する要求本文のバイト数。 | int 制約: 最大値 = 8192 |
データマスキング
| 名前 | Description | 価値 |
|---|---|---|
| headers | ヘッダーのマスキング設定 | データマスキングエンティティ[] |
| queryParams (クエリパラメータ) | Url クエリ パラメーターのマスキング設定 | データマスキングエンティティ[] |
データマスキングエンティティ
| 名前 | Description | 価値 |
|---|---|---|
| mode | データマスキングモード。 | 「隠れる」 「マスク」 |
| value | マスクするエンティティの名前 (ヘッダーの名前やクエリ パラメーターの名前など)。 | 文字列 |
DiagnosticContractProperties (診断契約プロパティ)
| 名前 | Description | 価値 |
|---|---|---|
| alwaysLog (常時ログ) | 適用しないメッセージ サンプリング設定の種類を指定します。 | 'allErrors' |
| バックエンド | バックエンドへの受信/送信 HTTP メッセージの診断設定 | パイプライン診断設定 |
| frontend | ゲートウェイへの受信/送信 HTTP メッセージの診断設定。 | パイプライン診断設定 |
| httpCorrelationプロトコル | Application Insights 診断に使用する相関プロトコルを設定します。 | 「レガシー」 「なし」 「W3C」 |
| large言語モデル | 大規模言語モデルの診断設定 | LLMDiagnosticSettings (LLMDiagnostic設定) |
| logClientIp | ClientIP をログに記録します。 既定値は false です。 | ブール (bool) |
| ロガーID | ターゲット ロガーのリソース ID。 | string (必須) |
| メトリクス | emit-metric ポリシーを使用してカスタム メトリックを出力します。 Application Insights の診断設定にのみ適用されます。 | ブール (bool) |
| operationNameFormat (操作名フォーマット) | Application Insights テレメトリの操作名の形式。 デフォルトは [名前] です。 | '名前' 「URL」 |
| サンプリング | 診断のサンプリング設定。 | サンプリング設定 |
| 詳細 | トレース ポリシーによって発行されるトレースに適用される詳細レベル。 | 'エラー' 「情報」 「冗長」 |
HttpMessageDiagnostic (英語)
| 名前 | Description | 価値 |
|---|---|---|
| body | 本文ログの設定。 | BodyDiagnosticSettings |
| データマスキング | データマスキング設定。 | データマスキング |
| headers | ログに記録する HTTP ヘッダーの配列。 | string[] |
LLMDiagnosticSettings (LLMDiagnostic設定)
| 名前 | Description | 価値 |
|---|---|---|
| ログ | 大規模な言語モデルに対して既定の診断を有効にするかどうかを指定します。 | '無効' '有効' |
| リクエスト | 大規模言語モデル要求の診断設定。 | LLMMessageDiagnosticSettings (LLMMessageDiagnostic設定) |
| 応答 | 大規模言語モデル応答の診断設定。 | LLMMessageDiagnosticSettings (LLMMessageDiagnostic設定) |
LLMMessageDiagnosticSettings (LLMMessageDiagnostic設定)
| 名前 | Description | 価値 |
|---|---|---|
| 最大サイズインバイト | ログへのメッセージの最大サイズ (バイト単位)。 デフォルトのサイズは 32KB です。 | int 制約: 最小値 = 1 最大値 = 262144 |
| messages | ログに記録するメッセージを指定します。 現在、'all'オプションしかありません。 | 「すべて」 |
パイプライン診断設定
| 名前 | Description | 価値 |
|---|---|---|
| 要求 | 要求の診断設定。 | HttpMessageDiagnostic の |
| response | 応答の診断設定。 | HttpMessageDiagnostic の |
サンプリング設定
| 名前 | Description | 価値 |
|---|---|---|
| 百分率 | 固定レート サンプリングのサンプリングレート。 | int 制約: 最小値 = 0 最大値 = 100 |
| サンプリングタイプ | サンプリングの種類。 | '修正済み' |