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:

CloudError

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:

CloudError

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:

CloudError

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

Lists the autoscale settings for a resource group.

Parameters:
Return type:

AutoscaleSettingResourcePaged

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: “2015-07-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.

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.

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:

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. Request method: PUT Request URI: https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/microsoft.insights/alertRules/{alert-rule-name}?api-version={api-version}.

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:

CloudError

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, filter=None, custom_headers=None, raw=False, **operation_config)[source]

List the alert rules within a resource group.

Parameters:
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:

CloudError

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

CloudError

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

List the log profiles.

Parameters:
Return type:

LogProfileResourcePaged

Raises:

CloudError