@dynatrace-sdk/client-query 1.0.5 → 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 +19 -0
- package/README.md +1 -1
- package/cjs/index.js +2602 -2489
- package/docs/DOCS.md +25 -1
- package/dynatrace-metadata.json +3 -3
- package/esm/index.js +2607 -2489
- package/package.json +2 -2
- 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/autocomplete-request.d.ts +0 -13
- package/types/packages/client/query/src/lib/models/autocomplete-request.transformation.d.ts +11 -0
- package/types/packages/client/query/src/lib/models/autocomplete-response.d.ts +1 -13
- package/types/packages/client/query/src/lib/models/autocomplete-response.transformation.d.ts +11 -0
- package/types/packages/client/query/src/lib/models/autocomplete-suggestion-part.d.ts +1 -14
- package/types/packages/client/query/src/lib/models/autocomplete-suggestion-part.transformation.d.ts +12 -0
- package/types/packages/client/query/src/lib/models/autocomplete-suggestion.d.ts +1 -13
- package/types/packages/client/query/src/lib/models/autocomplete-suggestion.transformation.d.ts +11 -0
- package/types/packages/client/query/src/lib/models/dql-alternative-node.d.ts +1 -11
- package/types/packages/client/query/src/lib/models/dql-alternative-node.transformation.d.ts +9 -0
- package/types/packages/client/query/src/lib/models/dql-container-node.d.ts +1 -12
- package/types/packages/client/query/src/lib/models/dql-container-node.transformation.d.ts +10 -0
- package/types/packages/client/query/src/lib/models/dql-node-node-type.d.ts +0 -6
- package/types/packages/client/query/src/lib/models/dql-node-node-type.transformation.d.ts +6 -0
- package/types/packages/client/query/src/lib/models/dql-node.d.ts +2 -19
- package/types/packages/client/query/src/lib/models/dql-node.transformation.d.ts +17 -0
- package/types/packages/client/query/src/lib/models/dql-terminal-node.d.ts +2 -14
- package/types/packages/client/query/src/lib/models/dql-terminal-node.transformation.d.ts +12 -0
- package/types/packages/client/query/src/lib/models/error-envelope.d.ts +1 -14
- package/types/packages/client/query/src/lib/models/error-envelope.transformation.d.ts +12 -0
- package/types/packages/client/query/src/lib/models/error-response-details.d.ts +1 -18
- package/types/packages/client/query/src/lib/models/error-response-details.transformation.d.ts +16 -0
- package/types/packages/client/query/src/lib/models/error-response.d.ts +1 -13
- package/types/packages/client/query/src/lib/models/error-response.transformation.d.ts +11 -0
- package/types/packages/client/query/src/lib/models/execute-request.d.ts +0 -20
- package/types/packages/client/query/src/lib/models/execute-request.transformation.d.ts +18 -0
- package/types/packages/client/query/src/lib/models/field-type-type.d.ts +0 -6
- package/types/packages/client/query/src/lib/models/field-type-type.transformation.d.ts +6 -0
- package/types/packages/client/query/src/lib/models/field-type.d.ts +2 -13
- package/types/packages/client/query/src/lib/models/field-type.transformation.d.ts +11 -0
- package/types/packages/client/query/src/lib/models/geo-point.d.ts +0 -11
- package/types/packages/client/query/src/lib/models/geo-point.transformation.d.ts +9 -0
- package/types/packages/client/query/src/lib/models/grail-metadata.d.ts +6 -22
- package/types/packages/client/query/src/lib/models/grail-metadata.transformation.d.ts +21 -0
- package/types/packages/client/query/src/lib/models/index.d.ts +35 -0
- package/types/packages/client/query/src/lib/models/metadata-notification.d.ts +1 -17
- package/types/packages/client/query/src/lib/models/metadata-notification.transformation.d.ts +15 -0
- package/types/packages/client/query/src/lib/models/metadata.d.ts +2 -13
- package/types/packages/client/query/src/lib/models/metadata.transformation.d.ts +11 -0
- package/types/packages/client/query/src/lib/models/metric-metadata.d.ts +0 -13
- package/types/packages/client/query/src/lib/models/metric-metadata.transformation.d.ts +11 -0
- package/types/packages/client/query/src/lib/models/parse-request.d.ts +0 -12
- package/types/packages/client/query/src/lib/models/parse-request.transformation.d.ts +10 -0
- package/types/packages/client/query/src/lib/models/position-info.d.ts +0 -12
- package/types/packages/client/query/src/lib/models/position-info.transformation.d.ts +10 -0
- package/types/packages/client/query/src/lib/models/query-poll-response.d.ts +2 -15
- package/types/packages/client/query/src/lib/models/query-poll-response.transformation.d.ts +13 -0
- package/types/packages/client/query/src/lib/models/query-result.d.ts +3 -15
- package/types/packages/client/query/src/lib/models/query-result.transformation.d.ts +13 -0
- package/types/packages/client/query/src/lib/models/query-start-response.d.ts +2 -16
- package/types/packages/client/query/src/lib/models/query-start-response.transformation.d.ts +14 -0
- package/types/packages/client/query/src/lib/models/query-state.d.ts +0 -6
- package/types/packages/client/query/src/lib/models/query-state.transformation.d.ts +6 -0
- package/types/packages/client/query/src/lib/models/ranged-field-types-mappings.d.ts +1 -11
- package/types/packages/client/query/src/lib/models/ranged-field-types-mappings.transformation.d.ts +9 -0
- package/types/packages/client/query/src/lib/models/ranged-field-types.d.ts +1 -12
- package/types/packages/client/query/src/lib/models/ranged-field-types.transformation.d.ts +10 -0
- package/types/packages/client/query/src/lib/models/result-record-value.d.ts +3 -23
- package/types/packages/client/query/src/lib/models/result-record-value.transformation.d.ts +26 -0
- package/types/packages/client/query/src/lib/models/result-record.d.ts +1 -11
- package/types/packages/client/query/src/lib/models/result-record.transformation.d.ts +9 -0
- package/types/packages/client/query/src/lib/models/timeframe.d.ts +0 -11
- package/types/packages/client/query/src/lib/models/timeframe.transformation.d.ts +9 -0
- package/types/packages/client/query/src/lib/models/token-position.d.ts +1 -15
- package/types/packages/client/query/src/lib/models/token-position.transformation.d.ts +13 -0
- package/types/packages/client/query/src/lib/models/token-type.d.ts +0 -6
- package/types/packages/client/query/src/lib/models/token-type.transformation.d.ts +6 -0
- package/types/packages/client/query/src/lib/models/verify-request.d.ts +0 -12
- package/types/packages/client/query/src/lib/models/verify-request.transformation.d.ts +10 -0
- package/types/packages/client/query/src/lib/models/verify-response.d.ts +1 -12
- package/types/packages/client/query/src/lib/models/verify-response.transformation.d.ts +10 -0
- package/types/packages/platform/error-handlers/src/lib/types/common-serialized-error.d.ts +1 -0
- package/types/packages/platform/error-handlers/src/lib/types/http-serialized-error.d.ts +1 -0
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,16 +13,3 @@ export interface AutocompleteRequest {
|
|
|
13
13
|
*/
|
|
14
14
|
locale?: string;
|
|
15
15
|
}
|
|
16
|
-
/** @ignore */
|
|
17
|
-
export declare namespace _AutocompleteRequestTransformation {
|
|
18
|
-
interface AsJson {
|
|
19
|
-
query: string;
|
|
20
|
-
cursorPosition?: number;
|
|
21
|
-
timezone?: string;
|
|
22
|
-
locale?: string;
|
|
23
|
-
}
|
|
24
|
-
function isAutocompleteRequest(value: any): value is AutocompleteRequest;
|
|
25
|
-
function isJson(value: any): value is AsJson;
|
|
26
|
-
function fromJson($model: AsJson): AutocompleteRequest;
|
|
27
|
-
function toJson($model: AutocompleteRequest): AsJson;
|
|
28
|
-
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AutocompleteRequest } from './autocomplete-request';
|
|
2
|
+
export interface AsJson {
|
|
3
|
+
query: string;
|
|
4
|
+
cursorPosition?: number;
|
|
5
|
+
timezone?: string;
|
|
6
|
+
locale?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function isAutocompleteRequest(value: any): value is AutocompleteRequest;
|
|
9
|
+
export declare function isJson(value: any): value is AsJson;
|
|
10
|
+
export declare function fromJson($model: AsJson): AutocompleteRequest;
|
|
11
|
+
export declare function toJson($model: AutocompleteRequest): AsJson;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AutocompleteSuggestion
|
|
1
|
+
import { AutocompleteSuggestion } from './autocomplete-suggestion';
|
|
2
2
|
/**
|
|
3
3
|
* The response of the autocomplete call.
|
|
4
4
|
*/
|
|
@@ -16,15 +16,3 @@ export interface AutocompleteResponse {
|
|
|
16
16
|
*/
|
|
17
17
|
suggestedTtlSeconds?: number;
|
|
18
18
|
}
|
|
19
|
-
/** @ignore */
|
|
20
|
-
export declare namespace _AutocompleteResponseTransformation {
|
|
21
|
-
interface AsJson {
|
|
22
|
-
optional: boolean;
|
|
23
|
-
suggestions: _AutocompleteSuggestionTransformation.AsJson[];
|
|
24
|
-
suggestedTtlSeconds?: number;
|
|
25
|
-
}
|
|
26
|
-
function isAutocompleteResponse(value: any): value is AutocompleteResponse;
|
|
27
|
-
function isJson(value: any): value is AsJson;
|
|
28
|
-
function fromJson($model: AsJson): AutocompleteResponse;
|
|
29
|
-
function toJson($model: AutocompleteResponse): AsJson;
|
|
30
|
-
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AutocompleteResponse } from './autocomplete-response';
|
|
2
|
+
import * as _AutocompleteSuggestionTransformation from './autocomplete-suggestion.transformation';
|
|
3
|
+
export interface AsJson {
|
|
4
|
+
optional: boolean;
|
|
5
|
+
suggestions: _AutocompleteSuggestionTransformation.AsJson[];
|
|
6
|
+
suggestedTtlSeconds?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function isAutocompleteResponse(value: any): value is AutocompleteResponse;
|
|
9
|
+
export declare function isJson(value: any): value is AsJson;
|
|
10
|
+
export declare function fromJson($model: AsJson): AutocompleteResponse;
|
|
11
|
+
export declare function toJson($model: AutocompleteResponse): AsJson;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TokenType
|
|
1
|
+
import { TokenType } from './token-type';
|
|
2
2
|
/**
|
|
3
3
|
* Part of the suggestion.
|
|
4
4
|
*/
|
|
@@ -17,16 +17,3 @@ export interface AutocompleteSuggestionPart {
|
|
|
17
17
|
*/
|
|
18
18
|
suggestion: string;
|
|
19
19
|
}
|
|
20
|
-
/** @ignore */
|
|
21
|
-
export declare namespace _AutocompleteSuggestionPartTransformation {
|
|
22
|
-
interface AsJson {
|
|
23
|
-
type: _TokenTypeTransformation.AsJson;
|
|
24
|
-
info?: string;
|
|
25
|
-
synopsis?: string;
|
|
26
|
-
suggestion: string;
|
|
27
|
-
}
|
|
28
|
-
function isAutocompleteSuggestionPart(value: any): value is AutocompleteSuggestionPart;
|
|
29
|
-
function isJson(value: any): value is AsJson;
|
|
30
|
-
function fromJson($model: AsJson): AutocompleteSuggestionPart;
|
|
31
|
-
function toJson($model: AutocompleteSuggestionPart): AsJson;
|
|
32
|
-
}
|
package/types/packages/client/query/src/lib/models/autocomplete-suggestion-part.transformation.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AutocompleteSuggestionPart } from './autocomplete-suggestion-part';
|
|
2
|
+
import * as _TokenTypeTransformation from './token-type.transformation';
|
|
3
|
+
export interface AsJson {
|
|
4
|
+
type: _TokenTypeTransformation.AsJson;
|
|
5
|
+
info?: string;
|
|
6
|
+
synopsis?: string;
|
|
7
|
+
suggestion: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function isAutocompleteSuggestionPart(value: any): value is AutocompleteSuggestionPart;
|
|
10
|
+
export declare function isJson(value: any): value is AsJson;
|
|
11
|
+
export declare function fromJson($model: AsJson): AutocompleteSuggestionPart;
|
|
12
|
+
export declare function toJson($model: AutocompleteSuggestionPart): AsJson;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AutocompleteSuggestionPart
|
|
1
|
+
import { AutocompleteSuggestionPart } from './autocomplete-suggestion-part';
|
|
2
2
|
/**
|
|
3
3
|
* Single suggestion for completion of the query.
|
|
4
4
|
*/
|
|
@@ -16,15 +16,3 @@ export interface AutocompleteSuggestion {
|
|
|
16
16
|
*/
|
|
17
17
|
suggestion: string;
|
|
18
18
|
}
|
|
19
|
-
/** @ignore */
|
|
20
|
-
export declare namespace _AutocompleteSuggestionTransformation {
|
|
21
|
-
interface AsJson {
|
|
22
|
-
parts: _AutocompleteSuggestionPartTransformation.AsJson[];
|
|
23
|
-
alreadyTypedCharacters: number;
|
|
24
|
-
suggestion: string;
|
|
25
|
-
}
|
|
26
|
-
function isAutocompleteSuggestion(value: any): value is AutocompleteSuggestion;
|
|
27
|
-
function isJson(value: any): value is AsJson;
|
|
28
|
-
function fromJson($model: AsJson): AutocompleteSuggestion;
|
|
29
|
-
function toJson($model: AutocompleteSuggestion): AsJson;
|
|
30
|
-
}
|
package/types/packages/client/query/src/lib/models/autocomplete-suggestion.transformation.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AutocompleteSuggestion } from './autocomplete-suggestion';
|
|
2
|
+
import * as _AutocompleteSuggestionPartTransformation from './autocomplete-suggestion-part.transformation';
|
|
3
|
+
export interface AsJson {
|
|
4
|
+
parts: _AutocompleteSuggestionPartTransformation.AsJson[];
|
|
5
|
+
alreadyTypedCharacters: number;
|
|
6
|
+
suggestion: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function isAutocompleteSuggestion(value: any): value is AutocompleteSuggestion;
|
|
9
|
+
export declare function isJson(value: any): value is AsJson;
|
|
10
|
+
export declare function fromJson($model: AsJson): AutocompleteSuggestion;
|
|
11
|
+
export declare function toJson($model: AutocompleteSuggestion): AsJson;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DQLNode
|
|
1
|
+
import { DQLNode } from './dql-node';
|
|
2
2
|
/**
|
|
3
3
|
* The DQL node that has alternatives.
|
|
4
4
|
*/
|
|
@@ -8,13 +8,3 @@ export interface DQLAlternativeNode extends DQLNode {
|
|
|
8
8
|
*/
|
|
9
9
|
alternatives?: object;
|
|
10
10
|
}
|
|
11
|
-
/** @ignore */
|
|
12
|
-
export declare namespace _DQLAlternativeNodeTransformation {
|
|
13
|
-
interface AsJson extends _DQLNodeTransformation.AsJson {
|
|
14
|
-
alternatives?: object;
|
|
15
|
-
}
|
|
16
|
-
function isDqlAlternativeNode(value: any): value is DQLAlternativeNode;
|
|
17
|
-
function isJson(value: any): value is AsJson;
|
|
18
|
-
function fromJson($model: AsJson): DQLAlternativeNode;
|
|
19
|
-
function toJson($model: DQLAlternativeNode): AsJson;
|
|
20
|
-
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DQLAlternativeNode } from './dql-alternative-node';
|
|
2
|
+
import * as _DQLNodeTransformation from './dql-node.transformation';
|
|
3
|
+
export interface AsJson extends _DQLNodeTransformation.AsJson {
|
|
4
|
+
alternatives?: object;
|
|
5
|
+
}
|
|
6
|
+
export declare function isDqlAlternativeNode(value: any): value is DQLAlternativeNode;
|
|
7
|
+
export declare function isJson(value: any): value is AsJson;
|
|
8
|
+
export declare function fromJson($model: AsJson): DQLAlternativeNode;
|
|
9
|
+
export declare function toJson($model: DQLAlternativeNode): AsJson;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DQLNode
|
|
1
|
+
import { DQLNode } from './dql-node';
|
|
2
2
|
/**
|
|
3
3
|
* The DQL node that contains other nodes.
|
|
4
4
|
*/
|
|
@@ -12,14 +12,3 @@ export interface DQLContainerNode extends DQLNode {
|
|
|
12
12
|
*/
|
|
13
13
|
children?: DQLNode[];
|
|
14
14
|
}
|
|
15
|
-
/** @ignore */
|
|
16
|
-
export declare namespace _DQLContainerNodeTransformation {
|
|
17
|
-
interface AsJson extends _DQLNodeTransformation.AsJson {
|
|
18
|
-
type?: string;
|
|
19
|
-
children?: _DQLNodeTransformation.AsJson[];
|
|
20
|
-
}
|
|
21
|
-
function isDqlContainerNode(value: any): value is DQLContainerNode;
|
|
22
|
-
function isJson(value: any): value is AsJson;
|
|
23
|
-
function fromJson($model: AsJson): DQLContainerNode;
|
|
24
|
-
function toJson($model: DQLContainerNode): AsJson;
|
|
25
|
-
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DQLContainerNode } from './dql-container-node';
|
|
2
|
+
import * as _DQLNodeTransformation from './dql-node.transformation';
|
|
3
|
+
export interface AsJson extends _DQLNodeTransformation.AsJson {
|
|
4
|
+
type?: string;
|
|
5
|
+
children?: _DQLNodeTransformation.AsJson[];
|
|
6
|
+
}
|
|
7
|
+
export declare function isDqlContainerNode(value: any): value is DQLContainerNode;
|
|
8
|
+
export declare function isJson(value: any): value is AsJson;
|
|
9
|
+
export declare function fromJson($model: AsJson): DQLContainerNode;
|
|
10
|
+
export declare function toJson($model: DQLContainerNode): AsJson;
|
|
@@ -6,9 +6,3 @@ export declare enum DQLNodeNodeType {
|
|
|
6
6
|
Container = "CONTAINER",
|
|
7
7
|
Alternative = "ALTERNATIVE"
|
|
8
8
|
}
|
|
9
|
-
/** @ignore */
|
|
10
|
-
export declare namespace _DQLNodeNodeTypeTransformation {
|
|
11
|
-
type AsJson = DQLNodeNodeType;
|
|
12
|
-
const toJson: (value: DQLNodeNodeType) => AsJson;
|
|
13
|
-
const fromJson: (value: AsJson) => DQLNodeNodeType;
|
|
14
|
-
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DQLNodeNodeType } from './dql-node-node-type';
|
|
2
|
+
export declare type AsJson = string;
|
|
3
|
+
export declare function isDqlNodeNodeType(value: any): value is DQLNodeNodeType;
|
|
4
|
+
export declare function isJson(value: any): value is AsJson;
|
|
5
|
+
export declare function fromJson($model: AsJson): DQLNodeNodeType;
|
|
6
|
+
export declare function toJson($model: DQLNodeNodeType): AsJson;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { DQLNodeNodeType, _DQLNodeNodeTypeTransformation } from './dql-node-node-type';
|
|
4
|
-
import { DQLTerminalNode } from './dql-terminal-node';
|
|
5
|
-
import { TokenPosition, _TokenPositionTransformation } from './token-position';
|
|
1
|
+
import { DQLNodeNodeType } from './dql-node-node-type';
|
|
2
|
+
import { TokenPosition } from './token-position';
|
|
6
3
|
/**
|
|
7
4
|
* General Node in the DQL query.
|
|
8
5
|
*/
|
|
@@ -14,17 +11,3 @@ export interface DQLNode {
|
|
|
14
11
|
*/
|
|
15
12
|
isOptional: boolean;
|
|
16
13
|
}
|
|
17
|
-
/** @ignore */
|
|
18
|
-
export declare namespace _DQLNodeTransformation {
|
|
19
|
-
function isDqlTerminalNode($model: DQLNode): $model is DQLTerminalNode;
|
|
20
|
-
function isDqlContainerNode($model: DQLNode): $model is DQLContainerNode;
|
|
21
|
-
function isDqlAlternativeNode($model: DQLNode): $model is DQLAlternativeNode;
|
|
22
|
-
interface AsJson {
|
|
23
|
-
nodeType: _DQLNodeNodeTypeTransformation.AsJson;
|
|
24
|
-
tokenPosition?: _TokenPositionTransformation.AsJson;
|
|
25
|
-
isOptional: boolean;
|
|
26
|
-
}
|
|
27
|
-
function isJson(value: any): value is AsJson;
|
|
28
|
-
function fromJson($model: AsJson, includeChildProps?: boolean): DQLNode;
|
|
29
|
-
function toJson($model: DQLNode, includeChildProps?: boolean): AsJson;
|
|
30
|
-
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DQLAlternativeNode } from './dql-alternative-node';
|
|
2
|
+
import { DQLContainerNode } from './dql-container-node';
|
|
3
|
+
import { DQLNode } from './dql-node';
|
|
4
|
+
import * as _DQLNodeNodeTypeTransformation from './dql-node-node-type.transformation';
|
|
5
|
+
import { DQLTerminalNode } from './dql-terminal-node';
|
|
6
|
+
import * as _TokenPositionTransformation from './token-position.transformation';
|
|
7
|
+
export declare function isDqlTerminalNode($model: DQLNode): $model is DQLTerminalNode;
|
|
8
|
+
export declare function isDqlContainerNode($model: DQLNode): $model is DQLContainerNode;
|
|
9
|
+
export declare function isDqlAlternativeNode($model: DQLNode): $model is DQLAlternativeNode;
|
|
10
|
+
export interface AsJson {
|
|
11
|
+
nodeType: _DQLNodeNodeTypeTransformation.AsJson;
|
|
12
|
+
tokenPosition?: _TokenPositionTransformation.AsJson;
|
|
13
|
+
isOptional: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function isJson(value: any): value is AsJson;
|
|
16
|
+
export declare function fromJson($model: AsJson, includeChildProps?: boolean): DQLNode;
|
|
17
|
+
export declare function toJson($model: DQLNode, includeChildProps?: boolean): AsJson;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DQLNode
|
|
2
|
-
import { TokenType
|
|
1
|
+
import { DQLNode } from './dql-node';
|
|
2
|
+
import { TokenType } from './token-type';
|
|
3
3
|
/**
|
|
4
4
|
* Node that represents single token.
|
|
5
5
|
*/
|
|
@@ -14,15 +14,3 @@ export interface DQLTerminalNode extends DQLNode {
|
|
|
14
14
|
*/
|
|
15
15
|
canonicalString?: string;
|
|
16
16
|
}
|
|
17
|
-
/** @ignore */
|
|
18
|
-
export declare namespace _DQLTerminalNodeTransformation {
|
|
19
|
-
interface AsJson extends _DQLNodeTransformation.AsJson {
|
|
20
|
-
type?: _TokenTypeTransformation.AsJson;
|
|
21
|
-
isMandatoryOnUserOrder?: boolean;
|
|
22
|
-
canonicalString?: string;
|
|
23
|
-
}
|
|
24
|
-
function isDqlTerminalNode(value: any): value is DQLTerminalNode;
|
|
25
|
-
function isJson(value: any): value is AsJson;
|
|
26
|
-
function fromJson($model: AsJson): DQLTerminalNode;
|
|
27
|
-
function toJson($model: DQLTerminalNode): AsJson;
|
|
28
|
-
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as _DQLNodeTransformation from './dql-node.transformation';
|
|
2
|
+
import { DQLTerminalNode } from './dql-terminal-node';
|
|
3
|
+
import * as _TokenTypeTransformation from './token-type.transformation';
|
|
4
|
+
export interface AsJson extends _DQLNodeTransformation.AsJson {
|
|
5
|
+
type?: _TokenTypeTransformation.AsJson;
|
|
6
|
+
isMandatoryOnUserOrder?: boolean;
|
|
7
|
+
canonicalString?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function isDqlTerminalNode(value: any): value is DQLTerminalNode;
|
|
10
|
+
export declare function isJson(value: any): value is AsJson;
|
|
11
|
+
export declare function fromJson($model: AsJson): DQLTerminalNode;
|
|
12
|
+
export declare function toJson($model: DQLTerminalNode): AsJson;
|
|
@@ -1,20 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ErrorResponse, _ErrorResponseTransformation } from './error-response';
|
|
1
|
+
import { ErrorResponse } from './error-response';
|
|
3
2
|
/**
|
|
4
3
|
* An 'envelope' error object that has the mandatory error object.
|
|
5
4
|
*/
|
|
6
5
|
export interface ErrorEnvelope {
|
|
7
6
|
error: ErrorResponse;
|
|
8
7
|
}
|
|
9
|
-
/** @ignore */
|
|
10
|
-
export declare namespace _ErrorEnvelopeTransformation {
|
|
11
|
-
interface AsJson {
|
|
12
|
-
error: _ErrorResponseTransformation.AsJson;
|
|
13
|
-
}
|
|
14
|
-
function isErrorEnvelope(value: any): value is ErrorEnvelope;
|
|
15
|
-
function isJson(value: any): value is AsJson;
|
|
16
|
-
function fromJson($model: AsJson): ErrorEnvelope;
|
|
17
|
-
function toJson($model: ErrorEnvelope): AsJson;
|
|
18
|
-
function fromFormData(formData: FormDataResponseBody): ErrorEnvelope;
|
|
19
|
-
function toFormData($model: ErrorEnvelope): FormDataRequestBody;
|
|
20
|
-
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FormDataRequestBody, FormDataResponseBody } from '@dynatrace-sdk/http-client';
|
|
2
|
+
import { ErrorEnvelope } from './error-envelope';
|
|
3
|
+
import * as _ErrorResponseTransformation from './error-response.transformation';
|
|
4
|
+
export interface AsJson {
|
|
5
|
+
error: _ErrorResponseTransformation.AsJson;
|
|
6
|
+
}
|
|
7
|
+
export declare function isErrorEnvelope(value: any): value is ErrorEnvelope;
|
|
8
|
+
export declare function isJson(value: any): value is AsJson;
|
|
9
|
+
export declare function fromJson($model: AsJson): ErrorEnvelope;
|
|
10
|
+
export declare function toJson($model: ErrorEnvelope): AsJson;
|
|
11
|
+
export declare function fromFormData(formData: FormDataResponseBody): ErrorEnvelope;
|
|
12
|
+
export declare function toFormData($model: ErrorEnvelope): FormDataRequestBody;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TokenPosition
|
|
1
|
+
import { TokenPosition } from './token-position';
|
|
2
2
|
/**
|
|
3
3
|
* Detailed information about the error.
|
|
4
4
|
*/
|
|
@@ -33,20 +33,3 @@ export interface ErrorResponseDetails {
|
|
|
33
33
|
*/
|
|
34
34
|
errorMessageFormat: string;
|
|
35
35
|
}
|
|
36
|
-
/** @ignore */
|
|
37
|
-
export declare namespace _ErrorResponseDetailsTransformation {
|
|
38
|
-
interface AsJson {
|
|
39
|
-
exceptionType: string;
|
|
40
|
-
syntaxErrorPosition?: _TokenPositionTransformation.AsJson;
|
|
41
|
-
errorType: string;
|
|
42
|
-
errorMessage: string;
|
|
43
|
-
arguments: string[];
|
|
44
|
-
queryString: string;
|
|
45
|
-
errorMessageFormatSpecifierTypes: string[];
|
|
46
|
-
errorMessageFormat: string;
|
|
47
|
-
}
|
|
48
|
-
function isErrorResponseDetails(value: any): value is ErrorResponseDetails;
|
|
49
|
-
function isJson(value: any): value is AsJson;
|
|
50
|
-
function fromJson($model: AsJson): ErrorResponseDetails;
|
|
51
|
-
function toJson($model: ErrorResponseDetails): AsJson;
|
|
52
|
-
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ErrorResponseDetails } from './error-response-details';
|
|
2
|
+
import * as _TokenPositionTransformation from './token-position.transformation';
|
|
3
|
+
export interface AsJson {
|
|
4
|
+
exceptionType: string;
|
|
5
|
+
syntaxErrorPosition?: _TokenPositionTransformation.AsJson;
|
|
6
|
+
errorType: string;
|
|
7
|
+
errorMessage: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
queryString: string;
|
|
10
|
+
errorMessageFormatSpecifierTypes: string[];
|
|
11
|
+
errorMessageFormat: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function isErrorResponseDetails(value: any): value is ErrorResponseDetails;
|
|
14
|
+
export declare function isJson(value: any): value is AsJson;
|
|
15
|
+
export declare function fromJson($model: AsJson): ErrorResponseDetails;
|
|
16
|
+
export declare function toJson($model: ErrorResponseDetails): AsJson;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ErrorResponseDetails
|
|
1
|
+
import { ErrorResponseDetails } from './error-response-details';
|
|
2
2
|
/**
|
|
3
3
|
* The response for error state
|
|
4
4
|
*/
|
|
@@ -13,15 +13,3 @@ export interface ErrorResponse {
|
|
|
13
13
|
*/
|
|
14
14
|
code: number;
|
|
15
15
|
}
|
|
16
|
-
/** @ignore */
|
|
17
|
-
export declare namespace _ErrorResponseTransformation {
|
|
18
|
-
interface AsJson {
|
|
19
|
-
message: string;
|
|
20
|
-
details: _ErrorResponseDetailsTransformation.AsJson;
|
|
21
|
-
code: number;
|
|
22
|
-
}
|
|
23
|
-
function isErrorResponse(value: any): value is ErrorResponse;
|
|
24
|
-
function isJson(value: any): value is AsJson;
|
|
25
|
-
function fromJson($model: AsJson): ErrorResponse;
|
|
26
|
-
function toJson($model: ErrorResponse): AsJson;
|
|
27
|
-
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ErrorResponse } from './error-response';
|
|
2
|
+
import * as _ErrorResponseDetailsTransformation from './error-response-details.transformation';
|
|
3
|
+
export interface AsJson {
|
|
4
|
+
message: string;
|
|
5
|
+
details: _ErrorResponseDetailsTransformation.AsJson;
|
|
6
|
+
code: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function isErrorResponse(value: any): value is ErrorResponse;
|
|
9
|
+
export declare function isJson(value: any): value is AsJson;
|
|
10
|
+
export declare function fromJson($model: AsJson): ErrorResponse;
|
|
11
|
+
export declare function toJson($model: ErrorResponse): AsJson;
|
|
@@ -44,23 +44,3 @@ export interface ExecuteRequest {
|
|
|
44
44
|
*/
|
|
45
45
|
defaultScanLimitGbytes?: number;
|
|
46
46
|
}
|
|
47
|
-
/** @ignore */
|
|
48
|
-
export declare namespace _ExecuteRequestTransformation {
|
|
49
|
-
interface AsJson {
|
|
50
|
-
query: string;
|
|
51
|
-
defaultTimeframeStart?: string;
|
|
52
|
-
defaultTimeframeEnd?: string;
|
|
53
|
-
timezone?: string;
|
|
54
|
-
locale?: string;
|
|
55
|
-
maxResultRecords?: number;
|
|
56
|
-
fetchTimeoutSeconds?: number;
|
|
57
|
-
requestTimeoutMilliseconds?: number;
|
|
58
|
-
enablePreview?: boolean;
|
|
59
|
-
defaultSamplingRatio?: number;
|
|
60
|
-
defaultScanLimitGbytes?: number;
|
|
61
|
-
}
|
|
62
|
-
function isExecuteRequest(value: any): value is ExecuteRequest;
|
|
63
|
-
function isJson(value: any): value is AsJson;
|
|
64
|
-
function fromJson($model: AsJson): ExecuteRequest;
|
|
65
|
-
function toJson($model: ExecuteRequest): AsJson;
|
|
66
|
-
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ExecuteRequest } from './execute-request';
|
|
2
|
+
export interface AsJson {
|
|
3
|
+
query: string;
|
|
4
|
+
defaultTimeframeStart?: string;
|
|
5
|
+
defaultTimeframeEnd?: string;
|
|
6
|
+
timezone?: string;
|
|
7
|
+
locale?: string;
|
|
8
|
+
maxResultRecords?: number;
|
|
9
|
+
fetchTimeoutSeconds?: number;
|
|
10
|
+
requestTimeoutMilliseconds?: number;
|
|
11
|
+
enablePreview?: boolean;
|
|
12
|
+
defaultSamplingRatio?: number;
|
|
13
|
+
defaultScanLimitGbytes?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare function isExecuteRequest(value: any): value is ExecuteRequest;
|
|
16
|
+
export declare function isJson(value: any): value is AsJson;
|
|
17
|
+
export declare function fromJson($model: AsJson): ExecuteRequest;
|
|
18
|
+
export declare function toJson($model: ExecuteRequest): AsJson;
|
|
@@ -13,9 +13,3 @@ export declare enum FieldTypeType {
|
|
|
13
13
|
Record = "record",
|
|
14
14
|
Undefined = "undefined"
|
|
15
15
|
}
|
|
16
|
-
/** @ignore */
|
|
17
|
-
export declare namespace _FieldTypeTypeTransformation {
|
|
18
|
-
type AsJson = FieldTypeType;
|
|
19
|
-
const toJson: (value: FieldTypeType) => AsJson;
|
|
20
|
-
const fromJson: (value: AsJson) => FieldTypeType;
|
|
21
|
-
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FieldTypeType } from './field-type-type';
|
|
2
|
+
export declare type AsJson = string;
|
|
3
|
+
export declare function isFieldTypeType(value: any): value is FieldTypeType;
|
|
4
|
+
export declare function isJson(value: any): value is AsJson;
|
|
5
|
+
export declare function fromJson($model: AsJson): FieldTypeType;
|
|
6
|
+
export declare function toJson($model: FieldTypeType): AsJson;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FieldTypeType
|
|
2
|
-
import { RangedFieldTypes
|
|
1
|
+
import { FieldTypeType } from './field-type-type';
|
|
2
|
+
import { RangedFieldTypes } from './ranged-field-types';
|
|
3
3
|
/**
|
|
4
4
|
* The possible type of a field in DQL.
|
|
5
5
|
*/
|
|
@@ -7,14 +7,3 @@ export interface FieldType {
|
|
|
7
7
|
type: FieldTypeType;
|
|
8
8
|
types?: RangedFieldTypes[];
|
|
9
9
|
}
|
|
10
|
-
/** @ignore */
|
|
11
|
-
export declare namespace _FieldTypeTransformation {
|
|
12
|
-
interface AsJson {
|
|
13
|
-
type: _FieldTypeTypeTransformation.AsJson;
|
|
14
|
-
types?: _RangedFieldTypesTransformation.AsJson[];
|
|
15
|
-
}
|
|
16
|
-
function isFieldType(value: any): value is FieldType;
|
|
17
|
-
function isJson(value: any): value is AsJson;
|
|
18
|
-
function fromJson($model: AsJson): FieldType;
|
|
19
|
-
function toJson($model: FieldType): AsJson;
|
|
20
|
-
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FieldType } from './field-type';
|
|
2
|
+
import * as _FieldTypeTypeTransformation from './field-type-type.transformation';
|
|
3
|
+
import * as _RangedFieldTypesTransformation from './ranged-field-types.transformation';
|
|
4
|
+
export interface AsJson {
|
|
5
|
+
type: _FieldTypeTypeTransformation.AsJson;
|
|
6
|
+
types?: _RangedFieldTypesTransformation.AsJson[];
|
|
7
|
+
}
|
|
8
|
+
export declare function isFieldType(value: any): value is FieldType;
|
|
9
|
+
export declare function isJson(value: any): value is AsJson;
|
|
10
|
+
export declare function fromJson($model: AsJson): FieldType;
|
|
11
|
+
export declare function toJson($model: FieldType): AsJson;
|
|
@@ -11,14 +11,3 @@ export interface GeoPoint {
|
|
|
11
11
|
*/
|
|
12
12
|
longitude: number;
|
|
13
13
|
}
|
|
14
|
-
/** @ignore */
|
|
15
|
-
export declare namespace _GeoPointTransformation {
|
|
16
|
-
interface AsJson {
|
|
17
|
-
latitude: number;
|
|
18
|
-
longitude: number;
|
|
19
|
-
}
|
|
20
|
-
function isGeoPoint(value: any): value is GeoPoint;
|
|
21
|
-
function isJson(value: any): value is AsJson;
|
|
22
|
-
function fromJson($model: AsJson): GeoPoint;
|
|
23
|
-
function toJson($model: GeoPoint): AsJson;
|
|
24
|
-
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GeoPoint } from './geo-point';
|
|
2
|
+
export interface AsJson {
|
|
3
|
+
latitude: number;
|
|
4
|
+
longitude: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function isGeoPoint(value: any): value is GeoPoint;
|
|
7
|
+
export declare function isJson(value: any): value is AsJson;
|
|
8
|
+
export declare function fromJson($model: AsJson): GeoPoint;
|
|
9
|
+
export declare function toJson($model: GeoPoint): AsJson;
|