Skip to content

Commit a910387

Browse files
authored
Merge pull request #16 from microsoft/gz-gh-1203
docs: split example questions and kql code file into 6 files for automation
2 parents 55bab3c + db7dd2a commit a910387

9 files changed

Lines changed: 54 additions & 67 deletions
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
events
2+
| summarize
3+
EventCount = count(),
4+
SpeedMean = round(avg(Speed), 2),
5+
SpeedStdev = round(stdev(Speed), 2),
6+
SpeedMin = round(min(Speed), 1),
7+
SpeedMax = round(max(Speed), 1),
8+
TempMean = round(avg(Temperature), 2),
9+
TempStdev = round(stdev(Temperature), 2),
10+
TempMin = round(min(Temperature), 1),
11+
TempMax = round(max(Temperature), 1),
12+
DefectMean = round(avg(DefectProbability), 4),
13+
DefectStdev = round(stdev(DefectProbability), 4),
14+
DefectMin = round(min(DefectProbability), 4),
15+
DefectMax = round(max(DefectProbability), 4)
16+
by AssetId
17+
| order by AssetId
18+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
events
2+
| summarize
3+
Events = count(),
4+
MinDefect = round(min(DefectProbability), 4),
5+
MaxDefect = round(max(DefectProbability), 4),
6+
MeanDefect = round(avg(DefectProbability), 4),
7+
MedianDefect = round(percentile(DefectProbability, 50), 4),
8+
StdDevDefect = round(stdev(DefectProbability), 4),
9+
P95Defect = round(percentile(DefectProbability, 95), 4),
10+
Above5Percent = countif(DefectProbability > 0.05),
11+
Above10Percent = countif(DefectProbability > 0.10),
12+
Above15Percent = countif(DefectProbability > 0.15)
13+
by AssetId
14+
| extend
15+
MeanPercent = round(MeanDefect * 100, 2),
16+
MedianPercent = round(MedianDefect * 100, 2),
17+
P95Percent = round(P95Defect * 100, 2)
18+
| extend
19+
QualityIssueRate = round(Above5Percent * 100.0 / Events, 1),
20+
HighDefectRate = round(Above10Percent * 100.0 / Events, 1),
21+
CriticalDefectRate = round(Above15Percent * 100.0 / Events, 1)
22+
| order by MeanPercent asc
23+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
events
2+
| summarize
3+
EventCount = count(),
4+
DateFrom = min(Timestamp),
5+
DateTo = max(Timestamp),
6+
UniqueAssets = dcount(AssetId),
7+
AvgSpeed = round(avg(Speed), 1),
8+
AvgTemp = round(avg(Temperature), 1),
9+
AvgDefectRate = round(avg(DefectProbability) * 100, 2)
10+

docs/fabric_data_agent/example_queries.md

Lines changed: 0 additions & 67 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Can you show me the baseline statistics and performance ranges for each asset?
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
What are the detailed defect statistics and quality issue rates by asset?
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Can you give me a high-level overview of our manufacturing data and operations?
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)