|
@@ -146,7 +146,10 @@ namespace TEAMModelOS.SDK.Services
|
|
|
{
|
|
|
double val = score.Score;
|
|
|
string key = score.Element.ToString();
|
|
|
- catalog.Add(key, val);
|
|
|
+ if (!string.IsNullOrWhiteSpace(key))
|
|
|
+ {
|
|
|
+ catalog[key] = val;
|
|
|
+ }
|
|
|
}
|
|
|
usedSize = blobsize;
|
|
|
//1024 * 1024 * 1024=1073741824 =1G
|
|
@@ -178,14 +181,14 @@ namespace TEAMModelOS.SDK.Services
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- await _dingDing.SendBotMsg($"IES5,{location},blob/used-space()\n{ex.Message}\n{ex.StackTrace}", GroupNames.醍摩豆服務運維群組);
|
|
|
+ await _dingDing.SendBotMsg($"IES5,{location},blob/used-space()\n{ex.Message}\n{ex.StackTrace}\n{name},\n{scope}", GroupNames.醍摩豆服務運維群組);
|
|
|
return (usedSize, teach, total, surplus, catalog);
|
|
|
}
|
|
|
if (usedSize > 0 && total > 0) {
|
|
|
|
|
|
double percent = surplus / total * 1073741824 * 100;
|
|
|
//
|
|
|
- _ = _httpTrigger.RequestHttpTrigger(new { }, location, "surplus-space-notify");
|
|
|
+ _ = _httpTrigger.RequestHttpTrigger(new {name,scope, percent }, location, "surplus-space-notify");
|
|
|
}
|
|
|
return (usedSize, teach, total, surplus, catalog);
|
|
|
}
|