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.
Return type:

AutoscaleSettingResource

Return type:

ClientRawResponse if raw=true

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.
Return type:

None

Return type:

ClientRawResponse if raw=true

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.
Return type:

AutoscaleSettingResource

Return type:

ClientRawResponse if raw=true

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.
Return type:

AutoscaleSettingResourcePaged

Raises:

ErrorResponseException

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.
Return type:

AlertRuleResource

Return type:

ClientRawResponse if raw=true

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.
Return type:

None

Return type:

ClientRawResponse if raw=true

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.
Return type:

AlertRuleResource

Return type:

ClientRawResponse if raw=true

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.
Return type:

AlertRuleResourcePaged

Raises:

CloudError

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.
Return type:

Incident

Return type:

ClientRawResponse if raw=true

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.
Return type:

IncidentPaged

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-03-01-preview”.

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.
Return type:

ActivityLogAlertResource

Return type:

ClientRawResponse if raw=true

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.
Return type:

None

Return type:

ClientRawResponse if raw=true

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.
Return type:

ActivityLogAlertResource

Return type:

ClientRawResponse if raw=true

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.
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:
Return type:

ActivityLogAlertResourcePaged

Raises:

ErrorResponseException

update(resource_group_name, activity_log_alert_name, activity_log_alert_patch, 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.
  • activity_log_alert_patch (ActivityLogAlertResourcePatch) – 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.
Return type:

ActivityLogAlertResource

Return type:

ClientRawResponse if raw=true

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.
Return type:

LogProfileResource

Return type:

ClientRawResponse if raw=true

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.
Return type:

None

Return type:

ClientRawResponse if raw=true

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.
Return type:

LogProfileResource

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

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

List the log profiles.

Parameters:
Return type:

LogProfileResourcePaged

Raises:

CloudError

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:
Return type:

ServiceDiagnosticSettingsResource

Return type:

ClientRawResponse if raw=true

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.
Return type:

ServiceDiagnosticSettingsResource

Return type:

ClientRawResponse if raw=true

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:
Return type:

ServiceDiagnosticSettingsResource

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException