次の方法で共有


AlertRulesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

SecurityInsights's

<xref:alert_rules> attribute.

Constructor

AlertRulesOperations(*args, **kwargs)

Methods

create_or_update

Creates or updates the alert rule.

delete

Delete the alert rule.

get

Gets the alert rule.

list

Gets all alert rules.

create_or_update

Creates or updates the alert rule.

create_or_update(resource_group_name: str, workspace_name: str, rule_id: str, alert_rule: AlertRule, **kwargs: Any) -> AlertRule

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive.

workspace_name
Required
str

The name of the workspace.

rule_id
Required
str

Alert rule ID.

alert_rule
Required

The alert rule.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

AlertRule, or the result of cls(response)

Exceptions

Type Description

delete

Delete the alert rule.

delete(resource_group_name: str, workspace_name: str, rule_id: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive.

workspace_name
Required
str

The name of the workspace.

rule_id
Required
str

Alert rule ID.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

None, or the result of cls(response)

Exceptions

Type Description

get

Gets the alert rule.

get(resource_group_name: str, workspace_name: str, rule_id: str, **kwargs: Any) -> AlertRule

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive.

workspace_name
Required
str

The name of the workspace.

rule_id
Required
str

Alert rule ID.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

AlertRule, or the result of cls(response)

Exceptions

Type Description

list

Gets all alert rules.

list(resource_group_name: str, workspace_name: str, **kwargs: Any) -> Iterable[AlertRulesList]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive.

workspace_name
Required
str

The name of the workspace.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either AlertRulesList or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.securityinsight.models' from 'C:\\ToolCache\\Python\\3.12.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv214\\Lib\\site-packages\\azure\\mgmt\\securityinsight\\models\\__init__.py'>