azure-sdk-for-js/sdk/synapse/synapse-monitoring
Jeremy Meng a28e8f0795 [EngSys] move to vendored version of cross-env via dev-tool
***NO_CI***

- apply the transformation

- update samples' README
2024-11-02 00:48:06 +00:00
..
review [synapse] Updating to core-tracing 1.0 (#22797) 2022-08-09 17:03:32 +00:00
src [synapse] Updating to core-tracing 1.0 (#22797) 2022-08-09 17:03:32 +00:00
swagger [synapse] Updating to core-tracing 1.0 (#22797) 2022-08-09 17:03:32 +00:00
test/public [EngSys] standardize OSS copyright header 2024-08-27 13:01:38 -07:00
CHANGELOG.md [synapse] Updating to core-tracing 1.0 (#22797) 2022-08-09 17:03:32 +00:00
README.md [engsys] fix broken nodejs lts schedule link 2022-09-19 16:37:05 -04:00
api-extractor.json [Synapse monitoring] Upgrade rollup to v3 (#27372) 2023-10-10 16:26:22 -07:00
assets.json [Synapse monitoring] Upgrade rollup to v3 (#27372) 2023-10-10 16:26:22 -07:00
karma.conf.js [Synapse monitoring] Upgrade rollup to v3 (#27372) 2023-10-10 16:26:22 -07:00
package.json [EngSys] move to vendored version of cross-env via dev-tool 2024-11-02 00:48:06 +00:00
tsconfig.json [EngSys] remove tsconfig.package.json 2024-07-16 13:27:25 +00:00

README.md

Azure Synapse Monitoring client library for JavaScript

This package contains an isomorphic SDK for Monitoring.

Getting started

Install the package

npm install @azure/synapse-monitoring

Currently supported environments

See our support policy for more details.

Key concepts

Examples

import { MonitoringClient } from "@azure/synapse-monitoring";
import { DefaultAzureCredential } from "@azure/identity";

export async function main(): Promise<void> {
  const credential = new DefaultAzureCredential();

  let client = new MonitoringClient(credential, "https://mysynapse.dev.azuresynapse.net");
  let output = await client.monitoring.getSparkJobList();
  console.log("output:", output);
}

Impressions

Troubleshooting

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:

import { setLogLevel } from "@azure/logger";

setLogLevel("info");

Next steps

In the future, you'll find additional code samples here.

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.

Impressions