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

DataSource 类

OMS 工作区下的数据源。

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

必须填充所有必需的参数才能发送到 Azure。

继承
azure.mgmt.loganalytics.models._models_py3.ProxyResource
DataSource

构造函数

DataSource(*, properties: Any, kind: str | DataSourceKind, etag: str | None = None, tags: Dict[str, str] | None = None, **kwargs)

参数

名称 说明
properties
必需
any

必需。 原始 json 格式的数据源属性,每种数据源都有自己的架构。

etag
必需
str

数据源的 ETag。

kind
必需

必需。 DataSource 的种类。 可能的值包括:“WindowsEvent”、“WindowsPerformanceCounter”、“IISLogs”、“LinuxSyslog”、“LinuxSyslogCollection”、“LinuxPerformanceObject”、 “LinuxPerformanceCollection”, “CustomLog”, “CustomLogCollection”, “AzureAuditLog”, “AzureActivityLog”, “GenericDataSource”, “ChangeTrackingCustomPath”, “ChangeTrackingPath”, “ChangeTrackingServices”, “ChangeTrackingDataTypeConfiguration”, “ChangeTrackingDefaultRegistry”, “ChangeTrackingRegistry”, “ChangeTrackingLinuxPath”,“LinuxChangeTrackingPath”、“ChangeTrackingContentLocation”、“WindowsTelemetry”, “Office365”、“SecurityWindowsBaselineConfiguration”、“SecurityCenterSecurityWindowsBaselineConfiguration”、“SecurityEventCollectionConfiguration”、“SecurityInsightsSecurityEventCollectionConfiguration”、“ImportComputerGroup”、“NetworkMonitoring”、“Itsm”、“DnsAnalytics”、“ApplicationInsights”、“SqlDataClassification”。

tags
必需

一组标记。 资源标记。

仅限关键字的参数

名称 说明
properties
必需
kind
必需
etag
必需
tags
必需

变量

名称 说明
id
str

资源的完全限定的资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}。

name
str

资源的名称。

type
str

资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”。