CrazyIter_Bin 2 年之前
父节点
当前提交
225eff2607
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      TEAMModelOS.FunctionV4/TimeTrigger/TimeMonitorMiddleware.cs

+ 1 - 1
TEAMModelOS.FunctionV4/TimeTrigger/TimeMonitorMiddleware.cs

@@ -31,7 +31,7 @@ namespace TEAMModelOS
             string time = DateTimeOffset.Now.ToString("yyyyMMdd");
             string name = context.FunctionDefinition.Name;
             string costkey = $"AzureFunction:Cost:{time}:{name}";
-            //超过3秒的 才记录执行时长
+            //超过1秒的 才记录执行时长
             if (costTime > 1) {
                 await _azureRedis.GetRedisClient(8).HashSetAsync(costkey, costTime, costTime);
                 await _azureRedis.GetRedisClient(8).KeyExpireAsync(costkey, new TimeSpan(24, 0, 0));