AlertsOperations Class

AlertsOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
AlertsOperations

Constructor

AlertsOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

get

Gets an alert by name.

Gets an alert by name.

list_by_data_box_edge_device

Gets all the alerts for a Data Box Edge/Data Box Gateway device.

get

Gets an alert by name.

Gets an alert by name.

get(device_name: str, name: str, resource_group_name: str, **kwargs: Any) -> _models.Alert

Parameters

device_name
str
Required

The device name.

name
str
Required

The alert name.

resource_group_name
str
Required

The resource group name.

cls
callable

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

Returns

Alert, or the result of cls(response)

Return type

Exceptions

list_by_data_box_edge_device

Gets all the alerts for a Data Box Edge/Data Box Gateway device.

list_by_data_box_edge_device(device_name: str, resource_group_name: str, **kwargs: Any) -> Iterable[_models.AlertList]

Parameters

device_name
str
Required

The device name.

resource_group_name
str
Required

The resource group name.

cls
callable

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

Returns

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

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.databoxedge.v2021_02_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\databoxedge\\v2021_02_01_preview\\models\\__init__.py'>