Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="InteractionStatRuleNotification" /> class.
        /// </summary>


        /// <param name="Id">Id.</param>



        /// <param name="Name">Name.</param>



        /// <param name="Dimension">Dimension.</param>



        /// <param name="DimensionValue">DimensionValue.</param>



        /// <param name="DimensionValueName">DimensionValueName.</param>



        /// <param name="Metric">Metric.</param>



        /// <param name="MediaType">MediaType.</param>



        /// <param name="NumericRange">NumericRange.</param>



        /// <param name="Statistic">Statistic.</param>



        /// <param name="Value">Value.</param>



        /// <param name="InAlarm">InAlarm.</param>



        /// <param name="Enabled">Enabled.</param>



        /// <param name="NotificationUsers">NotificationUsers.</param>



        /// <param name="AlertTypes">AlertTypes.</param>


        public InteractionStatRuleNotification(string Id = null, string Name = null, DimensionEnum?Dimension = null, string DimensionValue = null, string DimensionValueName = null, MetricEnum?Metric = null, MediaTypeEnum?MediaType = null, NumericRangeEnum?NumericRange = null, StatisticEnum?Statistic = null, double?Value = null, bool?InAlarm = null, bool?Enabled = null, List <HeartBeatAlertNotificationNotificationUsers> NotificationUsers = null, List <AlertTypesEnum> AlertTypes = null)
        {
            this.Id = Id;



            this.Name = Name;



            this.Dimension = Dimension;



            this.DimensionValue = DimensionValue;



            this.DimensionValueName = DimensionValueName;



            this.Metric = Metric;



            this.MediaType = MediaType;



            this.NumericRange = NumericRange;



            this.Statistic = Statistic;



            this.Value = Value;



            this.InAlarm = InAlarm;



            this.Enabled = Enabled;



            this.NotificationUsers = NotificationUsers;



            this.AlertTypes = AlertTypes;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="InteractionStatsRule" /> class.
 /// </summary>
 /// <param name="Name">Name of the rule (required).</param>
 /// <param name="Dimension">The dimension of concern. (required).</param>
 /// <param name="DimensionValue">The value of the dimension. (required).</param>
 /// <param name="Metric">The metric to be assessed. (required).</param>
 /// <param name="MediaType">The media type. (required).</param>
 /// <param name="NumericRange">The comparison descriptor used against the metric's value. (required).</param>
 /// <param name="Statistic">The statistic of concern for the metric. (required).</param>
 /// <param name="Value">The threshold value. (required).</param>
 /// <param name="Enabled">Indicates if the rule is enabled. (required).</param>
 /// <param name="NotificationUsers">The ids of users who will be notified of alarm state change. (required).</param>
 /// <param name="AlertTypes">A collection of notification methods. (required).</param>
 public InteractionStatsRule(string Name = null, DimensionEnum?Dimension = null, string DimensionValue = null, MetricEnum?Metric = null, MediaTypeEnum?MediaType = null, NumericRangeEnum?NumericRange = null, StatisticEnum?Statistic = null, double?Value = null, bool?Enabled = null, List <User> NotificationUsers = null, List <AlertTypesEnum> AlertTypes = null)
 {
     this.Name              = Name;
     this.Dimension         = Dimension;
     this.DimensionValue    = DimensionValue;
     this.Metric            = Metric;
     this.MediaType         = MediaType;
     this.NumericRange      = NumericRange;
     this.Statistic         = Statistic;
     this.Value             = Value;
     this.Enabled           = Enabled;
     this.NotificationUsers = NotificationUsers;
     this.AlertTypes        = AlertTypes;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KlaxonInteractionStatsAlertsTopicInteractionStatAlert" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Name">Name.</param>
 /// <param name="RuleId">RuleId.</param>
 /// <param name="Dimension">Dimension.</param>
 /// <param name="DimensionValue">DimensionValue.</param>
 /// <param name="DimensionValueName">DimensionValueName.</param>
 /// <param name="Metric">Metric.</param>
 /// <param name="MediaType">MediaType.</param>
 /// <param name="NumericRange">NumericRange.</param>
 /// <param name="Statistic">Statistic.</param>
 /// <param name="Value">Value.</param>
 /// <param name="Unread">Unread.</param>
 /// <param name="StartDate">StartDate.</param>
 /// <param name="EndDate">EndDate.</param>
 /// <param name="NotificationUsers">NotificationUsers.</param>
 /// <param name="AlertTypes">AlertTypes.</param>
 public KlaxonInteractionStatsAlertsTopicInteractionStatAlert(string Id = null, string Name = null, string RuleId = null, DimensionEnum?Dimension = null, string DimensionValue = null, string DimensionValueName = null, MetricEnum?Metric = null, MediaTypeEnum?MediaType = null, NumericRangeEnum?NumericRange = null, StatisticEnum?Statistic = null, double?Value = null, bool?Unread = null, DateTime?StartDate = null, DateTime?EndDate = null, List <KlaxonInteractionStatsAlertsTopicNotificationUser> NotificationUsers = null, List <AlertTypesEnum> AlertTypes = null)
 {
     this.Id                 = Id;
     this.Name               = Name;
     this.RuleId             = RuleId;
     this.Dimension          = Dimension;
     this.DimensionValue     = DimensionValue;
     this.DimensionValueName = DimensionValueName;
     this.Metric             = Metric;
     this.MediaType          = MediaType;
     this.NumericRange       = NumericRange;
     this.Statistic          = Statistic;
     this.Value              = Value;
     this.Unread             = Unread;
     this.StartDate          = StartDate;
     this.EndDate            = EndDate;
     this.NotificationUsers  = NotificationUsers;
     this.AlertTypes         = AlertTypes;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InteractionStatsRule" /> class.
 /// </summary>
 /// <param name="Name">Name of the rule (required).</param>
 /// <param name="Dimension">The dimension of concern. (required).</param>
 /// <param name="DimensionValue">The value of the dimension. (required).</param>
 /// <param name="Metric">The metric to be assessed. (required).</param>
 /// <param name="MediaType">The media type. (required).</param>
 /// <param name="NumericRange">The comparison descriptor used against the metric&#39;s value. (required).</param>
 /// <param name="Statistic">The statistic of concern for the metric. (required).</param>
 /// <param name="Value">The threshold value. (required).</param>
 /// <param name="Enabled">Indicates if the rule is enabled. (required).</param>
 /// <param name="NotificationUsers">The ids of users who will be notified of alarm state change. (required).</param>
 /// <param name="AlertTypes">A collection of notification methods. (required).</param>
 public InteractionStatsRule(string Name = null, DimensionEnum?Dimension = null, string DimensionValue = null, MetricEnum?Metric = null, MediaTypeEnum?MediaType = null, NumericRangeEnum?NumericRange = null, StatisticEnum?Statistic = null, double?Value = null, bool?Enabled = null, List <User> NotificationUsers = null, List <AlertTypesEnum> AlertTypes = null)
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for InteractionStatsRule and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "Dimension" is required (not null)
     if (Dimension == null)
     {
         throw new InvalidDataException("Dimension is a required property for InteractionStatsRule and cannot be null");
     }
     else
     {
         this.Dimension = Dimension;
     }
     // to ensure "DimensionValue" is required (not null)
     if (DimensionValue == null)
     {
         throw new InvalidDataException("DimensionValue is a required property for InteractionStatsRule and cannot be null");
     }
     else
     {
         this.DimensionValue = DimensionValue;
     }
     // to ensure "Metric" is required (not null)
     if (Metric == null)
     {
         throw new InvalidDataException("Metric is a required property for InteractionStatsRule and cannot be null");
     }
     else
     {
         this.Metric = Metric;
     }
     // to ensure "MediaType" is required (not null)
     if (MediaType == null)
     {
         throw new InvalidDataException("MediaType is a required property for InteractionStatsRule and cannot be null");
     }
     else
     {
         this.MediaType = MediaType;
     }
     // to ensure "NumericRange" is required (not null)
     if (NumericRange == null)
     {
         throw new InvalidDataException("NumericRange is a required property for InteractionStatsRule and cannot be null");
     }
     else
     {
         this.NumericRange = NumericRange;
     }
     // to ensure "Statistic" is required (not null)
     if (Statistic == null)
     {
         throw new InvalidDataException("Statistic is a required property for InteractionStatsRule and cannot be null");
     }
     else
     {
         this.Statistic = Statistic;
     }
     // to ensure "Value" is required (not null)
     if (Value == null)
     {
         throw new InvalidDataException("Value is a required property for InteractionStatsRule and cannot be null");
     }
     else
     {
         this.Value = Value;
     }
     // to ensure "Enabled" is required (not null)
     if (Enabled == null)
     {
         throw new InvalidDataException("Enabled is a required property for InteractionStatsRule and cannot be null");
     }
     else
     {
         this.Enabled = Enabled;
     }
     // to ensure "NotificationUsers" is required (not null)
     if (NotificationUsers == null)
     {
         throw new InvalidDataException("NotificationUsers is a required property for InteractionStatsRule and cannot be null");
     }
     else
     {
         this.NotificationUsers = NotificationUsers;
     }
     // to ensure "AlertTypes" is required (not null)
     if (AlertTypes == null)
     {
         throw new InvalidDataException("AlertTypes is a required property for InteractionStatsRule and cannot be null");
     }
     else
     {
         this.AlertTypes = AlertTypes;
     }
 }