Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions azure-mgmt-monitor/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,49 @@
Release History
===============

0.5.0 (2017-03-19)
++++++++++++++++++

**General Breaking changes**

This version uses a next-generation code generator that *might* introduce breaking changes.

- Model signatures now use only keyword-argument syntax. All positional arguments must be re-written as keyword-arguments.
To keep auto-completion in most cases, models are now generated for Python 2 and Python 3. Python 3 uses the "*" syntax for keyword-only arguments.
- Enum types now use the "str" mixin (class AzureEnum(str, Enum)) to improve the behavior when unrecognized enum values are encountered.
While this is not a breaking change, the distinctions are important, and are documented here:
https://docs.python.org/3/library/enum.html#others
At a glance:

- "is" should not be used at all.
- "format" will return the string value, where "%s" string formatting will return `NameOfEnum.stringvalue`. Format syntax should be prefered.

- New Long Running Operation:

- Return type changes from `msrestazure.azure_operation.AzureOperationPoller` to `msrest.polling.LROPoller`. External API is the same.
- Return type is now **always** a `msrest.polling.LROPoller`, regardless of the optional parameters used.
- The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`,
without polling, now this returns an LROPoller. After polling, the final resource will be returned as a `ClientRawResponse`.
- New `polling` parameter. The default behavior is `Polling=True` which will poll using ARM algorithm. When `Polling=False`,
the response of the initial call will be returned without polling.
- `polling` parameter accepts instances of subclasses of `msrest.polling.PollingMethod`.
- `add_done_callback` will no longer raise if called after polling is finished, but will instead execute the callback right away.

**Bugfixes**

- Fix invalid type of "top" in metrics.list operation

**Features**

- New operation group metric_baseline
- Add attribute action_group_resource itsm_receivers
- Add operation action_groups.update
- Add new parameter "metricnames" to metrics.list
- Add new parameter "metricnamespace" to metrics.list
- All operations group have now a "models" attribute

New ApiVersion version of metrics to 2018-01-01

0.4.0 (2017-10-25)
++++++++++++++++++

Expand Down
10 changes: 5 additions & 5 deletions azure-mgmt-monitor/README.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Microsoft Azure SDK for Python
==============================

This is the Microsoft Azure Monitor Management Client Library.
This is the Microsoft Azure Monitor Client Library.

Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.3, 3.4, 3.5 and 3.6.
This package has been tested with Python 2.7, 3.4, 3.5 and 3.6.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down Expand Up @@ -36,9 +36,9 @@ If you see azure==0.11.0 (or any version below 1.0), uninstall it first:
Usage
=====

For code examples, see `Monitor Management
<https://azure-sdk-for-python.readthedocs.org/en/latest/sample_azure-mgmt-monitor.html>`__
on readthedocs.org.
For code examples, see `Monitor
<https://docs.microsoft.com/python/api/overview/azure/monitoring>`__
on docs.microsoft.com.


Provide Feedback
Expand Down
226 changes: 161 additions & 65 deletions azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,71 +9,156 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .scale_capacity import ScaleCapacity
from .metric_trigger import MetricTrigger
from .scale_action import ScaleAction
from .scale_rule import ScaleRule
from .time_window import TimeWindow
from .recurrent_schedule import RecurrentSchedule
from .recurrence import Recurrence
from .autoscale_profile import AutoscaleProfile
from .email_notification import EmailNotification
from .webhook_notification import WebhookNotification
from .autoscale_notification import AutoscaleNotification
from .autoscale_setting_resource import AutoscaleSettingResource
from .autoscale_setting_resource_patch import AutoscaleSettingResourcePatch
from .error_response import ErrorResponse, ErrorResponseException
from .operation_display import OperationDisplay
from .operation import Operation
from .operation_list_result import OperationListResult
from .incident import Incident
from .rule_data_source import RuleDataSource
from .rule_condition import RuleCondition
from .rule_metric_data_source import RuleMetricDataSource
from .rule_management_event_claims_data_source import RuleManagementEventClaimsDataSource
from .rule_management_event_data_source import RuleManagementEventDataSource
from .threshold_rule_condition import ThresholdRuleCondition
from .location_threshold_rule_condition import LocationThresholdRuleCondition
from .management_event_aggregation_condition import ManagementEventAggregationCondition
from .management_event_rule_condition import ManagementEventRuleCondition
from .rule_action import RuleAction
from .rule_email_action import RuleEmailAction
from .rule_webhook_action import RuleWebhookAction
from .alert_rule_resource import AlertRuleResource
from .alert_rule_resource_patch import AlertRuleResourcePatch
from .retention_policy import RetentionPolicy
from .log_profile_resource import LogProfileResource
from .log_profile_resource_patch import LogProfileResourcePatch
from .proxy_only_resource import ProxyOnlyResource
from .metric_settings import MetricSettings
from .log_settings import LogSettings
from .diagnostic_settings_resource import DiagnosticSettingsResource
from .diagnostic_settings_resource_collection import DiagnosticSettingsResourceCollection
from .diagnostic_settings_category_resource import DiagnosticSettingsCategoryResource
from .diagnostic_settings_category_resource_collection import DiagnosticSettingsCategoryResourceCollection
from .email_receiver import EmailReceiver
from .sms_receiver import SmsReceiver
from .webhook_receiver import WebhookReceiver
from .action_group_resource import ActionGroupResource
from .enable_request import EnableRequest
from .activity_log_alert_leaf_condition import ActivityLogAlertLeafCondition
from .activity_log_alert_all_of_condition import ActivityLogAlertAllOfCondition
from .activity_log_alert_action_group import ActivityLogAlertActionGroup
from .activity_log_alert_action_list import ActivityLogAlertActionList
from .activity_log_alert_resource import ActivityLogAlertResource
from .activity_log_alert_patch_body import ActivityLogAlertPatchBody
from .localizable_string import LocalizableString
from .sender_authorization import SenderAuthorization
from .http_request_info import HttpRequestInfo
from .event_data import EventData
from .metric_availability import MetricAvailability
from .metric_definition import MetricDefinition
from .metric_value import MetricValue
from .metadata_value import MetadataValue
from .time_series_element import TimeSeriesElement
from .metric import Metric
from .response import Response
try:
from .resource_py3 import Resource
from .scale_capacity_py3 import ScaleCapacity
from .metric_trigger_py3 import MetricTrigger
from .scale_action_py3 import ScaleAction
from .scale_rule_py3 import ScaleRule
from .time_window_py3 import TimeWindow
from .recurrent_schedule_py3 import RecurrentSchedule
from .recurrence_py3 import Recurrence
from .autoscale_profile_py3 import AutoscaleProfile
from .email_notification_py3 import EmailNotification
from .webhook_notification_py3 import WebhookNotification
from .autoscale_notification_py3 import AutoscaleNotification
from .autoscale_setting_resource_py3 import AutoscaleSettingResource
from .autoscale_setting_resource_patch_py3 import AutoscaleSettingResourcePatch
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .operation_list_result_py3 import OperationListResult
from .incident_py3 import Incident
from .rule_data_source_py3 import RuleDataSource
from .rule_condition_py3 import RuleCondition
from .rule_metric_data_source_py3 import RuleMetricDataSource
from .rule_management_event_claims_data_source_py3 import RuleManagementEventClaimsDataSource
from .rule_management_event_data_source_py3 import RuleManagementEventDataSource
from .threshold_rule_condition_py3 import ThresholdRuleCondition
from .location_threshold_rule_condition_py3 import LocationThresholdRuleCondition
from .management_event_aggregation_condition_py3 import ManagementEventAggregationCondition
from .management_event_rule_condition_py3 import ManagementEventRuleCondition
from .rule_action_py3 import RuleAction
from .rule_email_action_py3 import RuleEmailAction
from .rule_webhook_action_py3 import RuleWebhookAction
from .alert_rule_resource_py3 import AlertRuleResource
from .alert_rule_resource_patch_py3 import AlertRuleResourcePatch
from .retention_policy_py3 import RetentionPolicy
from .log_profile_resource_py3 import LogProfileResource
from .log_profile_resource_patch_py3 import LogProfileResourcePatch
from .proxy_only_resource_py3 import ProxyOnlyResource
from .metric_settings_py3 import MetricSettings
from .log_settings_py3 import LogSettings
from .diagnostic_settings_resource_py3 import DiagnosticSettingsResource
from .diagnostic_settings_resource_collection_py3 import DiagnosticSettingsResourceCollection
from .diagnostic_settings_category_resource_py3 import DiagnosticSettingsCategoryResource
from .diagnostic_settings_category_resource_collection_py3 import DiagnosticSettingsCategoryResourceCollection
from .email_receiver_py3 import EmailReceiver
from .sms_receiver_py3 import SmsReceiver
from .webhook_receiver_py3 import WebhookReceiver
from .itsm_receiver_py3 import ItsmReceiver
from .azure_app_push_receiver_py3 import AzureAppPushReceiver
from .automation_runbook_receiver_py3 import AutomationRunbookReceiver
from .action_group_resource_py3 import ActionGroupResource
from .enable_request_py3 import EnableRequest
from .action_group_patch_body_py3 import ActionGroupPatchBody
from .activity_log_alert_leaf_condition_py3 import ActivityLogAlertLeafCondition
from .activity_log_alert_all_of_condition_py3 import ActivityLogAlertAllOfCondition
from .activity_log_alert_action_group_py3 import ActivityLogAlertActionGroup
from .activity_log_alert_action_list_py3 import ActivityLogAlertActionList
from .activity_log_alert_resource_py3 import ActivityLogAlertResource
from .activity_log_alert_patch_body_py3 import ActivityLogAlertPatchBody
from .localizable_string_py3 import LocalizableString
from .sender_authorization_py3 import SenderAuthorization
from .http_request_info_py3 import HttpRequestInfo
from .event_data_py3 import EventData
from .metric_availability_py3 import MetricAvailability
from .metric_definition_py3 import MetricDefinition
from .metric_value_py3 import MetricValue
from .metadata_value_py3 import MetadataValue
from .time_series_element_py3 import TimeSeriesElement
from .metric_py3 import Metric
from .response_py3 import Response
from .baseline_metadata_value_py3 import BaselineMetadataValue
from .baseline_py3 import Baseline
from .baseline_response_py3 import BaselineResponse
from .time_series_information_py3 import TimeSeriesInformation
from .calculate_baseline_response_py3 import CalculateBaselineResponse
except (SyntaxError, ImportError):
from .resource import Resource
from .scale_capacity import ScaleCapacity
from .metric_trigger import MetricTrigger
from .scale_action import ScaleAction
from .scale_rule import ScaleRule
from .time_window import TimeWindow
from .recurrent_schedule import RecurrentSchedule
from .recurrence import Recurrence
from .autoscale_profile import AutoscaleProfile
from .email_notification import EmailNotification
from .webhook_notification import WebhookNotification
from .autoscale_notification import AutoscaleNotification
from .autoscale_setting_resource import AutoscaleSettingResource
from .autoscale_setting_resource_patch import AutoscaleSettingResourcePatch
from .error_response import ErrorResponse, ErrorResponseException
from .operation_display import OperationDisplay
from .operation import Operation
from .operation_list_result import OperationListResult
from .incident import Incident
from .rule_data_source import RuleDataSource
from .rule_condition import RuleCondition
from .rule_metric_data_source import RuleMetricDataSource
from .rule_management_event_claims_data_source import RuleManagementEventClaimsDataSource
from .rule_management_event_data_source import RuleManagementEventDataSource
from .threshold_rule_condition import ThresholdRuleCondition
from .location_threshold_rule_condition import LocationThresholdRuleCondition
from .management_event_aggregation_condition import ManagementEventAggregationCondition
from .management_event_rule_condition import ManagementEventRuleCondition
from .rule_action import RuleAction
from .rule_email_action import RuleEmailAction
from .rule_webhook_action import RuleWebhookAction
from .alert_rule_resource import AlertRuleResource
from .alert_rule_resource_patch import AlertRuleResourcePatch
from .retention_policy import RetentionPolicy
from .log_profile_resource import LogProfileResource
from .log_profile_resource_patch import LogProfileResourcePatch
from .proxy_only_resource import ProxyOnlyResource
from .metric_settings import MetricSettings
from .log_settings import LogSettings
from .diagnostic_settings_resource import DiagnosticSettingsResource
from .diagnostic_settings_resource_collection import DiagnosticSettingsResourceCollection
from .diagnostic_settings_category_resource import DiagnosticSettingsCategoryResource
from .diagnostic_settings_category_resource_collection import DiagnosticSettingsCategoryResourceCollection
from .email_receiver import EmailReceiver
from .sms_receiver import SmsReceiver
from .webhook_receiver import WebhookReceiver
from .itsm_receiver import ItsmReceiver
from .azure_app_push_receiver import AzureAppPushReceiver
from .automation_runbook_receiver import AutomationRunbookReceiver
from .action_group_resource import ActionGroupResource
from .enable_request import EnableRequest
from .action_group_patch_body import ActionGroupPatchBody
from .activity_log_alert_leaf_condition import ActivityLogAlertLeafCondition
from .activity_log_alert_all_of_condition import ActivityLogAlertAllOfCondition
from .activity_log_alert_action_group import ActivityLogAlertActionGroup
from .activity_log_alert_action_list import ActivityLogAlertActionList
from .activity_log_alert_resource import ActivityLogAlertResource
from .activity_log_alert_patch_body import ActivityLogAlertPatchBody
from .localizable_string import LocalizableString
from .sender_authorization import SenderAuthorization
from .http_request_info import HttpRequestInfo
from .event_data import EventData
from .metric_availability import MetricAvailability
from .metric_definition import MetricDefinition
from .metric_value import MetricValue
from .metadata_value import MetadataValue
from .time_series_element import TimeSeriesElement
from .metric import Metric
from .response import Response
from .baseline_metadata_value import BaselineMetadataValue
from .baseline import Baseline
from .baseline_response import BaselineResponse
from .time_series_information import TimeSeriesInformation
from .calculate_baseline_response import CalculateBaselineResponse
from .autoscale_setting_resource_paged import AutoscaleSettingResourcePaged
from .incident_paged import IncidentPaged
from .alert_rule_resource_paged import AlertRuleResourcePaged
Expand All @@ -97,6 +182,7 @@
EventLevel,
Unit,
AggregationType,
Sensitivity,
ResultType,
)

Expand Down Expand Up @@ -147,8 +233,12 @@
'EmailReceiver',
'SmsReceiver',
'WebhookReceiver',
'ItsmReceiver',
'AzureAppPushReceiver',
'AutomationRunbookReceiver',
'ActionGroupResource',
'EnableRequest',
'ActionGroupPatchBody',
'ActivityLogAlertLeafCondition',
'ActivityLogAlertAllOfCondition',
'ActivityLogAlertActionGroup',
Expand All @@ -166,6 +256,11 @@
'TimeSeriesElement',
'Metric',
'Response',
'BaselineMetadataValue',
'Baseline',
'BaselineResponse',
'TimeSeriesInformation',
'CalculateBaselineResponse',
'AutoscaleSettingResourcePaged',
'IncidentPaged',
'AlertRuleResourcePaged',
Expand All @@ -188,5 +283,6 @@
'EventLevel',
'Unit',
'AggregationType',
'Sensitivity',
'ResultType',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class ActionGroupPatchBody(Model):
"""An action group object for the body of patch operations.

:param tags: Resource tags
:type tags: dict[str, str]
:param enabled: Indicates whether this action group is enabled. If an
action group is not enabled, then none of its actions will be activated.
Default value: True .
:type enabled: bool
"""

_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
'enabled': {'key': 'properties.enabled', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(ActionGroupPatchBody, self).__init__(**kwargs)
self.tags = kwargs.get('tags', None)
self.enabled = kwargs.get('enabled', True)
Loading