HealthMonitorsOperations Class

HealthMonitorsOperations 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
HealthMonitorsOperations

Constructor

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

Get the current health status of a monitor of a virtual machine. Optional parameter: $expand (retrieve the monitor's evidence and configuration).

Get the current health status of a monitor of a virtual machine. Optional parameter: $expand (retrieve the monitor's evidence and configuration).

get_state_change

Get the health state change of a monitor of a virtual machine at the provided timestamp. Optional parameter: $expand (retrieve the monitor's evidence and configuration).

Get the health state change of a monitor of a virtual machine at the provided timestamp. Optional parameter: $expand (retrieve the monitor's evidence and configuration).

list

Get the current health status of all monitors of a virtual machine. Optional parameters: $expand (retrieve the monitor's evidence and configuration) and $filter (filter by monitor name).

Get the current health status of all monitors of a virtual machine. Optional parameters: $expand (retrieve the monitor's evidence and configuration) and $filter (filter by monitor name).

list_state_changes

Get the health state changes of a monitor of a virtual machine within the provided time window (default is the last 24 hours). Optional parameters: $expand (retrieve the monitor's evidence and configuration) and $filter (filter by heartbeat condition).

Get the health state changes of a monitor of a virtual machine within the provided time window (default is the last 24 hours). Optional parameters: $expand (retrieve the monitor's evidence and configuration) and $filter (filter by heartbeat condition).

get

Get the current health status of a monitor of a virtual machine. Optional parameter: $expand (retrieve the monitor's evidence and configuration).

Get the current health status of a monitor of a virtual machine. Optional parameter: $expand (retrieve the monitor's evidence and configuration).

get(subscription_id: str, resource_group_name: str, provider_name: str, resource_collection_name: str, resource_name: str, monitor_id: str, expand: Optional[str] = None, **kwargs: Any) -> models.HealthMonitor

Parameters

subscription_id
str
Required

The subscription Id of the virtual machine.

resource_group_name
str
Required

The resource group of the virtual machine.

provider_name
str
Required

The provider name (ex: Microsoft.Compute for virtual machines).

resource_collection_name
str
Required

The resource collection name (ex: virtualMachines for virtual machines).

resource_name
str
Required

The name of the virtual machine.

monitor_id
str
Required

The monitor Id of the virtual machine.

expand
str
default value: None

Optionally expand the monitor's evidence and/or configuration. Example: $expand=evidence,configuration.

cls
callable

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

Returns

HealthMonitor, or the result of cls(response)

Return type

<xref:workload_monitor_api.models.HealthMonitor>

Exceptions

get_state_change

Get the health state change of a monitor of a virtual machine at the provided timestamp. Optional parameter: $expand (retrieve the monitor's evidence and configuration).

Get the health state change of a monitor of a virtual machine at the provided timestamp. Optional parameter: $expand (retrieve the monitor's evidence and configuration).

get_state_change(subscription_id: str, resource_group_name: str, provider_name: str, resource_collection_name: str, resource_name: str, monitor_id: str, timestamp_unix: str, expand: Optional[str] = None, **kwargs: Any) -> models.HealthMonitorStateChange

Parameters

subscription_id
str
Required

The subscription Id of the virtual machine.

resource_group_name
str
Required

The resource group of the virtual machine.

provider_name
str
Required

The provider name (ex: Microsoft.Compute for virtual machines).

resource_collection_name
str
Required

The resource collection name (ex: virtualMachines for virtual machines).

resource_name
str
Required

The name of the virtual machine.

monitor_id
str
Required

The monitor Id of the virtual machine.

timestamp_unix
str
Required

The timestamp of the state change (unix format).

expand
str
default value: None

Optionally expand the monitor's evidence and/or configuration. Example: $expand=evidence,configuration.

cls
callable

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

Returns

HealthMonitorStateChange, or the result of cls(response)

Return type

<xref:workload_monitor_api.models.HealthMonitorStateChange>

Exceptions

list

Get the current health status of all monitors of a virtual machine. Optional parameters: $expand (retrieve the monitor's evidence and configuration) and $filter (filter by monitor name).

Get the current health status of all monitors of a virtual machine. Optional parameters: $expand (retrieve the monitor's evidence and configuration) and $filter (filter by monitor name).

list(subscription_id: str, resource_group_name: str, provider_name: str, resource_collection_name: str, resource_name: str, filter: Optional[str] = None, expand: Optional[str] = None, **kwargs: Any) -> Iterable[models.HealthMonitorList]

Parameters

subscription_id
str
Required

The subscription Id of the virtual machine.

resource_group_name
str
Required

The resource group of the virtual machine.

provider_name
str
Required

The provider name (ex: Microsoft.Compute for virtual machines).

resource_collection_name
str
Required

The resource collection name (ex: virtualMachines for virtual machines).

resource_name
str
Required

The name of the virtual machine.

filter
str
default value: None

Optionally filter by monitor name. Example: $filter=monitorName eq 'logical- disks|C:>>|<<disk-free-space-mb.'.

expand
str
default value: None

Optionally expand the monitor's evidence and/or configuration. Example: $expand=evidence,configuration.

cls
callable

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

Returns

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

Return type

ItemPaged[<xref:workload_monitor_api.models.HealthMonitorList>]

Exceptions

list_state_changes

Get the health state changes of a monitor of a virtual machine within the provided time window (default is the last 24 hours). Optional parameters: $expand (retrieve the monitor's evidence and configuration) and $filter (filter by heartbeat condition).

Get the health state changes of a monitor of a virtual machine within the provided time window (default is the last 24 hours). Optional parameters: $expand (retrieve the monitor's evidence and configuration) and $filter (filter by heartbeat condition).

list_state_changes(subscription_id: str, resource_group_name: str, provider_name: str, resource_collection_name: str, resource_name: str, monitor_id: str, filter: Optional[str] = None, expand: Optional[str] = None, start_timestamp_utc: Optional[datetime.datetime] = None, end_timestamp_utc: Optional[datetime.datetime] = None, **kwargs: Any) -> Iterable[models.HealthMonitorStateChangeList]

Parameters

subscription_id
str
Required

The subscription Id of the virtual machine.

resource_group_name
str
Required

The resource group of the virtual machine.

provider_name
str
Required

The provider name (ex: Microsoft.Compute for virtual machines).

resource_collection_name
str
Required

The resource collection name (ex: virtualMachines for virtual machines).

resource_name
str
Required

The name of the virtual machine.

monitor_id
str
Required

The monitor Id of the virtual machine.

filter
str
default value: None

Optionally filter by heartbeat condition. Example: $filter=isHeartbeat eq false.

expand
str
default value: None

Optionally expand the monitor's evidence and/or configuration. Example: $expand=evidence,configuration.

start_timestamp_utc
datetime
default value: None

The start of the time window.

end_timestamp_utc
datetime
default value: None

The end of the time window.

cls
callable

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

Returns

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

Return type

ItemPaged[<xref:workload_monitor_api.models.HealthMonitorStateChangeList>]

Exceptions

Attributes

models

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