Пример #1
0
        internal static string ToSerializedValue(this AlertModificationEvent value)
        {
            switch (value)
            {
            case AlertModificationEvent.AlertCreated:
                return("AlertCreated");

            case AlertModificationEvent.StateChange:
                return("StateChange");

            case AlertModificationEvent.MonitorConditionChange:
                return("MonitorConditionChange");

            case AlertModificationEvent.SeverityChange:
                return("SeverityChange");

            case AlertModificationEvent.ActionRuleTriggered:
                return("ActionRuleTriggered");

            case AlertModificationEvent.ActionRuleSuppressed:
                return("ActionRuleSuppressed");

            case AlertModificationEvent.ActionsTriggered:
                return("ActionsTriggered");

            case AlertModificationEvent.ActionsSuppressed:
                return("ActionsSuppressed");

            case AlertModificationEvent.ActionsFailed:
                return("ActionsFailed");
            }
            return(null);
        }
        internal static string ToSerializedValue(this AlertModificationEvent value)
        {
            switch (value)
            {
            case AlertModificationEvent.AlertCreated:
                return("AlertCreated");

            case AlertModificationEvent.StateChange:
                return("StateChange");

            case AlertModificationEvent.MonitorConditionChange:
                return("MonitorConditionChange");
            }
            return(null);
        }