public static ConfigModel.PeriodRule GetPeriodRuleByPeriodName(string periodName, ConfigModel.JsonConfig config = null)
 {
     if (config == null)
     {
         config = GetJsonConfigData();
     }
     return(ErrorHandle.Execute(() => _config.GetPeriodRuleByPeriodName(config, periodName)));
 }
 public static T Deserialize <T>(string data)
 {
     return(ErrorHandle.Execute(() => JsonConvert.DeserializeObject <T>(data), "Cannot parse json file,please check json file format."));
 }
 public static ConfigModel.SystemSetting GetSystemSetting()
 {
     return(ErrorHandle.Execute(() => _config.GetSystemSetting()));
 }
 public static void UpdateSystemSetting(ConfigModel.SystemSetting setting)
 {
     ErrorHandle.Execute(() => _config.UpdateSystemSetting(setting));
 }
 public static void DeleteAlertRuleByName(string alertName)
 {
     ErrorHandle.Execute(() => _config.DeleteAlertRuleByName(alertName));
 }
 public static void DeletePeriodRuleByName(string periodName)
 {
     ErrorHandle.Execute(() => _config.DeletePeriodRuleByName(periodName));
 }
 public static void InsertUpdateFocusSetting(ConfigModel.FocusSetting setting)
 {
     ErrorHandle.Execute(() => _config.InsertUpdateFocusSetting(setting));
 }
 public static void InsertUpdatePeriodRule(ConfigModel.PeriodRule periodRule)
 {
     ErrorHandle.Execute(() => _config.InsertUpdatePeriodRule(periodRule));
 }
 public static void InsertUpdateAlertRecord(ConfigModel.AlertRecord alertRecord)
 {
     ErrorHandle.Execute(() => _config.InsertUpdateAlertRecord(alertRecord));
 }
Exemplo n.º 10
0
 public static void InsertUpdateAlertRule(ConfigModel.AlertRule alertRule)
 {
     ErrorHandle.Execute(() => _config.InsertUpdateAlertRule(alertRule));
 }
Exemplo n.º 11
0
 public static void InsertUpdateApiKey(string key)
 {
     ErrorHandle.Execute(() => _config.InsertUpdateApiKey(key));
 }
Exemplo n.º 12
0
 public static ConfigModel.AlertRecord GetAlertRecordByName(string name)
 {
     return(ErrorHandle.Execute(() => _config.GetAlertRecordByName(name)));
 }
Exemplo n.º 13
0
 public static ConfigModel.JsonConfig GetJsonConfigData()
 {
     return(ErrorHandle.Execute(() => _config.GetJsonConfigData()));
 }