-
Notifications
You must be signed in to change notification settings - Fork 9
Home
colethecoder edited this page Nov 18, 2017
·
4 revisions
Chronological is a library to simplify access to the Azure Time Series Insights API. This project is a work in progress and feedback and pull requests are welcomed.
var connection = new Chronological.Connection(YourApplicationClientID,
YourApplicationClientSecret, YourTenant);
var environments = await connection.GetEnvironmentsAsync();
var environment = environments.First();
var json = await environment.EventQuery("Test")
.WithSearch(Search.Span(DateTime.UtcNow.AddDays(-2), DateTime.UtcNow)
.WithLimit(Limit.Top(200, Sort.Ascending(Property.TimeStamp)))
.Where(Filter.Equal(Property.Custom("id", DataType.String), "1234"))
.ResultsToJObjectAsync();