ServiceDiagnosticSettingsResource Class

Description of a service diagnostic setting.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.monitor.v2015_07_01.models._models_py3.Resource
ServiceDiagnosticSettingsResource

Constructor

ServiceDiagnosticSettingsResource(*, location: str, tags: Optional[Dict[str, str]] = None, storage_account_id: Optional[str] = None, service_bus_rule_id: Optional[str] = None, metrics: Optional[List[azure.mgmt.monitor.v2015_07_01.models._models_py3.MetricSettings]] = None, logs: Optional[List[azure.mgmt.monitor.v2015_07_01.models._models_py3.LogSettings]] = None, workspace_id: Optional[str] = None, **kwargs)

Variables

id
str

Azure resource Id.

name
str

Azure resource name.

type
str

Azure resource type.

location
str

Required. Resource location.

tags
dict[str, str]

A set of tags. Resource tags.

storage_account_id
str

The resource ID of the storage account to which you would like to send Diagnostic Logs.

service_bus_rule_id
str

The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming Diagnostic Logs. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'.

metrics
list[<xref:$>(<xref:python-base-namespace>)MetricSettings]

the list of metric settings.

logs
list[<xref:$>(<xref:python-base-namespace>)LogSettings]

the list of logs settings.

workspace_id
str

The workspace ID (resource ID of a Log Analytics workspace) for a Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2.