@azure/synapse-monitoring 1.0.0-alpha.20250221.1 → 1.0.0-alpha.20250225.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -9
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/package.json +13 -11
package/README.md
CHANGED
|
@@ -21,16 +21,21 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
|
|
|
21
21
|
|
|
22
22
|
## Examples
|
|
23
23
|
|
|
24
|
-
```ts
|
|
24
|
+
```ts snippet:ReadmeSampleCreateClient_Node
|
|
25
25
|
import { MonitoringClient } from "@azure/synapse-monitoring";
|
|
26
26
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
const client = new MonitoringClient(
|
|
29
|
+
new DefaultAzureCredential(),
|
|
30
|
+
"https://mysynapse.dev.azuresynapse.net",
|
|
31
|
+
);
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
const sparkJobList = await client.monitoring.getSparkJobList();
|
|
34
|
+
|
|
35
|
+
if (sparkJobList.sparkJobs) {
|
|
36
|
+
for (const sparkJob of sparkJobList.sparkJobs) {
|
|
37
|
+
console.log(`Spark job name: ${sparkJob.name}`);
|
|
38
|
+
}
|
|
34
39
|
}
|
|
35
40
|
```
|
|
36
41
|
|
|
@@ -38,13 +43,11 @@ export async function main(): Promise<void> {
|
|
|
38
43
|
|
|
39
44
|
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
|
|
40
45
|
|
|
41
|
-
|
|
42
|
-
|
|
43
46
|
## Troubleshooting
|
|
44
47
|
|
|
45
48
|
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`:
|
|
46
49
|
|
|
47
|
-
```ts
|
|
50
|
+
```ts snippet:SetLogLevel
|
|
48
51
|
import { setLogLevel } from "@azure/logger";
|
|
49
52
|
|
|
50
53
|
setLogLevel("info");
|
package/package.json
CHANGED
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/synapse/synapse-monitoring/README.md",
|
|
6
6
|
"repository": "github:Azure/azure-sdk-for-js",
|
|
7
7
|
"sdk-type": "client",
|
|
8
|
-
"version": "1.0.0-alpha.
|
|
8
|
+
"version": "1.0.0-alpha.20250225.1",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@azure/core-auth": "^1.9.0",
|
|
11
11
|
"@azure/core-client": "^1.9.2",
|
|
12
|
-
"@azure/core-rest-pipeline": "^1.
|
|
12
|
+
"@azure/core-rest-pipeline": "^1.19.0",
|
|
13
13
|
"@azure/core-tracing": "^1.2.0",
|
|
14
|
-
"tslib": "^2.
|
|
14
|
+
"tslib": "^2.8.1"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"node",
|
|
@@ -34,13 +34,14 @@
|
|
|
34
34
|
"@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
|
|
35
35
|
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
|
|
36
36
|
"@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
|
|
37
|
+
"@azure/logger": "^1.1.4",
|
|
37
38
|
"@types/node": "^18.0.0",
|
|
38
|
-
"@vitest/browser": "^3.0.
|
|
39
|
-
"@vitest/coverage-istanbul": "^3.0.
|
|
39
|
+
"@vitest/browser": "^3.0.6",
|
|
40
|
+
"@vitest/coverage-istanbul": "^3.0.6",
|
|
40
41
|
"eslint": "^9.9.0",
|
|
41
|
-
"playwright": "^1.
|
|
42
|
+
"playwright": "^1.50.1",
|
|
42
43
|
"typescript": "~5.7.2",
|
|
43
|
-
"vitest": "^3.0.
|
|
44
|
+
"vitest": "^3.0.6"
|
|
44
45
|
},
|
|
45
46
|
"bugs": {
|
|
46
47
|
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
|
@@ -70,12 +71,13 @@
|
|
|
70
71
|
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
71
72
|
"unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
|
|
72
73
|
"unit-test:node": "dev-tool run test:vitest",
|
|
73
|
-
"update-snippets": "
|
|
74
|
+
"update-snippets": "dev-tool run update-snippets"
|
|
74
75
|
},
|
|
75
76
|
"sideEffects": false,
|
|
76
77
|
"autoPublish": true,
|
|
77
78
|
"type": "module",
|
|
78
79
|
"tshy": {
|
|
80
|
+
"project": "./tsconfig.src.json",
|
|
79
81
|
"exports": {
|
|
80
82
|
"./package.json": "./package.json",
|
|
81
83
|
".": "./src/index.ts"
|
|
@@ -88,8 +90,7 @@
|
|
|
88
90
|
"browser",
|
|
89
91
|
"react-native"
|
|
90
92
|
],
|
|
91
|
-
"selfLink": false
|
|
92
|
-
"project": "./tsconfig.src.json"
|
|
93
|
+
"selfLink": false
|
|
93
94
|
},
|
|
94
95
|
"browser": "./dist/browser/index.js",
|
|
95
96
|
"exports": {
|
|
@@ -112,5 +113,6 @@
|
|
|
112
113
|
"default": "./dist/commonjs/index.js"
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
|
-
}
|
|
116
|
+
},
|
|
117
|
+
"react-native": "./dist/react-native/index.js"
|
|
116
118
|
}
|