Browse Source

添加日志

datasub12_previous
H Vs 1 year ago
parent
commit
279e2a39d2
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      HealthMonitor.Service/Biz/db/TDengineService.cs

+ 5
- 1
HealthMonitor.Service/Biz/db/TDengineService.cs View File

@@ -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…
Cancel
Save