Example #1
0
 /// <summary>
 /// Ctor for the information common to all topology node descriptions.
 /// </summary>
 public ContosoTopologyDescriptionCommon()
 {
     Name            = "";
     Description     = "";
     Image           = "";
     OeeOverall      = new ContosoPerformanceDescription();
     OeePerformance  = new ContosoPerformanceDescription();
     OeeAvailability = new ContosoPerformanceDescription();
     OeeQuality      = new ContosoPerformanceDescription();
     Kpi1            = new ContosoPerformanceDescription();
     Kpi2            = new ContosoPerformanceDescription();
 }
Example #2
0
        /// <summary>
        /// Ctor for the ContosoPerformanceSetting.
        /// </summary>
        public ContosoPerformanceSetting(ContosoPerformanceSettingAggregator perfType, string key, ContosoPerformanceDescription performanceDescription)
        {
            PerfType = perfType;
            Minimum  = performanceDescription.Minimum;
            Target   = performanceDescription.Target;
            Maximum  = performanceDescription.Maximum;

            MinimumAlertActions = new List <ContosoAlertActionDefinition>();
            MinimumAlertActions.AddRange(ContosoAlertActionDefinition.Init(performanceDescription.MinimumAlertActions));
            MaximumAlertActions = new List <ContosoAlertActionDefinition>();
            MaximumAlertActions.AddRange(ContosoAlertActionDefinition.Init(performanceDescription.MaximumAlertActions));
        }