@dynatrace-sdk/client-query 1.1.0 → 1.2.0
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 +6 -0
- package/README.md +1 -1
- package/cjs/index.js +16 -8
- package/docs/DOCS.md +25 -1
- package/dynatrace-metadata.json +2 -2
- package/esm/index.js +16 -8
- package/package.json +1 -1
- package/types/packages/client/query/src/lib/apis/query-assistance-api.d.ts +6 -0
- package/types/packages/client/query/src/lib/apis/query-execution-api.d.ts +6 -0
- package/types/packages/client/query/src/lib/models/grail-metadata.d.ts +4 -0
- package/types/packages/client/query/src/lib/models/grail-metadata.transformation.d.ts +1 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/cjs/index.js
CHANGED
|
@@ -2037,7 +2037,8 @@ function isGrailMetadata(value) {
|
|
|
2037
2037
|
"locale",
|
|
2038
2038
|
"executionTimeMilliseconds",
|
|
2039
2039
|
"notifications",
|
|
2040
|
-
"queryId"
|
|
2040
|
+
"queryId",
|
|
2041
|
+
"sampled"
|
|
2041
2042
|
]);
|
|
2042
2043
|
const hasAdditionalProperties = false;
|
|
2043
2044
|
const requiredKeys = [];
|
|
@@ -2052,7 +2053,8 @@ function isGrailMetadata(value) {
|
|
|
2052
2053
|
"locale",
|
|
2053
2054
|
"executionTimeMilliseconds",
|
|
2054
2055
|
"notifications",
|
|
2055
|
-
"queryId"
|
|
2056
|
+
"queryId",
|
|
2057
|
+
"sampled"
|
|
2056
2058
|
];
|
|
2057
2059
|
const valKeys = new Set(Object.keys(value));
|
|
2058
2060
|
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
@@ -2080,7 +2082,8 @@ function isJson22(value) {
|
|
|
2080
2082
|
"locale",
|
|
2081
2083
|
"executionTimeMilliseconds",
|
|
2082
2084
|
"notifications",
|
|
2083
|
-
"queryId"
|
|
2085
|
+
"queryId",
|
|
2086
|
+
"sampled"
|
|
2084
2087
|
]);
|
|
2085
2088
|
const hasAdditionalProperties = false;
|
|
2086
2089
|
const requiredKeys = [];
|
|
@@ -2095,7 +2098,8 @@ function isJson22(value) {
|
|
|
2095
2098
|
"locale",
|
|
2096
2099
|
"executionTimeMilliseconds",
|
|
2097
2100
|
"notifications",
|
|
2098
|
-
"queryId"
|
|
2101
|
+
"queryId",
|
|
2102
|
+
"sampled"
|
|
2099
2103
|
];
|
|
2100
2104
|
const valKeys = new Set(Object.keys(value));
|
|
2101
2105
|
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
@@ -2114,7 +2118,8 @@ function fromJson22($model) {
|
|
|
2114
2118
|
locale,
|
|
2115
2119
|
executionTimeMilliseconds,
|
|
2116
2120
|
notifications,
|
|
2117
|
-
queryId
|
|
2121
|
+
queryId,
|
|
2122
|
+
sampled
|
|
2118
2123
|
} = $model;
|
|
2119
2124
|
return {
|
|
2120
2125
|
canonicalQuery,
|
|
@@ -2127,7 +2132,8 @@ function fromJson22($model) {
|
|
|
2127
2132
|
locale,
|
|
2128
2133
|
executionTimeMilliseconds,
|
|
2129
2134
|
notifications: notifications !== void 0 && notifications !== null ? notifications?.map((innerValue) => fromJson18(innerValue)) : void 0,
|
|
2130
|
-
queryId
|
|
2135
|
+
queryId,
|
|
2136
|
+
sampled
|
|
2131
2137
|
};
|
|
2132
2138
|
}
|
|
2133
2139
|
function toJson22($model) {
|
|
@@ -2142,7 +2148,8 @@ function toJson22($model) {
|
|
|
2142
2148
|
locale,
|
|
2143
2149
|
executionTimeMilliseconds,
|
|
2144
2150
|
notifications,
|
|
2145
|
-
queryId
|
|
2151
|
+
queryId,
|
|
2152
|
+
sampled
|
|
2146
2153
|
} = $model;
|
|
2147
2154
|
return {
|
|
2148
2155
|
canonicalQuery,
|
|
@@ -2155,7 +2162,8 @@ function toJson22($model) {
|
|
|
2155
2162
|
locale,
|
|
2156
2163
|
executionTimeMilliseconds,
|
|
2157
2164
|
notifications: notifications !== void 0 && notifications !== null ? notifications?.map((innerValue) => toJson18(innerValue)) : void 0,
|
|
2158
|
-
queryId
|
|
2165
|
+
queryId,
|
|
2166
|
+
sampled
|
|
2159
2167
|
};
|
|
2160
2168
|
}
|
|
2161
2169
|
|
package/docs/DOCS.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Storage – Query Service
|
|
2
2
|
|
|
3
|
-
SDK package version **1.
|
|
3
|
+
SDK package version **1.2.0**
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npm install @dynatrace-sdk/client-query
|
|
@@ -24,6 +24,8 @@ import { queryAssistanceClient } from '@dynatrace-sdk/client-query';
|
|
|
24
24
|
|
|
25
25
|
Get a structured list of suggestions for the query at the given position.
|
|
26
26
|
|
|
27
|
+
For information about the required permissions see the [Bucket and table permissions in Grail documentation](https://www.dynatrace.com/support/help/platform/grail/assign-permissions-in-grail).
|
|
28
|
+
|
|
27
29
|
## Overview
|
|
28
30
|
|
|
29
31
|
We provide a list of suggestions that may be used after the cursor position. The following queries will all provide the
|
|
@@ -138,6 +140,8 @@ A list of structured autocomplete suggestions.
|
|
|
138
140
|
|
|
139
141
|
Get a structured tree of the canonical form of the query.
|
|
140
142
|
|
|
143
|
+
For information about the required permissions see the [Bucket and table permissions in Grail documentation](https://www.dynatrace.com/support/help/platform/grail/assign-permissions-in-grail).
|
|
144
|
+
|
|
141
145
|
## Overview
|
|
142
146
|
|
|
143
147
|
Returns the parsed query as a tree, containing the structure of the canonical query. Tree-nodes can contain references to
|
|
@@ -408,6 +412,8 @@ A node containing more nodes, a node offering different (semantically equivalen
|
|
|
408
412
|
|
|
409
413
|
Verifies a query without executing it.
|
|
410
414
|
|
|
415
|
+
For information about the required permissions see the [Bucket and table permissions in Grail documentation](https://www.dynatrace.com/support/help/platform/grail/assign-permissions-in-grail).
|
|
416
|
+
|
|
411
417
|
## Overview
|
|
412
418
|
|
|
413
419
|
Verifies the supplied query string and other query parameters for lack of any errors, but without actually
|
|
@@ -502,6 +508,8 @@ import { queryExecutionClient } from '@dynatrace-sdk/client-query';
|
|
|
502
508
|
|
|
503
509
|
Cancels the query and returns the result if the query was already finished, otherwise discards it.
|
|
504
510
|
|
|
511
|
+
For information about the required permissions see the [Bucket and table permissions in Grail documentation](https://www.dynatrace.com/support/help/platform/grail/assign-permissions-in-grail).
|
|
512
|
+
|
|
505
513
|
### Overview:
|
|
506
514
|
|
|
507
515
|
Cancels a running Grail query and returns a list of records if the query already finished.
|
|
@@ -603,6 +611,8 @@ The query already finished.
|
|
|
603
611
|
|
|
604
612
|
Starts a Grail query.
|
|
605
613
|
|
|
614
|
+
For information about the required permissions see the [Bucket and table permissions in Grail documentation](https://www.dynatrace.com/support/help/platform/grail/assign-permissions-in-grail).
|
|
615
|
+
|
|
606
616
|
### Overview:
|
|
607
617
|
|
|
608
618
|
Executes a query and returns a list of records.
|
|
@@ -729,6 +739,8 @@ The final status and results of the supplied query if it finished within a suppl
|
|
|
729
739
|
|
|
730
740
|
Retrieves query status and final result from Grail.
|
|
731
741
|
|
|
742
|
+
For information about the required permissions see the [Bucket and table permissions in Grail documentation](https://www.dynatrace.com/support/help/platform/grail/assign-permissions-in-grail).
|
|
743
|
+
|
|
732
744
|
### Overview:
|
|
733
745
|
|
|
734
746
|
Polls the status of a Grail query. Returns the status of the query, including the result if the query finished.
|
|
@@ -1824,6 +1836,18 @@ The id of the query
|
|
|
1824
1836
|
|
|
1825
1837
|
|
|
1826
1838
|
|
|
1839
|
+
</div>
|
|
1840
|
+
|
|
1841
|
+
<div class="padding-left--md padding-bottom--md">
|
|
1842
|
+
<strong>sampled</strong>: boolean
|
|
1843
|
+
<div class="padding-left--md">
|
|
1844
|
+
|
|
1845
|
+
True if sampling was used for at least one segment.
|
|
1846
|
+
|
|
1847
|
+
</div>
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
|
|
1827
1851
|
</div>
|
|
1828
1852
|
|
|
1829
1853
|
<div class="padding-left--md padding-bottom--md">
|
package/dynatrace-metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dynagen": {
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.8",
|
|
4
4
|
"generatedAt": "",
|
|
5
5
|
"template": {
|
|
6
6
|
"name": "@dynatrace-sdk/template-typescript-client",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"spec": {
|
|
14
14
|
"title": "Storage – Query Service",
|
|
15
|
-
"version": "1.
|
|
15
|
+
"version": "1.1.0",
|
|
16
16
|
"baseUrl": "/platform/storage/query/v1"
|
|
17
17
|
},
|
|
18
18
|
"docs": {
|
package/esm/index.js
CHANGED
|
@@ -1972,7 +1972,8 @@ function isGrailMetadata(value) {
|
|
|
1972
1972
|
"locale",
|
|
1973
1973
|
"executionTimeMilliseconds",
|
|
1974
1974
|
"notifications",
|
|
1975
|
-
"queryId"
|
|
1975
|
+
"queryId",
|
|
1976
|
+
"sampled"
|
|
1976
1977
|
]);
|
|
1977
1978
|
const hasAdditionalProperties = false;
|
|
1978
1979
|
const requiredKeys = [];
|
|
@@ -1987,7 +1988,8 @@ function isGrailMetadata(value) {
|
|
|
1987
1988
|
"locale",
|
|
1988
1989
|
"executionTimeMilliseconds",
|
|
1989
1990
|
"notifications",
|
|
1990
|
-
"queryId"
|
|
1991
|
+
"queryId",
|
|
1992
|
+
"sampled"
|
|
1991
1993
|
];
|
|
1992
1994
|
const valKeys = new Set(Object.keys(value));
|
|
1993
1995
|
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
@@ -2015,7 +2017,8 @@ function isJson22(value) {
|
|
|
2015
2017
|
"locale",
|
|
2016
2018
|
"executionTimeMilliseconds",
|
|
2017
2019
|
"notifications",
|
|
2018
|
-
"queryId"
|
|
2020
|
+
"queryId",
|
|
2021
|
+
"sampled"
|
|
2019
2022
|
]);
|
|
2020
2023
|
const hasAdditionalProperties = false;
|
|
2021
2024
|
const requiredKeys = [];
|
|
@@ -2030,7 +2033,8 @@ function isJson22(value) {
|
|
|
2030
2033
|
"locale",
|
|
2031
2034
|
"executionTimeMilliseconds",
|
|
2032
2035
|
"notifications",
|
|
2033
|
-
"queryId"
|
|
2036
|
+
"queryId",
|
|
2037
|
+
"sampled"
|
|
2034
2038
|
];
|
|
2035
2039
|
const valKeys = new Set(Object.keys(value));
|
|
2036
2040
|
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
@@ -2049,7 +2053,8 @@ function fromJson22($model) {
|
|
|
2049
2053
|
locale,
|
|
2050
2054
|
executionTimeMilliseconds,
|
|
2051
2055
|
notifications,
|
|
2052
|
-
queryId
|
|
2056
|
+
queryId,
|
|
2057
|
+
sampled
|
|
2053
2058
|
} = $model;
|
|
2054
2059
|
return {
|
|
2055
2060
|
canonicalQuery,
|
|
@@ -2062,7 +2067,8 @@ function fromJson22($model) {
|
|
|
2062
2067
|
locale,
|
|
2063
2068
|
executionTimeMilliseconds,
|
|
2064
2069
|
notifications: notifications !== void 0 && notifications !== null ? notifications?.map((innerValue) => fromJson18(innerValue)) : void 0,
|
|
2065
|
-
queryId
|
|
2070
|
+
queryId,
|
|
2071
|
+
sampled
|
|
2066
2072
|
};
|
|
2067
2073
|
}
|
|
2068
2074
|
function toJson22($model) {
|
|
@@ -2077,7 +2083,8 @@ function toJson22($model) {
|
|
|
2077
2083
|
locale,
|
|
2078
2084
|
executionTimeMilliseconds,
|
|
2079
2085
|
notifications,
|
|
2080
|
-
queryId
|
|
2086
|
+
queryId,
|
|
2087
|
+
sampled
|
|
2081
2088
|
} = $model;
|
|
2082
2089
|
return {
|
|
2083
2090
|
canonicalQuery,
|
|
@@ -2090,7 +2097,8 @@ function toJson22($model) {
|
|
|
2090
2097
|
locale,
|
|
2091
2098
|
executionTimeMilliseconds,
|
|
2092
2099
|
notifications: notifications !== void 0 && notifications !== null ? notifications?.map((innerValue) => toJson18(innerValue)) : void 0,
|
|
2093
|
-
queryId
|
|
2100
|
+
queryId,
|
|
2101
|
+
sampled
|
|
2094
2102
|
};
|
|
2095
2103
|
}
|
|
2096
2104
|
|
package/package.json
CHANGED
|
@@ -19,6 +19,8 @@ export declare class QueryAssistanceClient {
|
|
|
19
19
|
/**
|
|
20
20
|
* Verifies a query without executing it.
|
|
21
21
|
*
|
|
22
|
+
* For information about the required permissions see the [Bucket and table permissions in Grail documentation](https://www.dynatrace.com/support/help/platform/grail/assign-permissions-in-grail).
|
|
23
|
+
*
|
|
22
24
|
* ## Overview
|
|
23
25
|
*
|
|
24
26
|
* Verifies the supplied query string and other query parameters for lack of any errors, but without actually
|
|
@@ -33,6 +35,8 @@ export declare class QueryAssistanceClient {
|
|
|
33
35
|
/**
|
|
34
36
|
* Get a structured tree of the canonical form of the query.
|
|
35
37
|
*
|
|
38
|
+
* For information about the required permissions see the [Bucket and table permissions in Grail documentation](https://www.dynatrace.com/support/help/platform/grail/assign-permissions-in-grail).
|
|
39
|
+
*
|
|
36
40
|
* ## Overview
|
|
37
41
|
*
|
|
38
42
|
* Returns the parsed query as a tree, containing the structure of the canonical query. Tree-nodes can contain references to
|
|
@@ -232,6 +236,8 @@ export declare class QueryAssistanceClient {
|
|
|
232
236
|
/**
|
|
233
237
|
* Get a structured list of suggestions for the query at the given position.
|
|
234
238
|
*
|
|
239
|
+
* For information about the required permissions see the [Bucket and table permissions in Grail documentation](https://www.dynatrace.com/support/help/platform/grail/assign-permissions-in-grail).
|
|
240
|
+
*
|
|
235
241
|
* ## Overview
|
|
236
242
|
*
|
|
237
243
|
* We provide a list of suggestions that may be used after the cursor position. The following queries will all provide the
|
|
@@ -16,6 +16,8 @@ export declare class QueryExecutionClient {
|
|
|
16
16
|
/**
|
|
17
17
|
* Retrieves query status and final result from Grail.
|
|
18
18
|
*
|
|
19
|
+
* For information about the required permissions see the [Bucket and table permissions in Grail documentation](https://www.dynatrace.com/support/help/platform/grail/assign-permissions-in-grail).
|
|
20
|
+
*
|
|
19
21
|
* ### Overview:
|
|
20
22
|
*
|
|
21
23
|
* Polls the status of a Grail query. Returns the status of the query, including the result if the query finished.
|
|
@@ -57,6 +59,8 @@ export declare class QueryExecutionClient {
|
|
|
57
59
|
/**
|
|
58
60
|
* Starts a Grail query.
|
|
59
61
|
*
|
|
62
|
+
* For information about the required permissions see the [Bucket and table permissions in Grail documentation](https://www.dynatrace.com/support/help/platform/grail/assign-permissions-in-grail).
|
|
63
|
+
*
|
|
60
64
|
* ### Overview:
|
|
61
65
|
*
|
|
62
66
|
* Executes a query and returns a list of records.
|
|
@@ -101,6 +105,8 @@ export declare class QueryExecutionClient {
|
|
|
101
105
|
/**
|
|
102
106
|
* Cancels the query and returns the result if the query was already finished, otherwise discards it.
|
|
103
107
|
*
|
|
108
|
+
* For information about the required permissions see the [Bucket and table permissions in Grail documentation](https://www.dynatrace.com/support/help/platform/grail/assign-permissions-in-grail).
|
|
109
|
+
*
|
|
104
110
|
* ### Overview:
|
|
105
111
|
*
|
|
106
112
|
* Cancels a running Grail query and returns a list of records if the query already finished.
|
|
@@ -13,6 +13,7 @@ export interface AsJson {
|
|
|
13
13
|
executionTimeMilliseconds?: number;
|
|
14
14
|
notifications?: _MetadataNotificationTransformation.AsJson[];
|
|
15
15
|
queryId?: string;
|
|
16
|
+
sampled?: boolean;
|
|
16
17
|
}
|
|
17
18
|
export declare function isGrailMetadata(value: any): value is GrailMetadata;
|
|
18
19
|
export declare function isJson(value: any): value is AsJson;
|