@azure/synapse-monitoring 1.0.0-beta.2 → 1.0.0-beta.4
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/LICENSE +21 -0
- package/README.md +17 -14
- package/dist/browser/index.d.ts +4 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +11 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/models/index.d.ts +50 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +9 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.d.ts +5 -0
- package/dist/browser/models/mappers.d.ts.map +1 -0
- package/dist/browser/models/mappers.js +162 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/dist/browser/models/parameters.d.ts +9 -0
- package/dist/browser/models/parameters.d.ts.map +1 -0
- package/dist/browser/models/parameters.js +77 -0
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/monitoringClient.d.ts +20 -0
- package/dist/browser/monitoringClient.d.ts.map +1 -0
- package/dist/browser/monitoringClient.js +101 -0
- package/dist/browser/monitoringClient.js.map +1 -0
- package/dist/browser/operations/index.d.ts +2 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +9 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/dist/browser/operations/monitoring.d.ts +23 -0
- package/dist/browser/operations/monitoring.d.ts.map +1 -0
- package/dist/browser/operations/monitoring.js +69 -0
- package/dist/browser/operations/monitoring.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +2 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +9 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/dist/browser/operationsInterfaces/monitoring.d.ts +15 -0
- package/dist/browser/operationsInterfaces/monitoring.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/monitoring.js +9 -0
- package/dist/browser/operationsInterfaces/monitoring.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/tracing.d.ts +2 -0
- package/dist/browser/tracing.d.ts.map +1 -0
- package/dist/browser/tracing.js +14 -0
- package/dist/browser/tracing.js.map +1 -0
- package/dist/commonjs/index.d.ts +4 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +16 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +50 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +10 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +5 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +165 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +9 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +80 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/monitoringClient.d.ts +20 -0
- package/dist/commonjs/monitoringClient.d.ts.map +1 -0
- package/dist/commonjs/monitoringClient.js +106 -0
- package/dist/commonjs/monitoringClient.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +2 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +12 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/monitoring.d.ts +23 -0
- package/dist/commonjs/operations/monitoring.d.ts.map +1 -0
- package/dist/commonjs/operations/monitoring.js +74 -0
- package/dist/commonjs/operations/monitoring.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +2 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +12 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/monitoring.d.ts +15 -0
- package/dist/commonjs/operationsInterfaces/monitoring.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/monitoring.js +10 -0
- package/dist/commonjs/operationsInterfaces/monitoring.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/tracing.d.ts +2 -0
- package/dist/commonjs/tracing.d.ts.map +1 -0
- package/dist/commonjs/tracing.js +17 -0
- package/dist/commonjs/tracing.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models/index.d.ts +50 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +5 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +162 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +9 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +77 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/monitoringClient.d.ts +20 -0
- package/dist/esm/monitoringClient.d.ts.map +1 -0
- package/dist/esm/monitoringClient.js +101 -0
- package/dist/esm/monitoringClient.js.map +1 -0
- package/dist/esm/operations/index.d.ts +2 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +9 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/monitoring.d.ts +23 -0
- package/dist/esm/operations/monitoring.d.ts.map +1 -0
- package/dist/esm/operations/monitoring.js +69 -0
- package/dist/esm/operations/monitoring.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +2 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +9 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/monitoring.d.ts +15 -0
- package/dist/esm/operationsInterfaces/monitoring.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/monitoring.js +9 -0
- package/dist/esm/operationsInterfaces/monitoring.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/tracing.d.ts +2 -0
- package/dist/esm/tracing.d.ts.map +1 -0
- package/dist/esm/tracing.js +14 -0
- package/dist/esm/tracing.js.map +1 -0
- package/dist/react-native/index.d.ts +4 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +11 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/models/index.d.ts +50 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +9 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +5 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +162 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +9 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +77 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/monitoringClient.d.ts +20 -0
- package/dist/react-native/monitoringClient.d.ts.map +1 -0
- package/dist/react-native/monitoringClient.js +101 -0
- package/dist/react-native/monitoringClient.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +2 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +9 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/monitoring.d.ts +23 -0
- package/dist/react-native/operations/monitoring.d.ts.map +1 -0
- package/dist/react-native/operations/monitoring.js +69 -0
- package/dist/react-native/operations/monitoring.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +2 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +9 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/monitoring.d.ts +15 -0
- package/dist/react-native/operationsInterfaces/monitoring.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/monitoring.js +9 -0
- package/dist/react-native/operationsInterfaces/monitoring.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/tracing.d.ts +2 -0
- package/dist/react-native/tracing.d.ts.map +1 -0
- package/dist/react-native/tracing.js +14 -0
- package/dist/react-native/tracing.js.map +1 -0
- package/package.json +82 -50
- package/CHANGELOG.md +0 -9
- package/dist/index.js +0 -2587
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/rollup.config.js +0 -41
- package/tsconfig.json +0 -20
- package/types/synapse-monitoring.d.ts +0 -120
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.MonitoringClient = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
13
|
+
const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
|
|
14
|
+
const index_js_1 = require("./operations/index.js");
|
|
15
|
+
class MonitoringClient extends coreClient.ServiceClient {
|
|
16
|
+
endpoint;
|
|
17
|
+
apiVersion;
|
|
18
|
+
/**
|
|
19
|
+
* Initializes a new instance of the MonitoringClient class.
|
|
20
|
+
* @param credentials - Subscription credentials which uniquely identify client subscription.
|
|
21
|
+
* @param endpoint - The workspace development endpoint, for example
|
|
22
|
+
* https://myworkspace.dev.azuresynapse.net.
|
|
23
|
+
* @param options - The parameter options
|
|
24
|
+
*/
|
|
25
|
+
constructor(credentials, endpoint, options) {
|
|
26
|
+
if (credentials === undefined) {
|
|
27
|
+
throw new Error("'credentials' cannot be null");
|
|
28
|
+
}
|
|
29
|
+
if (endpoint === undefined) {
|
|
30
|
+
throw new Error("'endpoint' cannot be null");
|
|
31
|
+
}
|
|
32
|
+
// Initializing default values for options
|
|
33
|
+
if (!options) {
|
|
34
|
+
options = {};
|
|
35
|
+
}
|
|
36
|
+
const defaults = {
|
|
37
|
+
requestContentType: "application/json; charset=utf-8",
|
|
38
|
+
credential: credentials,
|
|
39
|
+
};
|
|
40
|
+
const packageDetails = `azsdk-js-synapse-monitoring/1.0.0-beta.3`;
|
|
41
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
42
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
43
|
+
: `${packageDetails}`;
|
|
44
|
+
if (!options.credentialScopes) {
|
|
45
|
+
options.credentialScopes = ["https://dev.azuresynapse.net/.default"];
|
|
46
|
+
}
|
|
47
|
+
const optionsWithDefaults = {
|
|
48
|
+
...defaults,
|
|
49
|
+
...options,
|
|
50
|
+
userAgentOptions: {
|
|
51
|
+
userAgentPrefix,
|
|
52
|
+
},
|
|
53
|
+
baseUri: options.endpoint ?? options.baseUri ?? "{endpoint}",
|
|
54
|
+
};
|
|
55
|
+
super(optionsWithDefaults);
|
|
56
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
57
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
58
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
59
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
60
|
+
this.pipeline.removePolicy({
|
|
61
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
62
|
+
});
|
|
63
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
64
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
65
|
+
challengeCallbacks: {
|
|
66
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
67
|
+
},
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
// Parameter assignments
|
|
72
|
+
this.endpoint = endpoint;
|
|
73
|
+
// Assigning values to Constant parameters
|
|
74
|
+
this.apiVersion = options.apiVersion || "2020-12-01";
|
|
75
|
+
this.monitoring = new index_js_1.MonitoringImpl(this);
|
|
76
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
77
|
+
}
|
|
78
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
79
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
80
|
+
if (!apiVersion) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const apiVersionPolicy = {
|
|
84
|
+
name: "CustomApiVersionPolicy",
|
|
85
|
+
async sendRequest(request, next) {
|
|
86
|
+
const param = request.url.split("?");
|
|
87
|
+
if (param.length > 1) {
|
|
88
|
+
const newParams = param[1].split("&").map((item) => {
|
|
89
|
+
if (item.indexOf("api-version") > -1) {
|
|
90
|
+
return "api-version=" + apiVersion;
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
return item;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
97
|
+
}
|
|
98
|
+
return next(request);
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
102
|
+
}
|
|
103
|
+
monitoring;
|
|
104
|
+
}
|
|
105
|
+
exports.MonitoringClient = MonitoringClient;
|
|
106
|
+
//# sourceMappingURL=monito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YAC9B,KAAK,CAAC,WAAW,CAAC,OAAwB,EAAE,IAAiB;gBAC3D,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;CACxB;AA3GD,4CA2GC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport type { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport type * as coreAuth from \"@azure/core-auth\";\nimport { MonitoringImpl } from \"./operations/index.js\";\nimport type { Monitoring } from \"./operationsInterfaces/index.js\";\nimport type { MonitoringClientOptionalParams } from \"./models/index.js\";\n\nexport class MonitoringClient extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the MonitoringClient class.\n * @param credentials - Subscription credentials which uniquely identify client subscription.\n * @param endpoint - The workspace development endpoint, for example\n * https://myworkspace.dev.azuresynapse.net.\n * @param options - The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n endpoint: string,\n options?: MonitoringClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: MonitoringClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-synapse-monitoring/1.0.0-beta.3`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://dev.azuresynapse.net/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n baseUri: options.endpoint ?? options.baseUri ?? \"{endpoint}\",\n };\n super(optionsWithDefaults);\n\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n if (!bearerTokenAuthenticationPolicyFound) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n scopes: `${optionsWithDefaults.baseUri}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n }\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2020-12-01\";\n this.monitoring = new MonitoringImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string): void {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n monitoring: Monitoring;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
const tslib_1 = require("tslib");
|
|
11
|
+
tslib_1.__exportStar(require("./monitoring.js"), exports);
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,0DAAgC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./monitoring.js\";\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Monitoring } from "../operationsInterfaces/index.js";
|
|
2
|
+
import type { MonitoringClient } from "../monitoringClient.js";
|
|
3
|
+
import type { MonitoringGetSparkJobListOptionalParams, MonitoringGetSparkJobListResponse, MonitoringGetSqlJobQueryStringOptionalParams, MonitoringGetSqlJobQueryStringResponse } from "../models/index.js";
|
|
4
|
+
/** Class containing Monitoring operations. */
|
|
5
|
+
export declare class MonitoringImpl implements Monitoring {
|
|
6
|
+
private readonly client;
|
|
7
|
+
/**
|
|
8
|
+
* Initialize a new instance of the class Monitoring class.
|
|
9
|
+
* @param client - Reference to the service client
|
|
10
|
+
*/
|
|
11
|
+
constructor(client: MonitoringClient);
|
|
12
|
+
/**
|
|
13
|
+
* Get list of spark applications for the workspace.
|
|
14
|
+
* @param options - The options parameters.
|
|
15
|
+
*/
|
|
16
|
+
getSparkJobList(options?: MonitoringGetSparkJobListOptionalParams): Promise<MonitoringGetSparkJobListResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get SQL OD/DW Query for the workspace.
|
|
19
|
+
* @param options - The options parameters.
|
|
20
|
+
*/
|
|
21
|
+
getSqlJobQueryString(options?: MonitoringGetSqlJobQueryStringOptionalParams): Promise<MonitoringGetSqlJobQueryStringResponse>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=monitoring.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitoring.d.ts","sourceRoot":"","sources":["../../../src/operations/monitoring.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EACV,uCAAuC,EACvC,iCAAiC,EACjC,4CAA4C,EAC5C,sCAAsC,EACvC,MAAM,oBAAoB,CAAC;AAgC5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAE1C;;;OAGG;gBACS,MAAM,EAAE,gBAAgB;IAIpC;;;OAGG;IACG,eAAe,CACnB,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC;IAa7C;;;OAGG;IACG,oBAAoB,CACxB,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,sCAAsC,CAAC;CAYnD"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.MonitoringImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const tracing_js_1 = require("../tracing.js");
|
|
13
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
14
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
15
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
16
|
+
// Operation Specifications
|
|
17
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
18
|
+
const getSparkJobListOperationSpec = {
|
|
19
|
+
path: "/monitoring/workloadTypes/spark/Applications",
|
|
20
|
+
httpMethod: "GET",
|
|
21
|
+
responses: {
|
|
22
|
+
200: {
|
|
23
|
+
bodyMapper: Mappers.SparkJobListViewResponse,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
queryParameters: [Parameters.apiVersion],
|
|
27
|
+
urlParameters: [Parameters.endpoint],
|
|
28
|
+
headerParameters: [Parameters.accept, Parameters.xMsClientRequestId],
|
|
29
|
+
serializer,
|
|
30
|
+
};
|
|
31
|
+
const getSqlJobQueryStringOperationSpec = {
|
|
32
|
+
path: "/monitoring/workloadTypes/sql/querystring",
|
|
33
|
+
httpMethod: "GET",
|
|
34
|
+
responses: {
|
|
35
|
+
200: {
|
|
36
|
+
bodyMapper: Mappers.SqlQueryStringDataModel,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.orderby, Parameters.skip],
|
|
40
|
+
urlParameters: [Parameters.endpoint],
|
|
41
|
+
headerParameters: [Parameters.accept, Parameters.xMsClientRequestId],
|
|
42
|
+
serializer,
|
|
43
|
+
};
|
|
44
|
+
/** Class containing Monitoring operations. */
|
|
45
|
+
class MonitoringImpl {
|
|
46
|
+
client;
|
|
47
|
+
/**
|
|
48
|
+
* Initialize a new instance of the class Monitoring class.
|
|
49
|
+
* @param client - Reference to the service client
|
|
50
|
+
*/
|
|
51
|
+
constructor(client) {
|
|
52
|
+
this.client = client;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Get list of spark applications for the workspace.
|
|
56
|
+
* @param options - The options parameters.
|
|
57
|
+
*/
|
|
58
|
+
async getSparkJobList(options) {
|
|
59
|
+
return tracing_js_1.tracingClient.withSpan("MonitoringClient.getSparkJobList", options ?? {}, async (updatedOptions) => {
|
|
60
|
+
return this.client.sendOperationRequest({ updatedOptions }, getSparkJobListOperationSpec);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Get SQL OD/DW Query for the workspace.
|
|
65
|
+
* @param options - The options parameters.
|
|
66
|
+
*/
|
|
67
|
+
async getSqlJobQueryString(options) {
|
|
68
|
+
return tracing_js_1.tracingClient.withSpan("MonitoringClient.getSqlJobQueryString", options ?? {}, async (updatedOptions) => {
|
|
69
|
+
return this.client.sendOperationRequest({ updatedOptions }, getSqlJobQueryStringOperationSpec);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.MonitoringImpl = MonitoringImpl;
|
|
74
|
+
//# sourceMappingURL=monitoring.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitoring.js","sourceRoot":"","sources":["../../../src/operations/monitoring.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAE9C,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAStD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,4BAA4B,GAA6B;IAC7D,IAAI,EAAE,8CAA8C;IACpD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,kBAAkB,CAAC;IACpE,UAAU;CACX,CAAC;AACF,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EAAE,2CAA2C;IACjD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC;IAChG,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,kBAAkB,CAAC;IACpE,UAAU;CACX,CAAC;AAEF,8CAA8C;AAC9C,MAAa,cAAc;IACR,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,eAAe,CACnB,OAAiD;QAEjD,OAAO,0BAAa,CAAC,QAAQ,CAC3B,kCAAkC,EAClC,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,cAAc,EAAE,EAClB,4BAA4B,CACiB,CAAC;QAClD,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,oBAAoB,CACxB,OAAsD;QAEtD,OAAO,0BAAa,CAAC,QAAQ,CAC3B,uCAAuC,EACvC,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,cAAc,EAAE,EAClB,iCAAiC,CACiB,CAAC;QACvD,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AAhDD,wCAgDC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing.js\";\nimport type { Monitoring } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { MonitoringClient } from \"../monitoringClient.js\";\nimport type {\n MonitoringGetSparkJobListOptionalParams,\n MonitoringGetSparkJobListResponse,\n MonitoringGetSqlJobQueryStringOptionalParams,\n MonitoringGetSqlJobQueryStringResponse,\n} from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getSparkJobListOperationSpec: coreClient.OperationSpec = {\n path: \"/monitoring/workloadTypes/spark/Applications\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SparkJobListViewResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.xMsClientRequestId],\n serializer,\n};\nconst getSqlJobQueryStringOperationSpec: coreClient.OperationSpec = {\n path: \"/monitoring/workloadTypes/sql/querystring\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlQueryStringDataModel,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.orderby, Parameters.skip],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.xMsClientRequestId],\n serializer,\n};\n\n/** Class containing Monitoring operations. */\nexport class MonitoringImpl implements Monitoring {\n private readonly client: MonitoringClient;\n\n /**\n * Initialize a new instance of the class Monitoring class.\n * @param client - Reference to the service client\n */\n constructor(client: MonitoringClient) {\n this.client = client;\n }\n\n /**\n * Get list of spark applications for the workspace.\n * @param options - The options parameters.\n */\n async getSparkJobList(\n options?: MonitoringGetSparkJobListOptionalParams,\n ): Promise<MonitoringGetSparkJobListResponse> {\n return tracingClient.withSpan(\n \"MonitoringClient.getSparkJobList\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n getSparkJobListOperationSpec,\n ) as Promise<MonitoringGetSparkJobListResponse>;\n },\n );\n }\n\n /**\n * Get SQL OD/DW Query for the workspace.\n * @param options - The options parameters.\n */\n async getSqlJobQueryString(\n options?: MonitoringGetSqlJobQueryStringOptionalParams,\n ): Promise<MonitoringGetSqlJobQueryStringResponse> {\n return tracingClient.withSpan(\n \"MonitoringClient.getSqlJobQueryString\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n getSqlJobQueryStringOperationSpec,\n ) as Promise<MonitoringGetSqlJobQueryStringResponse>;\n },\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
const tslib_1 = require("tslib");
|
|
11
|
+
tslib_1.__exportStar(require("./monitoring.js"), exports);
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,0DAAgC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./monitoring.js\";\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MonitoringGetSparkJobListOptionalParams, MonitoringGetSparkJobListResponse, MonitoringGetSqlJobQueryStringOptionalParams, MonitoringGetSqlJobQueryStringResponse } from "../models/index.js";
|
|
2
|
+
/** Interface representing a Monitoring. */
|
|
3
|
+
export interface Monitoring {
|
|
4
|
+
/**
|
|
5
|
+
* Get list of spark applications for the workspace.
|
|
6
|
+
* @param options - The options parameters.
|
|
7
|
+
*/
|
|
8
|
+
getSparkJobList(options?: MonitoringGetSparkJobListOptionalParams): Promise<MonitoringGetSparkJobListResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Get SQL OD/DW Query for the workspace.
|
|
11
|
+
* @param options - The options parameters.
|
|
12
|
+
*/
|
|
13
|
+
getSqlJobQueryString(options?: MonitoringGetSqlJobQueryStringOptionalParams): Promise<MonitoringGetSqlJobQueryStringResponse>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=monitoring.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitoring.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/monitoring.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,uCAAuC,EACvC,iCAAiC,EACjC,4CAA4C,EAC5C,sCAAsC,EACvC,MAAM,oBAAoB,CAAC;AAE5B,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,eAAe,CACb,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC,CAAC;IAC9C;;;OAGG;IACH,oBAAoB,CAClB,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,sCAAsC,CAAC,CAAC;CACpD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
//# sourceMappingURL=monitoring.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitoring.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/monitoring.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type {\n MonitoringGetSparkJobListOptionalParams,\n MonitoringGetSparkJobListResponse,\n MonitoringGetSqlJobQueryStringOptionalParams,\n MonitoringGetSqlJobQueryStringResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a Monitoring. */\nexport interface Monitoring {\n /**\n * Get list of spark applications for the workspace.\n * @param options - The options parameters.\n */\n getSparkJobList(\n options?: MonitoringGetSparkJobListOptionalParams,\n ): Promise<MonitoringGetSparkJobListResponse>;\n /**\n * Get SQL OD/DW Query for the workspace.\n * @param options - The options parameters.\n */\n getSqlJobQueryString(\n options?: MonitoringGetSqlJobQueryStringOptionalParams,\n ): Promise<MonitoringGetSqlJobQueryStringResponse>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../src/tracing.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,aAAa,6CAIxB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.tracingClient = void 0;
|
|
11
|
+
const core_tracing_1 = require("@azure/core-tracing");
|
|
12
|
+
exports.tracingClient = (0, core_tracing_1.createTracingClient)({
|
|
13
|
+
namespace: "Azure.Synapse.Monitoring",
|
|
14
|
+
packageName: "@azure/synapse-monitoring",
|
|
15
|
+
packageVersion: "1.0.0-beta.3",
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=tracing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../src/tracing.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,sDAA0D;AAE7C,QAAA,aAAa,GAAG,IAAA,kCAAmB,EAAC;IAC/C,SAAS,EAAE,0BAA0B;IACrC,WAAW,EAAE,2BAA2B;IACxC,cAAc,EAAE,cAAc;CAC/B,CAAC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { createTracingClient } from \"@azure/core-tracing\";\n\nexport const tracingClient = createTracingClient({\n namespace: \"Azure.Synapse.Monitoring\",\n packageName: \"@azure/synapse-monitoring\",\n packageVersion: \"1.0.0-beta.3\",\n});\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.52.10"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./models/index.js";
|
|
9
|
+
export { MonitoringClient } from "./monitoringClient.js";
|
|
10
|
+
export * from "./operationsInterfaces/index.js";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./models/index.js\";\nexport { MonitoringClient } from \"./monitoringClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type * as coreClient from "@azure/core-client";
|
|
2
|
+
export interface SparkJobListViewResponse {
|
|
3
|
+
nJobs?: number;
|
|
4
|
+
sparkJobs?: SparkJob[];
|
|
5
|
+
}
|
|
6
|
+
export interface SparkJob {
|
|
7
|
+
state?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
submitter?: string;
|
|
10
|
+
compute?: string;
|
|
11
|
+
sparkApplicationId?: string;
|
|
12
|
+
livyId?: string;
|
|
13
|
+
timing?: string[];
|
|
14
|
+
sparkJobDefinition?: string;
|
|
15
|
+
pipeline?: SparkJob[];
|
|
16
|
+
jobType?: string;
|
|
17
|
+
submitTime?: Date;
|
|
18
|
+
endTime?: Date;
|
|
19
|
+
queuedDuration?: string;
|
|
20
|
+
runningDuration?: string;
|
|
21
|
+
totalDuration?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface SqlQueryStringDataModel {
|
|
24
|
+
query?: string;
|
|
25
|
+
}
|
|
26
|
+
/** Optional parameters. */
|
|
27
|
+
export interface MonitoringGetSparkJobListOptionalParams extends coreClient.OperationOptions {
|
|
28
|
+
/** Can provide a guid, which is helpful for debugging and to provide better customer support */
|
|
29
|
+
xMsClientRequestId?: string;
|
|
30
|
+
}
|
|
31
|
+
/** Contains response data for the getSparkJobList operation. */
|
|
32
|
+
export type MonitoringGetSparkJobListResponse = SparkJobListViewResponse;
|
|
33
|
+
/** Optional parameters. */
|
|
34
|
+
export interface MonitoringGetSqlJobQueryStringOptionalParams extends coreClient.OperationOptions {
|
|
35
|
+
/** Can provide a guid, which is helpful for debugging and to provide better customer support */
|
|
36
|
+
xMsClientRequestId?: string;
|
|
37
|
+
filter?: string;
|
|
38
|
+
orderby?: string;
|
|
39
|
+
skip?: string;
|
|
40
|
+
}
|
|
41
|
+
/** Contains response data for the getSqlJobQueryString operation. */
|
|
42
|
+
export type MonitoringGetSqlJobQueryStringResponse = SqlQueryStringDataModel;
|
|
43
|
+
/** Optional parameters. */
|
|
44
|
+
export interface MonitoringClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
45
|
+
/** Api Version */
|
|
46
|
+
apiVersion?: string;
|
|
47
|
+
/** Overrides client endpoint. */
|
|
48
|
+
endpoint?: string;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEtD,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI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EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type * as coreClient from \"@azure/core-client\";\n\nexport interface SparkJobListViewResponse {\n nJobs?: number;\n sparkJobs?: SparkJob[];\n}\n\nexport interface SparkJob {\n state?: string;\n name?: string;\n submitter?: string;\n compute?: string;\n sparkApplicationId?: string;\n livyId?: string;\n timing?: string[];\n sparkJobDefinition?: string;\n pipeline?: SparkJob[];\n jobType?: string;\n submitTime?: Date;\n endTime?: Date;\n queuedDuration?: string;\n runningDuration?: string;\n totalDuration?: string;\n}\n\nexport interface SqlQueryStringDataModel {\n query?: string;\n}\n\n/** Optional parameters. */\nexport interface MonitoringGetSparkJobListOptionalParams extends coreClient.OperationOptions {\n /** Can provide a guid, which is helpful for debugging and to provide better customer support */\n xMsClientRequestId?: string;\n}\n\n/** Contains response data for the getSparkJobList operation. */\nexport type MonitoringGetSparkJobListResponse = SparkJobListViewResponse;\n\n/** Optional parameters. */\nexport interface MonitoringGetSqlJobQueryStringOptionalParams extends coreClient.OperationOptions {\n /** Can provide a guid, which is helpful for debugging and to provide better customer support */\n xMsClientRequestId?: string;\n filter?: string;\n orderby?: string;\n skip?: string;\n}\n\n/** Contains response data for the getSqlJobQueryString operation. */\nexport type MonitoringGetSqlJobQueryStringResponse = SqlQueryStringDataModel;\n\n/** Optional parameters. */\nexport interface MonitoringClientOptionalParams extends coreClient.ServiceClientOptions {\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type * as coreClient from "@azure/core-client";
|
|
2
|
+
export declare const SparkJobListViewResponse: coreClient.CompositeMapper;
|
|
3
|
+
export declare const SparkJob: coreClient.CompositeMapper;
|
|
4
|
+
export declare const SqlQueryStringDataModel: coreClient.CompositeMapper;
|
|
5
|
+
//# sourceMappingURL=mappers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEtD,eAAO,MAAM,wBAAwB,EAAE,UAAU,CAAC,eA0BjD,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAAU,CAAC,eAgHjC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,UAAU,CAAC,eAahD,CAAC"}
|