azure.mgmt.monitor.operations module

class azure.mgmt.monitor.operations.AutoscaleSettingsOperations(client, config, serializer, deserializer)[source]

Bases: object

AutoscaleSettingsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2015-04-01”.

create_or_update(resource_group_name, autoscale_setting_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Creates or updates an autoscale setting.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • autoscale_setting_name (str) – The autoscale setting name.
  • parameters (AutoscaleSettingResource) – Parameters supplied to the operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

AutoscaleSettingResource or ClientRawResponse if raw=true

Return type:

AutoscaleSettingResource or ClientRawResponse

Raises:

ErrorResponseException

delete(resource_group_name, autoscale_setting_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes and autoscale setting.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • autoscale_setting_name (str) – The autoscale setting name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

None or ClientRawResponse if raw=true

Return type:

None or ClientRawResponse

Raises:

ErrorResponseException

get(resource_group_name, autoscale_setting_name, custom_headers=None, raw=False, **operation_config)[source]

Gets an autoscale setting.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • autoscale_setting_name (str) – The autoscale setting name.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

AutoscaleSettingResource or ClientRawResponse if raw=true

Return type:

AutoscaleSettingResource or ClientRawResponse

Raises:

ErrorResponseException

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Lists the autoscale settings for a resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of AutoscaleSettingResource

Return type:

AutoscaleSettingResourcePaged

Raises:

ErrorResponseException

update(resource_group_name, autoscale_setting_name, autoscale_setting_resource, custom_headers=None, raw=False, **operation_config)[source]

Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • autoscale_setting_name (str) – The autoscale setting name.
  • autoscale_setting_resource (AutoscaleSettingResourcePatch) – Parameters supplied to the operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

AutoscaleSettingResource or ClientRawResponse if raw=true

Return type:

AutoscaleSettingResource or ClientRawResponse

Raises:

ErrorResponseException

class azure.mgmt.monitor.operations.AlertRuleIncidentsOperations(client, config, serializer, deserializer)[source]

Bases: object

AlertRuleIncidentsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2016-03-01”.

get(resource_group_name, rule_name, incident_name, custom_headers=None, raw=False, **operation_config)[source]

Gets an incident associated to an alert rule.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • rule_name (str) – The name of the rule.
  • incident_name (str) – The name of the incident to retrieve.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

Incident or ClientRawResponse if raw=true

Return type:

Incident or ClientRawResponse

Raises:

ErrorResponseException

list_by_alert_rule(resource_group_name, rule_name, custom_headers=None, raw=False, **operation_config)[source]

Gets a list of incidents associated to an alert rule.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • rule_name (str) – The name of the rule.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of Incident

Return type:

IncidentPaged

Raises:

CloudError

class azure.mgmt.monitor.operations.AlertRulesOperations(client, config, serializer, deserializer)[source]

Bases: object

AlertRulesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2016-03-01”.

create_or_update(resource_group_name, rule_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Creates or updates an alert rule.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • rule_name (str) – The name of the rule.
  • parameters (AlertRuleResource) – The parameters of the rule to create or update.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

AlertRuleResource or ClientRawResponse if raw=true

Return type:

AlertRuleResource or ClientRawResponse

Raises:

ErrorResponseException

delete(resource_group_name, rule_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes an alert rule.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • rule_name (str) – The name of the rule.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

None or ClientRawResponse if raw=true

Return type:

None or ClientRawResponse

Raises:

CloudError

get(resource_group_name, rule_name, custom_headers=None, raw=False, **operation_config)[source]

Gets an alert rule.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • rule_name (str) – The name of the rule.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

AlertRuleResource or ClientRawResponse if raw=true

Return type:

AlertRuleResource or ClientRawResponse

Raises:

CloudError

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

List the alert rules within a resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of AlertRuleResource

Return type:

AlertRuleResourcePaged

Raises:

CloudError

update(resource_group_name, rule_name, alert_rules_resource, custom_headers=None, raw=False, **operation_config)[source]

Updates an existing AlertRuleResource. To update other fields use the CreateOrUpdate method.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • rule_name (str) – The name of the rule.
  • alert_rules_resource (AlertRuleResourcePatch) – Parameters supplied to the operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

AlertRuleResource or ClientRawResponse if raw=true

Return type:

AlertRuleResource or ClientRawResponse

Raises:

ErrorResponseException

class azure.mgmt.monitor.operations.LogProfilesOperations(client, config, serializer, deserializer)[source]

Bases: object

LogProfilesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2016-03-01”.

create_or_update(log_profile_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Create or update a log profile in Azure Monitoring REST API.

Parameters:
  • log_profile_name (str) – The name of the log profile.
  • parameters (LogProfileResource) – Parameters supplied to the operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

LogProfileResource or ClientRawResponse if raw=true

Return type:

LogProfileResource or ClientRawResponse

Raises:

CloudError

delete(log_profile_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes the log profile.

Parameters:
  • log_profile_name (str) – The name of the log profile.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

None or ClientRawResponse if raw=true

Return type:

None or ClientRawResponse

Raises:

CloudError

get(log_profile_name, custom_headers=None, raw=False, **operation_config)[source]

Gets the log profile.

Parameters:
  • log_profile_name (str) – The name of the log profile.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

LogProfileResource or ClientRawResponse if raw=true

Return type:

LogProfileResource or ClientRawResponse

Raises:

ErrorResponseException

list(custom_headers=None, raw=False, **operation_config)[source]

List the log profiles.

Parameters:
Returns:

An iterator like instance of LogProfileResource

Return type:

LogProfileResourcePaged

Raises:

CloudError

update(log_profile_name, log_profiles_resource, custom_headers=None, raw=False, **operation_config)[source]

Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.

Parameters:
  • log_profile_name (str) – The name of the log profile.
  • log_profiles_resource (LogProfileResourcePatch) – Parameters supplied to the operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

LogProfileResource or ClientRawResponse if raw=true

Return type:

LogProfileResource or ClientRawResponse

Raises:

ErrorResponseException

class azure.mgmt.monitor.operations.ServiceDiagnosticSettingsOperations(client, config, serializer, deserializer)[source]

Bases: object

ServiceDiagnosticSettingsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2016-09-01”.

create_or_update(resource_uri, parameters, custom_headers=None, raw=False, **operation_config)[source]

Create or update new diagnostic settings for the specified resource. WARNING: This method will be deprecated in future releases.

Parameters:
Returns:

ServiceDiagnosticSettingsResource or ClientRawResponse if raw=true

Return type:

ServiceDiagnosticSettingsResource or ClientRawResponse

Raises:

CloudError

get(resource_uri, custom_headers=None, raw=False, **operation_config)[source]

Gets the active diagnostic settings for the specified resource. WARNING: This method will be deprecated in future releases.

Parameters:
  • resource_uri (str) – The identifier of the resource.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

ServiceDiagnosticSettingsResource or ClientRawResponse if raw=true

Return type:

ServiceDiagnosticSettingsResource or ClientRawResponse

Raises:

ErrorResponseException

update(resource_uri, service_diagnostic_settings_resource, custom_headers=None, raw=False, **operation_config)[source]

Updates an existing ServiceDiagnosticSettingsResource. To update other fields use the CreateOrUpdate method. WARNING: This method will be deprecated in future releases.

Parameters:
Returns:

ServiceDiagnosticSettingsResource or ClientRawResponse if raw=true

Return type:

ServiceDiagnosticSettingsResource or ClientRawResponse

Raises:

ErrorResponseException

class azure.mgmt.monitor.operations.ActionGroupsOperations(client, config, serializer, deserializer)[source]

Bases: object

ActionGroupsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2017-04-01”.

create_or_update(resource_group_name, action_group_name, action_group, custom_headers=None, raw=False, **operation_config)[source]

Create a new action group or update an existing one.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • action_group_name (str) – The name of the action group.
  • action_group (ActionGroupResource) – The action group to create or use for the update.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

ActionGroupResource or ClientRawResponse if raw=true

Return type:

ActionGroupResource or ClientRawResponse

Raises:

CloudError

delete(resource_group_name, action_group_name, custom_headers=None, raw=False, **operation_config)[source]

Delete an action group.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • action_group_name (str) – The name of the action group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

None or ClientRawResponse if raw=true

Return type:

None or ClientRawResponse

Raises:

CloudError

enable_receiver(resource_group_name, action_group_name, receiver_name, custom_headers=None, raw=False, **operation_config)[source]

Enable a receiver in an action group. This changes the receiver’s status from Disabled to Enabled.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • action_group_name (str) – The name of the action group.
  • receiver_name (str) – The name of the receiver to resubscribe.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

None or ClientRawResponse if raw=true

Return type:

None or ClientRawResponse

Raises:

CloudError

get(resource_group_name, action_group_name, custom_headers=None, raw=False, **operation_config)[source]

Get an action group.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • action_group_name (str) – The name of the action group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

ActionGroupResource or ClientRawResponse if raw=true

Return type:

ActionGroupResource or ClientRawResponse

Raises:

CloudError

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Get a list of all action groups in a resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of ActionGroupResource

Return type:

ActionGroupResourcePaged

Raises:

CloudError

list_by_subscription_id(custom_headers=None, raw=False, **operation_config)[source]

Get a list of all action groups in a subscription.

Parameters:
Returns:

An iterator like instance of ActionGroupResource

Return type:

ActionGroupResourcePaged

Raises:

CloudError

class azure.mgmt.monitor.operations.ActivityLogAlertsOperations(client, config, serializer, deserializer)[source]

Bases: object

ActivityLogAlertsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2017-04-01”.

create_or_update(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers=None, raw=False, **operation_config)[source]

Create a new activity log alert or update an existing one.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • activity_log_alert_name (str) – The name of the activity log alert.
  • activity_log_alert (ActivityLogAlertResource) – The activity log alert to create or use for the update.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

ActivityLogAlertResource or ClientRawResponse if raw=true

Return type:

ActivityLogAlertResource or ClientRawResponse

Raises:

ErrorResponseException

delete(resource_group_name, activity_log_alert_name, custom_headers=None, raw=False, **operation_config)[source]

Delete an activity log alert.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • activity_log_alert_name (str) – The name of the activity log alert.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

None or ClientRawResponse if raw=true

Return type:

None or ClientRawResponse

Raises:

ErrorResponseException

get(resource_group_name, activity_log_alert_name, custom_headers=None, raw=False, **operation_config)[source]

Get an activity log alert.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • activity_log_alert_name (str) – The name of the activity log alert.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

ActivityLogAlertResource or ClientRawResponse if raw=true

Return type:

ActivityLogAlertResource or ClientRawResponse

Raises:

ErrorResponseException

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Get a list of all activity log alerts in a resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of ActivityLogAlertResource

Return type:

ActivityLogAlertResourcePaged

Raises:

ErrorResponseException

list_by_subscription_id(custom_headers=None, raw=False, **operation_config)[source]

Get a list of all activity log alerts in a subscription.

Parameters:
Returns:

An iterator like instance of ActivityLogAlertResource

Return type:

ActivityLogAlertResourcePaged

Raises:

ErrorResponseException

update(resource_group_name, activity_log_alert_name, tags=None, enabled=True, custom_headers=None, raw=False, **operation_config)[source]

Updates an existing ActivityLogAlertResource’s tags. To update other fields use the CreateOrUpdate method.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • activity_log_alert_name (str) – The name of the activity log alert.
  • tags (dict) – Resource tags
  • enabled (bool) – Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

ActivityLogAlertResource or ClientRawResponse if raw=true

Return type:

ActivityLogAlertResource or ClientRawResponse

Raises:

ErrorResponseException