Skip to content

Commit 8132a28

Browse files
Updating Bond, removing docs
1 parent 47f88e8 commit 8132a28

19 files changed

+405
-1375
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
1-
import "Domain.bond"
2-
3-
namespace AI
4-
5-
[Description("Instances of AvailabilityData represent the result of executing an availability test.")]
6-
struct AvailabilityData
7-
: Domain
8-
{
9-
[Description("Schema version")]
10-
10: required int32 ver = 2;
11-
12-
[MaxStringLength("64")]
13-
[Description("Identifier of a test run. Use it to correlate steps of test run and telemetry generated by the service.")]
14-
[ActAsRequired("Renaming testRunId to id.")]
15-
21: required string id;
16-
17-
[MaxStringLength("1024")]
18-
[Description("Name of the test that these availability results represent.")]
19-
[ActAsRequired("Renaming testName to name.")]
20-
41: required string name;
21-
22-
[Description("Duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.")]
23-
[CSType("TimeSpan")]
24-
50: required string duration;
25-
26-
[ActAsRequired("Renaming result to success.")]
27-
[Description("Success flag.")]
28-
61: required bool success;
29-
30-
[MaxStringLength("1024")]
31-
[Description("Name of the location where the test was run from.")]
32-
70: string runLocation;
33-
34-
[MaxStringLength("8192")]
35-
[Description("Diagnostic message for the result.")]
36-
80: string message;
37-
38-
[Description("Collection of custom properties.")]
39-
[MaxKeyLength("150")]
40-
[MaxValueLength("8192")]
41-
100: map<string, string> properties;
42-
43-
[Description("Collection of custom measurements.")]
44-
[MaxKeyLength("150")]
45-
200: map<string, double> measurements;
46-
47-
}
1+
import "Domain.bond"
2+
3+
namespace AI
4+
5+
[Description("Instances of AvailabilityData represent the result of executing an availability test.")]
6+
struct AvailabilityData
7+
: Domain
8+
{
9+
[Description("Schema version")]
10+
10: required int32 ver = 2;
11+
12+
[MaxStringLength("512")]
13+
[Description("Identifier of a test run. Use it to correlate steps of test run and telemetry generated by the service.")]
14+
[ActAsRequired("Renaming testRunId to id.")]
15+
21: required string id;
16+
17+
[MaxStringLength("1024")]
18+
[Description("Name of the test that these availability results represent.")]
19+
[ActAsRequired("Renaming testName to name.")]
20+
41: required string name;
21+
22+
[Description("Duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.")]
23+
[CSType("TimeSpan")]
24+
50: required string duration;
25+
26+
[ActAsRequired("Renaming result to success.")]
27+
[Description("Success flag.")]
28+
61: required bool success;
29+
30+
[MaxStringLength("1024")]
31+
[Description("Name of the location where the test was run from.")]
32+
70: string runLocation;
33+
34+
[MaxStringLength("8192")]
35+
[Description("Diagnostic message for the result.")]
36+
80: string message;
37+
38+
[Description("Collection of custom properties.")]
39+
[MaxKeyLength("150")]
40+
[MaxValueLength("8192")]
41+
100: map<string, string> properties;
42+
43+
[Description("Collection of custom measurements.")]
44+
[MaxKeyLength("150")]
45+
200: map<string, double> measurements;
46+
47+
}

EndpointSpecs/Schemas/Bond/ContextTagKeys.bond

+119-113
Large diffs are not rendered by default.
+34-34
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
import "DataPointType.bond"
2-
3-
namespace AI
4-
5-
[Description("Metric data single measurement.")]
6-
struct DataPoint
7-
{
8-
[Description("Namespace of the metric.")]
9-
[MaxStringLength("256")]
10-
5: string ns;
11-
12-
[Description("Name of the metric.")]
13-
[MaxStringLength("1024")]
14-
10: required string name;
15-
16-
[Description("Metric type. Single measurement or the aggregated value.")]
17-
20: AI.DataPointType kind = Measurement;
18-
19-
[Description("Single value for measurement. Sum of individual measurements for the aggregation.")]
20-
30: required double value;
21-
22-
[Description("Metric weight of the aggregated metric. Should not be set for a measurement.")]
23-
40: nullable<int32> count;
24-
25-
[Description("Minimum value of the aggregated metric. Should not be set for a measurement.")]
26-
50: nullable<double> min;
27-
28-
[Description("Maximum value of the aggregated metric. Should not be set for a measurement.")]
29-
60: nullable<double> max;
30-
31-
[Description("Standard deviation of the aggregated metric. Should not be set for a measurement.")]
32-
70: nullable<double> stdDev;
33-
34-
}
1+
import "DataPointType.bond"
2+
3+
namespace AI
4+
5+
[Description("Metric data single measurement.")]
6+
struct DataPoint
7+
{
8+
[Description("Namespace of the metric.")]
9+
[MaxStringLength("256")]
10+
5: string ns;
11+
12+
[Description("Name of the metric.")]
13+
[MaxStringLength("1024")]
14+
10: required string name;
15+
16+
[Description("Metric type. Single measurement or the aggregated value.")]
17+
20: AI.DataPointType kind = Measurement;
18+
19+
[Description("Single value for measurement. Sum of individual measurements for the aggregation.")]
20+
30: required double value;
21+
22+
[Description("Metric weight of the aggregated metric. Should not be set for a measurement.")]
23+
40: nullable<int32> count;
24+
25+
[Description("Minimum value of the aggregated metric. Should not be set for a measurement.")]
26+
50: nullable<double> min;
27+
28+
[Description("Maximum value of the aggregated metric. Should not be set for a measurement.")]
29+
60: nullable<double> max;
30+
31+
[Description("Standard deviation of the aggregated metric. Should not be set for a measurement.")]
32+
70: nullable<double> stdDev;
33+
34+
}
+44-22
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,44 @@
1-
import "EventData.bond"
2-
3-
namespace AI
4-
5-
[Description("An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.")]
6-
[Alias("PageviewData;PageEventData")]
7-
struct PageViewData
8-
: EventData
9-
{
10-
[MaxStringLength("2048")]
11-
[Description("Request URL with all query string parameters")]
12-
10: string url;
13-
14-
[CSType("TimeSpan")]
15-
[Description("Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days.")]
16-
20: string duration;
17-
18-
[MaxStringLength("128")]
19-
[ActAsRequired("Required field for correct correlation.")]
20-
[Description("Identifier of a page view instance. Used for correlation between page view and other telemetry items.")]
21-
50: required string id;
22-
}
1+
import "Domain.bond"
2+
3+
namespace AI
4+
5+
[Description("An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.")]
6+
[Alias("PageviewData;PageEventData")]
7+
struct PageViewData
8+
: Domain
9+
{
10+
[Description("Schema version")]
11+
10: required int32 ver = 2;
12+
13+
[MaxStringLength("512")]
14+
[Description("Event name. Keep it low cardinality to allow proper grouping and useful metrics.")]
15+
[Question("Why Custom Event name is shorter than Request name or dependency name?")]
16+
20: required string name;
17+
18+
[MaxStringLength("2048")]
19+
[Description("Request URL with all query string parameters")]
20+
30: string url;
21+
22+
[CSType("TimeSpan")]
23+
[Description("Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days.")]
24+
40: string duration;
25+
26+
[Description("Fully qualified page URI or URL of the referring page; if unknown, leave blank")]
27+
[MaxStringLength("2048")]
28+
50: string referrerUri;
29+
30+
[MaxStringLength("512")]
31+
[ActAsRequired("Required field for correct correlation.")]
32+
[Description("Identifier of a page view instance. Used for correlation between page view and other telemetry items.")]
33+
70: required string id;
34+
35+
[Description("Collection of custom properties.")]
36+
[MaxKeyLength("150")]
37+
[MaxValueLength("8192")]
38+
100: map<string, string> properties;
39+
40+
[Description("Collection of custom measurements.")]
41+
[MaxKeyLength("150")]
42+
200: map<string, double> measurements;
43+
44+
}
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,60 @@
1-
import "PageViewData.bond"
2-
3-
namespace AI
4-
5-
[Description("An instance of PageViewPerf represents: a page view with no performance data, a page view with performance data, or just the performance data of an earlier page request.")]
6-
[Alias("PageViewPerformanceData;PageviewPerformanceData")]
7-
struct PageViewPerfData
8-
: PageViewData
9-
{
10-
[Description("Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff")]
11-
[CSType("TimeSpan")]
12-
10: string perfTotal;
13-
14-
[Description("Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff")]
15-
[CSType("TimeSpan")]
16-
20: string networkConnect;
17-
18-
[Description("Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff")]
19-
[CSType("TimeSpan")]
20-
30: string sentRequest;
21-
22-
[Description("Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff")]
23-
[CSType("TimeSpan")]
24-
40: string receivedResponse;
25-
26-
[Description("DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff")]
27-
[CSType("TimeSpan")]
28-
50: string domProcessing;
29-
30-
}
1+
import "Domain.bond"
2+
3+
namespace AI
4+
5+
[Description("An instance of PageViewPerf represents: a page view with no performance data, a page view with performance data, or just the performance data of an earlier page request.")]
6+
[Alias("PageViewPerformanceData;PageviewPerformanceData")]
7+
struct PageViewPerfData
8+
: Domain
9+
{
10+
[Description("Schema version")]
11+
10: required int32 ver = 2;
12+
13+
[MaxStringLength("512")]
14+
[Description("Event name. Keep it low cardinality to allow proper grouping and useful metrics.")]
15+
[Question("Why Custom Event name is shorter than Request name or dependency name?")]
16+
20: required string name;
17+
18+
[MaxStringLength("2048")]
19+
[Description("Request URL with all query string parameters")]
20+
30: string url;
21+
22+
[CSType("TimeSpan")]
23+
[Description("Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days.")]
24+
40: string duration;
25+
26+
[MaxStringLength("512")]
27+
[ActAsRequired("Required field for correct correlation.")]
28+
[Description("Identifier of a page view instance. Used for correlation between page view and other telemetry items.")]
29+
50: required string id;
30+
31+
[Description("Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff")]
32+
[CSType("TimeSpan")]
33+
60: string perfTotal;
34+
35+
[Description("Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff")]
36+
[CSType("TimeSpan")]
37+
70: string networkConnect;
38+
39+
[Description("Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff")]
40+
[CSType("TimeSpan")]
41+
80: string sentRequest;
42+
43+
[Description("Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff")]
44+
[CSType("TimeSpan")]
45+
90: string receivedResponse;
46+
47+
[Description("DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff")]
48+
[CSType("TimeSpan")]
49+
100: string domProcessing;
50+
51+
[Description("Collection of custom properties.")]
52+
[MaxKeyLength("150")]
53+
[MaxValueLength("8192")]
54+
100: map<string, string> properties;
55+
56+
[Description("Collection of custom measurements.")]
57+
[MaxKeyLength("150")]
58+
200: map<string, double> measurements;
59+
60+
}

0 commit comments

Comments
 (0)