Example #1
0
        public static AlarmDefaults <TServiceType> FromDefaults(IEnumerable <AlarmDefinition> defaults)
        {
            var result = new AlarmDefaults <TServiceType>();

            result.AddRange(defaults);
            return(result);
        }
 public ResourceAlarmGenerator(
     IAlarmDimensionProvider <T> dimensionProvider,
     AlarmDefaults <T> defaultAlarms,
     IResourceAttributesProvider <T, TAlarmConfig> attributeProvider)
 {
     _dimensions        = dimensionProvider;
     _defaultAlarms     = defaultAlarms;
     _attributeProvider = attributeProvider;
 }