uid: azure-applicationinsights-query summary: *content
Microsoft Azure SDK for Node.js - ApplicationInsightsDataClient
This project provides a Node.js package for accessing Azure. Right now it supports:
- Node.js version 6.x.x or higher
Features
How to Install
npm install azure-applicationinsights-query
How to use
Authentication, client creation and get metrics as an example.
const msRest = ;const ApplicationInsightsDataClient = ;const token = "<access_token>";const creds = token;const subscriptionId = "<Subscription_Id>";const client = creds subscriptionId;const appId = "testappId";const metricId = "requests/count";const timespan = "testtimespan";const interval = "P1Y2M3DT4H5M6S";const aggregation = "min";const segment = "applicationBuild";const top = 1;const orderby = "testorderby";const filter = "testfilter";clientmetrics; ## Related projects - Microsoft Azure SDK for Nodejshttps://github.com/Azure/azure-sdk-for-node)