MonitorsOperations Class

MonitorsOperations async 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
MonitorsOperations

Constructor

MonitorsOperations(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

begin_create

Create a monitor resource.

Create a monitor resource.

begin_delete

Delete a monitor resource.

Delete a monitor resource.

begin_update

Update a monitor resource.

Update a monitor resource.

get

Get the properties of a specific monitor resource.

Get the properties of a specific monitor resource.

get_default_key

Get the default api key.

Get the default api key.

list

List all monitors under the specified subscription.

List all monitors under the specified subscription.

list_api_keys

List the api keys for a given monitor resource.

List the api keys for a given monitor resource.

list_by_resource_group

List all monitors under the specified resource group.

List all monitors under the specified resource group.

list_hosts

List the hosts for a given monitor resource.

List the hosts for a given monitor resource.

list_linked_resources

List all Azure resources associated to the same Datadog organization as the target resource.

List all Azure resources associated to the same Datadog organization as the target resource.

list_monitored_resources

List the resources currently being monitored by the Datadog monitor resource.

List the resources currently being monitored by the Datadog monitor resource.

refresh_set_password_link

Refresh the set password link and return a latest one.

Refresh the set password link and return a latest one.

set_default_key

Set the default api key.

Set the default api key.

begin_create

Create a monitor resource.

Create a monitor resource.

async begin_create(resource_group_name: str, monitor_name: str, body: Optional[azure.mgmt.datadog.models._models_py3.DatadogMonitorResource] = None, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.datadog.models._models_py3.DatadogMonitorResource]

Parameters

resource_group_name
str
Required

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

monitor_name
str
Required

Monitor resource name.

body
<xref:microsoft_datadog_client.models.DatadogMonitorResource>
default value: None
cls
callable

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

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or AsyncPollingMethod

By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of AsyncLROPoller that returns either DatadogMonitorResource or the result of cls(response)

Return type

AsyncLROPoller[<xref:microsoft_datadog_client.models.DatadogMonitorResource>]

Exceptions

begin_delete

Delete a monitor resource.

Delete a monitor resource.

async begin_delete(resource_group_name: str, monitor_name: str, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[None]

Parameters

resource_group_name
str
Required

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

monitor_name
str
Required

Monitor resource name.

cls
callable

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

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or AsyncPollingMethod

By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of AsyncLROPoller that returns either None or the result of cls(response)

Return type

Exceptions

begin_update

Update a monitor resource.

Update a monitor resource.

async begin_update(resource_group_name: str, monitor_name: str, body: Optional[azure.mgmt.datadog.models._models_py3.DatadogMonitorResourceUpdateParameters] = None, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.datadog.models._models_py3.DatadogMonitorResource]

Parameters

resource_group_name
str
Required

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

monitor_name
str
Required

Monitor resource name.

body
<xref:microsoft_datadog_client.models.DatadogMonitorResourceUpdateParameters>
default value: None
cls
callable

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

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or AsyncPollingMethod

By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of AsyncLROPoller that returns either DatadogMonitorResource or the result of cls(response)

Return type

AsyncLROPoller[<xref:microsoft_datadog_client.models.DatadogMonitorResource>]

Exceptions

get

Get the properties of a specific monitor resource.

Get the properties of a specific monitor resource.

async get(resource_group_name: str, monitor_name: str, **kwargs: Any) -> azure.mgmt.datadog.models._models_py3.DatadogMonitorResource

Parameters

resource_group_name
str
Required

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

monitor_name
str
Required

Monitor resource name.

cls
callable

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

Returns

DatadogMonitorResource, or the result of cls(response)

Return type

<xref:microsoft_datadog_client.models.DatadogMonitorResource>

Exceptions

get_default_key

Get the default api key.

Get the default api key.

async get_default_key(resource_group_name: str, monitor_name: str, **kwargs: Any) -> azure.mgmt.datadog.models._models_py3.DatadogApiKey

Parameters

resource_group_name
str
Required

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

monitor_name
str
Required

Monitor resource name.

cls
callable

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

Returns

DatadogApiKey, or the result of cls(response)

Return type

<xref:microsoft_datadog_client.models.DatadogApiKey>

Exceptions

list

List all monitors under the specified subscription.

List all monitors under the specified subscription.

list(**kwargs: Any) -> AsyncIterable[azure.mgmt.datadog.models._models_py3.DatadogMonitorResourceListResponse]

Parameters

cls
callable

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

Returns

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

Return type

AsyncItemPaged[<xref:microsoft_datadog_client.models.DatadogMonitorResourceListResponse>]

Exceptions

list_api_keys

List the api keys for a given monitor resource.

List the api keys for a given monitor resource.

list_api_keys(resource_group_name: str, monitor_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.datadog.models._models_py3.DatadogApiKeyListResponse]

Parameters

resource_group_name
str
Required

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

monitor_name
str
Required

Monitor resource name.

cls
callable

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

Returns

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

Return type

AsyncItemPaged[<xref:microsoft_datadog_client.models.DatadogApiKeyListResponse>]

Exceptions

list_by_resource_group

List all monitors under the specified resource group.

List all monitors under the specified resource group.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.datadog.models._models_py3.DatadogMonitorResourceListResponse]

Parameters

resource_group_name
str
Required

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

cls
callable

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

Returns

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

Return type

AsyncItemPaged[<xref:microsoft_datadog_client.models.DatadogMonitorResourceListResponse>]

Exceptions

list_hosts

List the hosts for a given monitor resource.

List the hosts for a given monitor resource.

list_hosts(resource_group_name: str, monitor_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.datadog.models._models_py3.DatadogHostListResponse]

Parameters

resource_group_name
str
Required

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

monitor_name
str
Required

Monitor resource name.

cls
callable

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

Returns

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

Return type

AsyncItemPaged[<xref:microsoft_datadog_client.models.DatadogHostListResponse>]

Exceptions

list_linked_resources

List all Azure resources associated to the same Datadog organization as the target resource.

List all Azure resources associated to the same Datadog organization as the target resource.

list_linked_resources(resource_group_name: str, monitor_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.datadog.models._models_py3.LinkedResourceListResponse]

Parameters

resource_group_name
str
Required

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

monitor_name
str
Required

Monitor resource name.

cls
callable

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

Returns

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

Return type

AsyncItemPaged[<xref:microsoft_datadog_client.models.LinkedResourceListResponse>]

Exceptions

list_monitored_resources

List the resources currently being monitored by the Datadog monitor resource.

List the resources currently being monitored by the Datadog monitor resource.

list_monitored_resources(resource_group_name: str, monitor_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.datadog.models._models_py3.MonitoredResourceListResponse]

Parameters

resource_group_name
str
Required

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

monitor_name
str
Required

Monitor resource name.

cls
callable

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

Returns

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

Return type

AsyncItemPaged[<xref:microsoft_datadog_client.models.MonitoredResourceListResponse>]

Exceptions

Refresh the set password link and return a latest one.

Refresh the set password link and return a latest one.

async refresh_set_password_link(resource_group_name: str, monitor_name: str, **kwargs: Any) -> azure.mgmt.datadog.models._models_py3.DatadogSetPasswordLink

Parameters

resource_group_name
str
Required

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

monitor_name
str
Required

Monitor resource name.

cls
callable

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

Returns

DatadogSetPasswordLink, or the result of cls(response)

Return type

<xref:microsoft_datadog_client.models.DatadogSetPasswordLink>

Exceptions

set_default_key

Set the default api key.

Set the default api key.

async set_default_key(resource_group_name: str, monitor_name: str, body: Optional[azure.mgmt.datadog.models._models_py3.DatadogApiKey] = None, **kwargs: Any) -> None

Parameters

resource_group_name
str
Required

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

monitor_name
str
Required

Monitor resource name.

body
<xref:microsoft_datadog_client.models.DatadogApiKey>
default value: None
cls
callable

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

Returns

None, or the result of cls(response)

Return type

Exceptions

Attributes

models

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