Socket
Book a DemoInstallSign in
Socket

appinsights-client

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appinsights-client

azure application insights client for javascript

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

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

Keywords

azure

FAQs

Package last updated on 25 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.