@azure/arm-newrelicobservability
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Azure NewRelicObservability client library for JavaScript

This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure NewRelicObservability client.

Source code | Package (NPM) | API reference documentation | Samples

Getting started

Currently supported environments

See our support policy for more details.

Prerequisites

Install the @azure/arm-newrelicobservability package

Install the Azure NewRelicObservability client library for JavaScript with npm:

npm install @azure/arm-newrelicobservability

Create and authenticate a NewRelicObservability

To create a client object to access the Azure NewRelicObservability API, you will need the endpoint of your Azure NewRelicObservability resource and a credential. The Azure NewRelicObservability client can use Azure Active Directory credentials to authenticate. You can find the endpoint for your Azure NewRelicObservability resource in the Azure Portal.

You can authenticate with Azure Active Directory using a credential from the @azure/identity library or an existing AAD Token.

To use the DefaultAzureCredential provider shown below, or other credential providers provided with the Azure SDK, please install the @azure/identity package:

npm install @azure/identity

You will also need to register a new AAD application and grant access to Azure NewRelicObservability by assigning the suitable role to your service principal (note: roles such as "Owner" will not grant the necessary permissions). Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET.

For more information about how to create an Azure AD Application check out this guide.

const { NewRelicObservability } = require("@azure/arm-newrelicobservability");
const { DefaultAzureCredential } = require("@azure/identity");
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new NewRelicObservability(new DefaultAzureCredential(), subscriptionId);

// For client-side applications running in the browser, use this code instead:
// const credential = new InteractiveBrowserCredential({
//   tenantId: "<YOUR_TENANT_ID>",
//   clientId: "<YOUR_CLIENT_ID>"
// });
// const client = new NewRelicObservability(credential, subscriptionId);

JavaScript Bundle

To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our bundling documentation.

Key concepts

NewRelicObservability

NewRelicObservability is the primary interface for developers using the Azure NewRelicObservability client library. Explore the methods on this client object to understand the different features of the Azure NewRelicObservability service that you can access.

Troubleshooting

Logging

Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the AZURE_LOG_LEVEL environment variable to info. Alternatively, logging can be enabled at runtime by calling setLogLevel in the @azure/logger:

const { setLogLevel } = require("@azure/logger");
setLogLevel("info");

For more detailed instructions on how to enable logs, you can look at the @azure/logger package docs.

Next steps

Please take a look at the samples directory for detailed examples on how to use this library.

Contributing

If you'd like to contribute to this library, please read the contributing guide to learn more about how to build and test the code.

Related projects

Impressions

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.062latest
1.1.1-alpha.20241030.10dev

Version History

VersionDownloads (Last 7 Days)Published
1.1.1-alpha.20241030.10
1.1.1-alpha.20241029.145
1.1.1-alpha.20241028.147
1.1.1-alpha.20241025.151
1.1.1-alpha.20241024.151
1.1.1-alpha.20241023.151
1.1.1-alpha.20241022.15
1.1.1-alpha.20241021.14
1.1.1-alpha.20241018.12
1.1.1-alpha.20241017.12
1.1.1-alpha.20241016.13
1.1.1-alpha.20241015.12
1.1.1-alpha.20241014.12
1.1.1-alpha.20241011.12
1.1.1-alpha.20241010.12
1.1.1-alpha.20241009.11
1.1.1-alpha.20241008.11
1.1.1-alpha.20241007.11
1.1.1-alpha.20241004.14
1.1.1-alpha.20241003.11
1.1.1-alpha.20241002.11
1.1.1-alpha.20241001.11
1.1.1-alpha.20240930.11
1.1.1-alpha.20240927.11
1.1.1-alpha.20240926.11
1.1.1-alpha.20240925.11
1.1.1-alpha.20240924.11
1.1.1-alpha.20240920.11
1.1.1-alpha.20240919.11
1.1.1-alpha.20240918.11
1.1.1-alpha.20240917.11
1.1.1-alpha.20240916.11
1.1.1-alpha.20240913.11
1.1.1-alpha.20240912.11
1.1.1-alpha.20240911.11
1.1.1-alpha.20240910.11
1.1.1-alpha.20240909.11
1.1.1-alpha.20240906.21
1.1.1-alpha.20240905.11
1.1.1-alpha.20240904.11
1.1.1-alpha.20240903.11
1.1.1-alpha.20240902.11
1.1.1-alpha.20240830.11
1.1.1-alpha.20240829.11
1.1.1-alpha.20240828.11
1.1.1-alpha.20240827.11
1.1.1-alpha.20240826.11
1.1.1-alpha.20240823.11
1.1.1-alpha.20240822.11
1.1.1-alpha.20240821.11
1.1.1-alpha.20240820.11
1.1.1-alpha.20240819.11
1.1.1-alpha.20240816.11
1.1.1-alpha.20240815.11
1.1.1-alpha.20240814.11
1.1.1-alpha.20240813.11
1.1.1-alpha.20240812.11
1.1.1-alpha.20240809.11
1.1.1-alpha.20240808.11
1.1.1-alpha.20240807.11
1.1.1-alpha.20240806.11
1.1.1-alpha.20240805.11
1.1.1-alpha.20240802.11
1.1.1-alpha.20240801.11
1.1.1-alpha.20240731.11
1.1.1-alpha.20240730.11
1.1.1-alpha.20240729.11
1.1.1-alpha.20240726.11
1.1.1-alpha.20240725.11
1.1.1-alpha.20240724.11
1.1.1-alpha.20240723.11
1.1.1-alpha.20240722.11
1.1.1-alpha.20240719.11
1.1.1-alpha.20240718.11
1.1.1-alpha.20240717.11
1.1.1-alpha.20240716.11
1.1.1-alpha.20240715.11
1.1.1-alpha.20240712.11
1.1.1-alpha.20240711.11
1.1.1-alpha.20240710.11
1.1.1-alpha.20240709.11
1.1.1-alpha.20240708.11
1.1.1-alpha.20240705.11
1.1.1-alpha.20240704.11
1.1.1-alpha.20240628.11
1.1.1-alpha.20240627.11
1.1.1-alpha.20240626.11
1.1.1-alpha.20240625.11
1.1.1-alpha.20240624.11
1.1.1-alpha.20240621.11
1.1.1-alpha.20240620.11
1.1.1-alpha.20240619.11
1.1.1-alpha.20240618.21
1.1.1-alpha.20240617.11
1.1.1-alpha.20240614.11
1.1.1-alpha.20240613.11
1.1.1-alpha.20240612.51
1.1.1-alpha.20240513.11
1.1.1-alpha.20240510.11
1.1.1-alpha.20240509.11
1.1.1-alpha.20240508.11
1.1.1-alpha.20240507.11
1.1.1-alpha.20240506.11
1.1.1-alpha.20240503.11
1.1.1-alpha.20240502.11
1.1.1-alpha.20240501.11
1.1.1-alpha.20240430.11
1.1.1-alpha.20240429.11
1.1.1-alpha.20240426.11
1.1.1-alpha.20240425.11
1.1.1-alpha.20240424.11
1.1.1-alpha.20240423.11
1.1.1-alpha.20240422.11
1.1.1-alpha.20240418.11
1.1.1-alpha.20240417.11
1.1.1-alpha.20240416.11
1.1.1-alpha.20240415.11
1.1.1-alpha.20240412.11
1.1.1-alpha.20240411.11
1.1.1-alpha.20240410.21
1.1.1-alpha.20240409.11
1.1.0-alpha.20240403.11
1.1.0-alpha.20240402.11
1.1.0-alpha.20240321.32
1.1.062
1.0.1-alpha.20240312.11
1.0.1-alpha.20240307.11
1.0.1-alpha.20240226.11
1.0.1-alpha.20240223.11
1.0.1-alpha.20240222.11
1.0.1-alpha.20240220.11
1.0.1-alpha.20240213.11
1.0.1-alpha.20240206.11
1.0.1-alpha.20240202.11
1.0.1-alpha.20240131.11
1.0.1-alpha.20240126.11
1.0.1-alpha.20240118.11
1.0.1-alpha.20240109.11
1.0.1-alpha.20240108.11
1.0.1-alpha.20231221.11
1.0.1-alpha.20231211.11
1.0.1-alpha.20231113.11
1.0.1-alpha.20231106.11
1.0.1-alpha.20231030.11
1.0.1-alpha.20231023.11
1.0.1-alpha.20231016.11
1.0.1-alpha.20231009.11
1.0.1-alpha.20231002.11
1.0.1-alpha.20230927.21
1.0.1-alpha.20230926.11
1.0.1-alpha.20230922.11
1.0.1-alpha.20230823.11
1.0.1-alpha.20230810.11
1.0.1-alpha.20230724.11
1.0.1-alpha.20230717.11
1.0.1-alpha.20230629.21
1.0.0-alpha.20230626.11
1.0.0-alpha.20230622.11
1.0.0-alpha.20230621.11
1.0.0-alpha.20230619.11
1.0.0-alpha.20230615.11
1.0.0-alpha.20230612.11
1.0.0-alpha.20230530.11
1.0.0-alpha.20230522.31
1.0.04
1.0.0-alpha.20230511.11
1.0.0-alpha.20230501.11
1.0.0-alpha.20230418.11
1.0.0-alpha.20230324.31
1.0.0-beta.12

Package Sidebar

Install

npm i @azure/arm-newrelicobservability

Weekly Downloads

438

Version

1.1.0

License

MIT

Unpacked Size

1.47 MB

Total Files

271

Last publish

Collaborators

  • microsoft1es
  • azure-sdk