- Add KB Statistics keywords for Qdrant vector database monitoring: KB STATISTICS, KB COLLECTION STATS, KB DOCUMENTS COUNT, KB DOCUMENTS ADDED SINCE, KB LIST COLLECTIONS, KB STORAGE SIZE - Add comprehensive infrastructure documentation: - Scaling and load balancing with LXC containers - Infrastructure design with encryption, sharding strategies - Observ
13 lines
583 B
QBasic
13 lines
583 B
QBasic
SET SCHEDULE "1 * * * * *"
|
|
|
|
billing = FIND "Orders"
|
|
|
|
' Monthly consumption
|
|
data = SELECT SUM(UnitPrice * Quantity) as Value, MONTH(OrderDate)+'/'+YEAR(OrderDate) from billing GROUP BY MONTH(OrderDate), YEAR(OrderDate)
|
|
img = CHART "timeseries", data
|
|
SEND FILE img, "Monthly Consumption"
|
|
|
|
' Product Category
|
|
data = SELECT SUM(UnitPrice * Quantity) as Value, CategoryName from billing JOIN Products ON billing.ProductID = Products.ProductID JOIN Categories ON Products.CategoryID = Categories.CategoryID GROUP BY CategoryName
|
|
img = CHART "donut", data
|
|
SEND FILE img, "Product Category"
|