Source code for azure.mgmt.alertsmanagement.models._alerts_management_client_enums

# 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 enum import Enum


[docs]class Severity(str, Enum): sev0 = "Sev0" sev1 = "Sev1" sev2 = "Sev2" sev3 = "Sev3" sev4 = "Sev4"
[docs]class SignalType(str, Enum): metric = "Metric" log = "Log" unknown = "Unknown"
[docs]class AlertState(str, Enum): new = "New" acknowledged = "Acknowledged" closed = "Closed"
[docs]class MonitorCondition(str, Enum): fired = "Fired" resolved = "Resolved"
[docs]class MonitorService(str, Enum): application_insights = "Application Insights" activity_log_administrative = "ActivityLog Administrative" activity_log_security = "ActivityLog Security" activity_log_recommendation = "ActivityLog Recommendation" activity_log_policy = "ActivityLog Policy" activity_log_autoscale = "ActivityLog Autoscale" log_analytics = "Log Analytics" nagios = "Nagios" platform = "Platform" scom = "SCOM" service_health = "ServiceHealth" smart_detector = "SmartDetector" vm_insights = "VM Insights" zabbix = "Zabbix"
[docs]class AlertModificationEvent(str, Enum): alert_created = "AlertCreated" state_change = "StateChange" monitor_condition_change = "MonitorConditionChange"
[docs]class SmartGroupModificationEvent(str, Enum): smart_group_created = "SmartGroupCreated" state_change = "StateChange" alert_added = "AlertAdded" alert_removed = "AlertRemoved"
[docs]class State(str, Enum): new = "New" acknowledged = "Acknowledged" closed = "Closed"
[docs]class ScopeType(str, Enum): resource_group = "ResourceGroup" resource = "Resource"
[docs]class Operator(str, Enum): equals = "Equals" not_equals = "NotEquals" contains = "Contains" does_not_contain = "DoesNotContain"
[docs]class SuppressionType(str, Enum): always = "Always" once = "Once" daily = "Daily" weekly = "Weekly" monthly = "Monthly"
[docs]class ActionRuleStatus(str, Enum): enabled = "Enabled" disabled = "Disabled"
[docs]class AlertRuleState(str, Enum): enabled = "Enabled" disabled = "Disabled"
[docs]class TimeRange(str, Enum): oneh = "1h" oned = "1d" sevend = "7d" three_zerod = "30d"
[docs]class AlertsSortByFields(str, Enum): name = "name" severity = "severity" alert_state = "alertState" monitor_condition = "monitorCondition" target_resource = "targetResource" target_resource_name = "targetResourceName" target_resource_group = "targetResourceGroup" target_resource_type = "targetResourceType" start_date_time = "startDateTime" last_modified_date_time = "lastModifiedDateTime"
[docs]class AlertsSummaryGroupByFields(str, Enum): severity = "severity" alert_state = "alertState" monitor_condition = "monitorCondition" monitor_service = "monitorService" signal_type = "signalType" alert_rule = "alertRule"
[docs]class SmartGroupsSortByFields(str, Enum): alerts_count = "alertsCount" state = "state" severity = "severity" start_date_time = "startDateTime" last_modified_date_time = "lastModifiedDateTime"