block by bradoyler 33cdc3ad5da37972efae80ba28d4ace9

Client for Azure Application Insights REST API

AppInsights Client for Nodejs

Because the LogAnalyticsClient Azure SDK is not usable

Usage

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)

Get an API Key

image

AppInsightsClient.ts