Because the LogAnalyticsClient Azure SDK is not usable
import { AppInsightsClient } from './AppInsightsClient'
const client = new AppInsightsClient('AI_APPID', 'AI_APIKEY')
const timespan = 'PT4H'
const query = 'customEvents | where name == 'foo' | limit 5'
const objects = await client.query(query, timespan)