Skip to content

Commit 664c900

Browse files
Add BotQ and KQL query documentation updates
Added an example JSON payload in `botmessage.md` for sending messages to the BotQ queue with parameters like `Count`, `Delay`, and `ThinkTime`. Updated `kql-queries.md` with a new KQL query example for analyzing game-related metrics (`codebreaker.game_moves`) and rendering a time chart. Expanded guidance on using Application Insights for metrics, logs, and custom dimensions.
1 parent 785c2c2 commit 664c900

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

botmessage.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Sending messages with BotQ
2+
3+
With BotQ, this message can be sent to the queue to automatically play games:
4+
5+
```json
6+
{
7+
"Count": 3,
8+
"Delay": 3,
9+
"ThinkTime": 1
10+
}
11+
```

kql-queries.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# KQL
2+
3+
Resource group: codebreakerapp, Logs, do this query:
4+
5+
AppMetrics |
6+
where AppRoleInstance startswith "game" and Name startswith "codebreaker.game_moves"
7+
| make-series Games=any(Sum) default=0 on TimeGenerated from ago(4h) to now() step 10min by AppRoleInstance
8+
| render timechart
9+
10+
Application Insights
11+
12+
Metrics, select the scope of the subscription, App Insights
13+
14+
Select metrics for charts
15+
16+
Logs, select table traces
17+
18+
traces
19+
| where customDimensions.EventName == "Response" // application_Version startswith "botq"
20+
21+
custom metrics only available with app insights

0 commit comments

Comments
 (0)