I have written a program that uses an Azure API to run queries against the Azure log analytics repository.
The language used to write this query is called Kusto.
I have a lot of Kusto queries that I used directly in my C# code.
Something like this :
Client.ExecuteQuery(@"Heartbeat
| summarize LastCall = max(TimeGenerated) by Computer
| where LastCall < ago(15m)
| take 20");
Some queries are very long and make the code very ugly.
Is there any better and more appropriate way to store these queries say for example in a database that will help to remove them from code.