public async Task TestPostLogStoreLogs()
{
var response = await this.context.Client.PostLogStoreLogsAsync(this.context.LogStoreName, new LogGroupInfo
{
Topic = "UnitTest",
Source = "UnitTest",
LogTags = new Dictionary<String, String>
{
{"Tag1", null}, // error
{"Tag2", String.Empty}, // error
{"Tag3", "far"}
},
Logs = new List<LogInfo>
{
new LogInfo
{
Time = DateTimeOffset.Now,
Contents = new Dictionary<String, String>
{
{"foo", null}, // error
{"bar", String.Empty}, // error
{"far", "baz"}
}
}
}
});
this.PrintResponse(response);
Assert.True(response.IsSuccess);
}
影响接口:ILogServiceClient.PostLogStoreLogsAsync
影响接口:
ILogServiceClient.PostLogStoreLogsAsync