MonitorsOperations Class
MonitorsOperations 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.objectMonitorsOperations
Constructor
MonitorsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
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.
begin_create(resource_group_name: str, monitor_name: str, body: Optional[_models.DatadogMonitorResource] = None, **kwargs: Any) -> LROPoller[_models.DatadogMonitorResource]
Parameters
- body
- <xref:microsoft_datadog_client.models.DatadogMonitorResource>
- 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 PollingMethod
By default, your polling method will be ARMPolling. 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 LROPoller that returns either DatadogMonitorResource or the result of cls(response)
Return type
Exceptions
begin_delete
Delete a monitor resource.
Delete a monitor resource.
begin_delete(resource_group_name: str, monitor_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
- 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 PollingMethod
By default, your polling method will be ARMPolling. 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 LROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_update
Update a monitor resource.
Update a monitor resource.
begin_update(resource_group_name: str, monitor_name: str, body: Optional[_models.DatadogMonitorResourceUpdateParameters] = None, **kwargs: Any) -> LROPoller[_models.DatadogMonitorResource]
Parameters
- body
- <xref:microsoft_datadog_client.models.DatadogMonitorResourceUpdateParameters>
- 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 PollingMethod
By default, your polling method will be ARMPolling. 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 LROPoller that returns either DatadogMonitorResource or the result of cls(response)
Return type
Exceptions
get
Get the properties of a specific monitor resource.
Get the properties of a specific monitor resource.
get(resource_group_name: str, monitor_name: str, **kwargs: Any) -> _models.DatadogMonitorResource
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
DatadogMonitorResource, or the result of cls(response)
Return type
Exceptions
get_default_key
Get the default api key.
Get the default api key.
get_default_key(resource_group_name: str, monitor_name: str, **kwargs: Any) -> _models.DatadogApiKey
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
DatadogApiKey, or the result of cls(response)
Return type
Exceptions
list
List all monitors under the specified subscription.
List all monitors under the specified subscription.
list(**kwargs: Any) -> Iterable[_models.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
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) -> Iterable[_models.DatadogApiKeyListResponse]
Parameters
- 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
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) -> Iterable[_models.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
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) -> Iterable[_models.DatadogHostListResponse]
Parameters
- 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
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) -> Iterable[_models.LinkedResourceListResponse]
Parameters
- 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
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) -> Iterable[_models.MonitoredResourceListResponse]
Parameters
- 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
Exceptions
refresh_set_password_link
Refresh the set password link and return a latest one.
Refresh the set password link and return a latest one.
refresh_set_password_link(resource_group_name: str, monitor_name: str, **kwargs: Any) -> _models.DatadogSetPasswordLink
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
DatadogSetPasswordLink, or the result of cls(response)
Return type
Exceptions
set_default_key
Set the default api key.
Set the default api key.
set_default_key(resource_group_name: str, monitor_name: str, body: Optional[_models.DatadogApiKey] = None, **kwargs: Any) -> None
Parameters
- body
- <xref:microsoft_datadog_client.models.DatadogApiKey>
- 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'>
Feedback
Submit and view feedback for