appinsights-client

0.0.2 • Public • Published

AppInsights Client for Javascript

A javascript client to query App Insights REST API ...because the LogAnalyticsClient Azure SDK is not easy to use

Install

npm install appinsights-client

Usage

const AppInsightsClient = require('appinsights-client')
const client = AppInsightsClient('AI_APPID', 'AI_APIKEY')
 
const timespan = 'PT12H' // past 12 hrs
const query = 'customEvents | project name,timestamp,operation_Name,cloud_RoleName | limit 2'
 
const objects = await client.query(query, timespan)

API Reference

https://dev.applicationinsights.io/reference

Get an API Key

image

Readme

Keywords

Package Sidebar

Install

npm i appinsights-client

Weekly Downloads

3

Version

0.0.2

License

MIT

Unpacked Size

3.9 kB

Total Files

6

Last publish

Collaborators

  • bradoyler