@dynatrace-sdk/client-query 1.4.0 → 1.4.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/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@dynatrace-sdk/client-query",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
+ "description": "Exposes an API to fetch records stored in Grail.",
5
+ "license": "Apache-2.0",
4
6
  "dependencies": {
5
- "@dynatrace-sdk/http-client": "^1.0.3"
7
+ "@dynatrace-sdk/http-client": "^1.0.6"
6
8
  },
7
- "license": "Apache-2.0",
8
9
  "main": "./cjs/index.js",
9
10
  "module": "./esm/index.js",
10
11
  "types": "./types/index.d.ts"
@@ -32,8 +32,10 @@ export declare class QueryAssistanceClient {
32
32
  * import { queryAssistanceClient } from "@dynatrace-sdk/client-query";
33
33
  *
34
34
  * const data = await queryAssistanceClient.queryVerify({
35
- * authorization: "...",
36
- * body: {} as VerifyRequest,
35
+ * body: {
36
+ * query:
37
+ * 'fetch events | filter event.type == "davis" AND davis.status != "CLOSED" | fields timestamp, davis.title, davis.underMaintenance, davis.status | sort timestamp | limit 10',
38
+ * },
37
39
  * });
38
40
  */
39
41
  queryVerify(config: {
@@ -242,8 +244,10 @@ export declare class QueryAssistanceClient {
242
244
  * import { queryAssistanceClient } from "@dynatrace-sdk/client-query";
243
245
  *
244
246
  * const data = await queryAssistanceClient.queryParse({
245
- * authorization: "...",
246
- * body: {} as ParseRequest,
247
+ * body: {
248
+ * query:
249
+ * 'fetch events | filter event.type == "davis" AND davis.status != "CLOSED" | fields timestamp, davis.title, davis.underMaintenance, davis.status | sort timestamp | limit 10',
250
+ * },
247
251
  * });
248
252
  */
249
253
  queryParse(config: {
@@ -296,8 +300,10 @@ export declare class QueryAssistanceClient {
296
300
  * import { queryAssistanceClient } from "@dynatrace-sdk/client-query";
297
301
  *
298
302
  * const data = await queryAssistanceClient.queryAutocomplete({
299
- * authorization: "...",
300
- * body: {} as AutocompleteRequest,
303
+ * body: {
304
+ * query:
305
+ * 'fetch events | filter event.type == "davis" AND davis.status != "CLOSED" | fields timestamp, davis.title, davis.underMaintenance, davis.status | sort timestamp | limit 10',
306
+ * },
301
307
  * });
302
308
  */
303
309
  queryAutocomplete(config: {
@@ -56,8 +56,6 @@ export declare class QueryExecutionClient {
56
56
  *
57
57
  * const data = await queryExecutionClient.queryPoll({
58
58
  * requestToken: "...",
59
- * requestTimeoutMilliseconds: 60,
60
- * enrich: "metric-metadata",
61
59
  * });
62
60
  */
63
61
  queryPoll(config: {
@@ -111,9 +109,10 @@ export declare class QueryExecutionClient {
111
109
  * import { queryExecutionClient } from "@dynatrace-sdk/client-query";
112
110
  *
113
111
  * const data = await queryExecutionClient.queryExecute({
114
- * enrich: "metric-metadata",
115
- * authorization: "...",
116
- * body: {} as ExecuteRequest,
112
+ * body: {
113
+ * query:
114
+ * 'fetch events | filter event.type == "davis" AND davis.status != "CLOSED" | fields timestamp, davis.title, davis.underMaintenance, davis.status | sort timestamp | limit 10',
115
+ * },
117
116
  * });
118
117
  */
119
118
  queryExecute(config: {
@@ -0,0 +1 @@
1
+ export declare function getErrorMessage(errorBody: unknown, defaultMessage: string): string;
@@ -1,3 +1,4 @@
1
1
  export { isClientRequestError } from './client-request-error';
2
2
  export { isApiClientError } from './api-client-error';
3
+ export { isInvalidResponseError } from './invalid-response-error';
3
4
  export { isErrorEnvelopeError } from './error-envelope-error';