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

DiagnosticSettingsResource 类

诊断设置资源。

变量仅由服务器填充,发送请求时将被忽略。

继承
azure.mgmt.monitor.v2017_05_01_preview.models._models_py3.ProxyOnlyResource
DiagnosticSettingsResource

构造函数

DiagnosticSettingsResource(*, storage_account_id: str | None = None, service_bus_rule_id: str | None = None, event_hub_authorization_rule_id: str | None = None, event_hub_name: str | None = None, metrics: List[_models.MetricSettings] | None = None, logs: List[_models.LogSettings] | None = None, workspace_id: str | None = None, log_analytics_destination_type: str | None = None, **kwargs: Any)

仅限关键字的参数

名称 说明
storage_account_id
str

要向其发送诊断日志的存储帐户的资源 ID。

service_bus_rule_id
str

诊断设置的服务总线规则 ID。 这是为了保持向后兼容性。

event_hub_authorization_rule_id
str

事件中心授权规则的资源 ID。

event_hub_name
str

事件中心的名称。 如果未指定,则将选择默认事件中心。

metrics

指标设置的列表。

logs

日志设置的列表。

workspace_id
str

要向其发送诊断日志的 Log Analytics 工作区的完整 ARM 资源 ID。 示例:/subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2。

log_analytics_destination_type
str

一个字符串,指示导出到 Log Analytics 是应使用默认目标类型(即 AzureDiagnostics),还是使用构造如下的目标类型: >>:code:<normalized service identity>_<<<normalized category name>。 可能的值为:Dedicated 和 null (null 为 default.) 。

变量

名称 说明
id
str

Azure 资源 ID。

name
str

Azure 资源名称。

type
str

Azure 资源类型。

storage_account_id
str

要向其发送诊断日志的存储帐户的资源 ID。

service_bus_rule_id
str

诊断设置的服务总线规则 ID。 这是为了保持向后兼容性。

event_hub_authorization_rule_id
str

事件中心授权规则的资源 ID。

event_hub_name
str

事件中心的名称。 如果未指定,则将选择默认事件中心。

metrics

指标设置的列表。

logs

日志设置的列表。

workspace_id
str

要向其发送诊断日志的 Log Analytics 工作区的完整 ARM 资源 ID。 示例:/subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2。

log_analytics_destination_type
str

一个字符串,指示导出到 Log Analytics 是应使用默认目标类型(即 AzureDiagnostics),还是使用构造如下的目标类型: >>:code:<normalized service identity>_<<<normalized category name>。 可能的值为:Dedicated 和 null (null 为 default.) 。