@dynatrace-sdk/client-query 1.2.0 → 1.2.2
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/CHANGELOG.md +21 -8
- package/README.md +12 -41
- package/docs/DOCS.md +237 -801
- package/dynatrace-metadata.json +2 -5
- package/package.json +1 -1
- package/types/packages/client/query/src/lib/apis/query-assistance-api.d.ts +27 -0
- package/types/packages/client/query/src/lib/apis/query-execution-api.d.ts +28 -0
package/dynatrace-metadata.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dynagen": {
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.9",
|
|
4
4
|
"generatedAt": "",
|
|
5
5
|
"template": {
|
|
6
6
|
"name": "@dynatrace-sdk/template-typescript-client",
|
|
7
|
-
"version": "0.17.
|
|
7
|
+
"version": "0.17.4"
|
|
8
8
|
},
|
|
9
9
|
"featureFlags": {
|
|
10
10
|
"typeguards": true
|
|
@@ -14,8 +14,5 @@
|
|
|
14
14
|
"title": "Storage – Query Service",
|
|
15
15
|
"version": "1.1.0",
|
|
16
16
|
"baseUrl": "/platform/storage/query/v1"
|
|
17
|
-
},
|
|
18
|
-
"docs": {
|
|
19
|
-
"title": "Storage – Query Service"
|
|
20
17
|
}
|
|
21
18
|
}
|
package/package.json
CHANGED
|
@@ -25,7 +25,16 @@ export declare class QueryAssistanceClient {
|
|
|
25
25
|
*
|
|
26
26
|
* Verifies the supplied query string and other query parameters for lack of any errors, but without actually
|
|
27
27
|
* submitting the query for execution.
|
|
28
|
+
*
|
|
28
29
|
* @returns Supplied query and parameters were verified.
|
|
30
|
+
*
|
|
31
|
+
* @example <caption>Code example</caption>
|
|
32
|
+
* import { queryAssistanceClient } from "@dynatrace-sdk/client-query";
|
|
33
|
+
*
|
|
34
|
+
* const data = await queryAssistanceClient.queryVerify({
|
|
35
|
+
* authorization: "...",
|
|
36
|
+
* body: {} as VerifyRequest,
|
|
37
|
+
* });
|
|
29
38
|
*/
|
|
30
39
|
queryVerify(config: {
|
|
31
40
|
body: VerifyRequest;
|
|
@@ -226,7 +235,16 @@ export declare class QueryAssistanceClient {
|
|
|
226
235
|
* * `INFO` is present: usually if `CANONICAL` is not present (e.g. the parameter key for `FILTER a == 1`), there is an info node
|
|
227
236
|
* for `FILTER condition:a == 1`. This `condition:` was neither written by the user nor is it canonical; but it might be
|
|
228
237
|
* used to help the user understand what this parameter means.
|
|
238
|
+
*
|
|
229
239
|
* @returns A node containing more nodes, a node offering different (semantically equivalent) versions of the query parts, or a terminal node that shows the canonical form.
|
|
240
|
+
*
|
|
241
|
+
* @example <caption>Code example</caption>
|
|
242
|
+
* import { queryAssistanceClient } from "@dynatrace-sdk/client-query";
|
|
243
|
+
*
|
|
244
|
+
* const data = await queryAssistanceClient.queryParse({
|
|
245
|
+
* authorization: "...",
|
|
246
|
+
* body: {} as ParseRequest,
|
|
247
|
+
* });
|
|
230
248
|
*/
|
|
231
249
|
queryParse(config: {
|
|
232
250
|
body: ParseRequest;
|
|
@@ -271,7 +289,16 @@ export declare class QueryAssistanceClient {
|
|
|
271
289
|
*
|
|
272
290
|
* The `type` helps to treat specific parts of the suggestion different to others; either by a different visualization,
|
|
273
291
|
* a link to docs, etc.
|
|
292
|
+
*
|
|
274
293
|
* @returns A list of structured autocomplete suggestions.
|
|
294
|
+
*
|
|
295
|
+
* @example <caption>Code example</caption>
|
|
296
|
+
* import { queryAssistanceClient } from "@dynatrace-sdk/client-query";
|
|
297
|
+
*
|
|
298
|
+
* const data = await queryAssistanceClient.queryAutocomplete({
|
|
299
|
+
* authorization: "...",
|
|
300
|
+
* body: {} as AutocompleteRequest,
|
|
301
|
+
* });
|
|
275
302
|
*/
|
|
276
303
|
queryAutocomplete(config: {
|
|
277
304
|
body: AutocompleteRequest;
|
|
@@ -48,7 +48,17 @@ export declare class QueryExecutionClient {
|
|
|
48
48
|
* the new record field types will be placed.
|
|
49
49
|
* It is guaranteed that every field of every record will have a corresponding type.
|
|
50
50
|
* **Clients should always take the included types into account when consuming records!**
|
|
51
|
+
*
|
|
51
52
|
* @returns The current status and results of the supplied query.
|
|
53
|
+
*
|
|
54
|
+
* @example <caption>Code example</caption>
|
|
55
|
+
* import { queryExecutionClient } from "@dynatrace-sdk/client-query";
|
|
56
|
+
*
|
|
57
|
+
* const data = await queryExecutionClient.queryPoll({
|
|
58
|
+
* requestToken: "...",
|
|
59
|
+
* requestTimeoutMilliseconds: 60,
|
|
60
|
+
* enrich: "metric-metadata",
|
|
61
|
+
* });
|
|
52
62
|
*/
|
|
53
63
|
queryPoll(config: {
|
|
54
64
|
/** The request-token of the query. */ requestToken: string;
|
|
@@ -94,7 +104,17 @@ export declare class QueryExecutionClient {
|
|
|
94
104
|
* the new record field types will be placed.
|
|
95
105
|
* It is guaranteed that every field of every record will have a corresponding type.
|
|
96
106
|
* **Clients should always take the included types into account when consuming records!**
|
|
107
|
+
*
|
|
97
108
|
* @returns The final status and results of the supplied query if it finished within a supplied requestTimeoutMilliseconds. | The status of the query to start.
|
|
109
|
+
*
|
|
110
|
+
* @example <caption>Code example</caption>
|
|
111
|
+
* import { queryExecutionClient } from "@dynatrace-sdk/client-query";
|
|
112
|
+
*
|
|
113
|
+
* const data = await queryExecutionClient.queryExecute({
|
|
114
|
+
* enrich: "metric-metadata",
|
|
115
|
+
* authorization: "...",
|
|
116
|
+
* body: {} as ExecuteRequest,
|
|
117
|
+
* });
|
|
98
118
|
*/
|
|
99
119
|
queryExecute(config: {
|
|
100
120
|
body: ExecuteRequest;
|
|
@@ -139,7 +159,15 @@ export declare class QueryExecutionClient {
|
|
|
139
159
|
* the new record field types will be placed.
|
|
140
160
|
* It is guaranteed that every field of every record will have a corresponding type.
|
|
141
161
|
* **Clients should always take the included types into account when consuming records!**
|
|
162
|
+
*
|
|
142
163
|
* @returns The query already finished.
|
|
164
|
+
*
|
|
165
|
+
* @example <caption>Code example</caption>
|
|
166
|
+
* import { queryExecutionClient } from "@dynatrace-sdk/client-query";
|
|
167
|
+
*
|
|
168
|
+
* const data = await queryExecutionClient.queryCancel({
|
|
169
|
+
* requestToken: "...",
|
|
170
|
+
* });
|
|
143
171
|
*/
|
|
144
172
|
queryCancel(config: {
|
|
145
173
|
/** The request-token of the query. */ requestToken: string;
|