Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ public LogsIngestionClient(System.Uri endpoint, Azure.Core.TokenCredential crede
public LogsIngestionClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Monitor.Ingestion.LogsIngestionClientOptions options) { }
public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } }
public virtual Azure.Response Upload(string ruleId, string streamName, Azure.Core.RequestContent content, string contentEncoding = null, Azure.RequestContext context = null) { throw null; }
public virtual Azure.Response Upload(string ruleId, string streamName, System.Collections.Generic.IEnumerable<System.Collections.Generic.IDictionary<string, System.BinaryData>> body, string contentEncoding = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> UploadAsync(string ruleId, string streamName, Azure.Core.RequestContent content, string contentEncoding = null, Azure.RequestContext context = null) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> UploadAsync(string ruleId, string streamName, System.Collections.Generic.IEnumerable<System.Collections.Generic.IDictionary<string, System.BinaryData>> body, string contentEncoding = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> UploadAsync<T>(string ruleId, string streamName, System.Collections.Generic.IEnumerable<T> logs, Azure.Monitor.Ingestion.LogsUploadOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response Upload<T>(string ruleId, string streamName, System.Collections.Generic.IEnumerable<T> logs, Azure.Monitor.Ingestion.LogsUploadOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ public LogsIngestionClient(System.Uri endpoint, Azure.Core.TokenCredential crede
public LogsIngestionClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Monitor.Ingestion.LogsIngestionClientOptions options) { }
public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } }
public virtual Azure.Response Upload(string ruleId, string streamName, Azure.Core.RequestContent content, string contentEncoding = null, Azure.RequestContext context = null) { throw null; }
public virtual Azure.Response Upload(string ruleId, string streamName, System.Collections.Generic.IEnumerable<System.Collections.Generic.IDictionary<string, System.BinaryData>> body, string contentEncoding = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> UploadAsync(string ruleId, string streamName, Azure.Core.RequestContent content, string contentEncoding = null, Azure.RequestContext context = null) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> UploadAsync(string ruleId, string streamName, System.Collections.Generic.IEnumerable<System.Collections.Generic.IDictionary<string, System.BinaryData>> body, string contentEncoding = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> UploadAsync<T>(string ruleId, string streamName, System.Collections.Generic.IEnumerable<T> logs, Azure.Monitor.Ingestion.LogsUploadOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response Upload<T>(string ruleId, string streamName, System.Collections.Generic.IEnumerable<T> logs, Azure.Monitor.Ingestion.LogsUploadOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,64 +1,172 @@
<?xml version="1.0" encoding="utf-8"?>
<doc>
<members>
<member name="UploadAsync(string,string,RequestContent,string,RequestContext)">
<member name="UploadAsync(string,string,IEnumerable{IDictionary{string,BinaryData}},string,CancellationToken)">
<example>
This sample shows how to call UploadAsync.
<code><![CDATA[
Uri endpoint = new Uri("<endpoint>");
TokenCredential credential = new DefaultAzureCredential();
LogsIngestionClient client = new LogsIngestionClient(endpoint, credential);

using RequestContent content = RequestContent.Create(new object[]
Response response = await client.UploadAsync("c512b59c-4005-40e2-b13d-ac29cfb46af4", "Custom-TestStream", new IDictionary<string, BinaryData>[]
{
new object()
new Dictionary<string, BinaryData>
{
["Time"] = BinaryData.FromObjectAsJson("2021-12-08T23:51:14.1104269Z"),
["Computer"] = BinaryData.FromObjectAsJson("Computer1"),
["AdditionalContext"] = BinaryData.FromObjectAsJson(new Dictionary<string, object>
{
["$id"] = "55",
["InstanceName"] = "user1",
["TimeZone"] = "Pacific Time",
["Level"] = 4,
["CounterName"] = "AppMetric1",
["CounterValue"] = 15.3F
})
},
new Dictionary<string, BinaryData>
{
["Time"] = BinaryData.FromObjectAsJson("2021-12-08T23:51:14.1104269Z"),
["Computer"] = BinaryData.FromObjectAsJson("Computer2"),
["AdditionalContext"] = BinaryData.FromObjectAsJson(new Dictionary<string, object>
{
["$id"] = "61",
["InstanceName"] = "user2",
["TimeZone"] = "Central Time",
["Level"] = 3,
["CounterName"] = "AppMetric1",
["CounterValue"] = 23.5F
})
}
});
Response response = await client.UploadAsync("<ruleId>", "<streamName>", content);

Console.WriteLine(response.Status);
]]></code>
This sample shows how to call UploadAsync with all parameters and request content.
]]></code></example>
</member>
<member name="Upload(string,string,IEnumerable{IDictionary{string,BinaryData}},string,CancellationToken)">
<example>
This sample shows how to call Upload.
<code><![CDATA[
Uri endpoint = new Uri("<endpoint>");
TokenCredential credential = new DefaultAzureCredential();
LogsIngestionClient client = new LogsIngestionClient(endpoint, credential);

using RequestContent content = RequestContent.Create(new object[]
Response response = client.Upload("c512b59c-4005-40e2-b13d-ac29cfb46af4", "Custom-TestStream", new IDictionary<string, BinaryData>[]
{
new object()
new Dictionary<string, BinaryData>
{
["Time"] = BinaryData.FromObjectAsJson("2021-12-08T23:51:14.1104269Z"),
["Computer"] = BinaryData.FromObjectAsJson("Computer1"),
["AdditionalContext"] = BinaryData.FromObjectAsJson(new Dictionary<string, object>
{
["$id"] = "55",
["InstanceName"] = "user1",
["TimeZone"] = "Pacific Time",
["Level"] = 4,
["CounterName"] = "AppMetric1",
["CounterValue"] = 15.3F
})
},
new Dictionary<string, BinaryData>
{
["Time"] = BinaryData.FromObjectAsJson("2021-12-08T23:51:14.1104269Z"),
["Computer"] = BinaryData.FromObjectAsJson("Computer2"),
["AdditionalContext"] = BinaryData.FromObjectAsJson(new Dictionary<string, object>
{
["$id"] = "61",
["InstanceName"] = "user2",
["TimeZone"] = "Central Time",
["Level"] = 3,
["CounterName"] = "AppMetric1",
["CounterValue"] = 23.5F
})
}
});
Response response = await client.UploadAsync("<ruleId>", "<streamName>", content, contentEncoding: "<contentEncoding>");

Console.WriteLine(response.Status);
]]></code></example>
</member>
<member name="Upload(string,string,RequestContent,string,RequestContext)">
<member name="UploadAsync(string,string,RequestContent,string,RequestContext)">
<example>
This sample shows how to call Upload.
This sample shows how to call UploadAsync.
<code><![CDATA[
Uri endpoint = new Uri("<endpoint>");
TokenCredential credential = new DefaultAzureCredential();
LogsIngestionClient client = new LogsIngestionClient(endpoint, credential);

using RequestContent content = RequestContent.Create(new object[]
{
new object()
new
{
Time = "2021-12-08T23:51:14.1104269Z",
Computer = "Computer1",
AdditionalContext = new Dictionary<string, object>
{
["$id"] = "55",
["InstanceName"] = "user1",
["TimeZone"] = "Pacific Time",
["Level"] = 4,
["CounterName"] = "AppMetric1",
["CounterValue"] = 15.3F
},
},
new
{
Time = "2021-12-08T23:51:14.1104269Z",
Computer = "Computer2",
AdditionalContext = new Dictionary<string, object>
{
["$id"] = "61",
["InstanceName"] = "user2",
["TimeZone"] = "Central Time",
["Level"] = 3,
["CounterName"] = "AppMetric1",
["CounterValue"] = 23.5F
},
}
});
Response response = client.Upload("<ruleId>", "<streamName>", content);
Response response = await client.UploadAsync("c512b59c-4005-40e2-b13d-ac29cfb46af4", "Custom-TestStream", content);

Console.WriteLine(response.Status);
]]></code>
This sample shows how to call Upload with all parameters and request content.
]]></code></example>
</member>
<member name="Upload(string,string,RequestContent,string,RequestContext)">
<example>
This sample shows how to call Upload.
<code><![CDATA[
Uri endpoint = new Uri("<endpoint>");
TokenCredential credential = new DefaultAzureCredential();
LogsIngestionClient client = new LogsIngestionClient(endpoint, credential);

using RequestContent content = RequestContent.Create(new object[]
{
new object()
new
{
Time = "2021-12-08T23:51:14.1104269Z",
Computer = "Computer1",
AdditionalContext = new Dictionary<string, object>
{
["$id"] = "55",
["InstanceName"] = "user1",
["TimeZone"] = "Pacific Time",
["Level"] = 4,
["CounterName"] = "AppMetric1",
["CounterValue"] = 15.3F
},
},
new
{
Time = "2021-12-08T23:51:14.1104269Z",
Computer = "Computer2",
AdditionalContext = new Dictionary<string, object>
{
["$id"] = "61",
["InstanceName"] = "user2",
["TimeZone"] = "Central Time",
["Level"] = 3,
["CounterName"] = "AppMetric1",
["CounterValue"] = 23.5F
},
}
});
Response response = client.Upload("<ruleId>", "<streamName>", content, contentEncoding: "<contentEncoding>");
Response response = client.Upload("c512b59c-4005-40e2-b13d-ac29cfb46af4", "Custom-TestStream", content);

Console.WriteLine(response.Status);
]]></code></example>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading