瀏覽代碼

添加日志

datasub12_previous
H Vs 1 年之前
父節點
當前提交
279e2a39d2
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      HealthMonitor.Service/Biz/db/TDengineService.cs

+ 5
- 1
HealthMonitor.Service/Biz/db/TDengineService.cs 查看文件

@@ -389,7 +389,7 @@ namespace HealthMonitor.Service.Biz.db

public async Task<string?> GernalRestSqlResTextAsync(string sql)
{
_logger.LogInformation($"SQL: {nameof(GernalRestSqlResTextAsync)}--{sql}");
_logger.LogInformation($"执行 SQL: {nameof(GernalRestSqlResTextAsync)}--{sql}");
var url = $"http://{_configTDengineService.Host}:{_configTDengineService.RestPort}/rest/sql/{_configTDengineService.DB}";
List<KeyValuePair<string, string>> headers = new()
{
@@ -398,6 +398,8 @@ namespace HealthMonitor.Service.Biz.db
var result = await _httpHelper.HttpToPostAsync(url, sql, headers).ConfigureAwait(false);
return result;
}

/** 取消
/// <summary>
/// 最大值,最小值聚合
/// </summary>
@@ -473,6 +475,8 @@ namespace HealthMonitor.Service.Biz.db
List<dynamic> data = res?.Data!;
return SafeType.SafeInt(data[0][0]);
}

*/
#endregion

/// <summary>


Loading…
取消
儲存