@dynatrace-sdk/client-query 1.9.1 → 1.10.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/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dynatrace-sdk/client-query",
3
- "version": "1.9.1",
3
+ "version": "1.10.0",
4
4
  "description": "Exposes an API to fetch records stored in Grail.",
5
5
  "license": "Apache-2.0",
6
6
  "dependencies": {
7
7
  "@dynatrace-sdk/error-handlers": "^1.2.0",
8
- "@dynatrace-sdk/http-client": "^1.0.9"
8
+ "@dynatrace-sdk/http-client": "^1.0.10"
9
9
  },
10
10
  "main": "./cjs/index.js",
11
11
  "module": "./esm/index.js",
@@ -1,3 +1,4 @@
1
+ import { QueryOptions } from './query-options';
1
2
  export interface AutocompleteRequest {
2
3
  /**
3
4
  * The full query string.
@@ -13,4 +14,5 @@ export interface AutocompleteRequest {
13
14
  */
14
15
  locale?: string;
15
16
  maxDataSuggestions?: number;
17
+ queryOptions?: QueryOptions;
16
18
  }
@@ -1,10 +1,12 @@
1
1
  import { AutocompleteRequest } from './autocomplete-request';
2
+ import * as _QueryOptionsTransformation from './query-options.transformation';
2
3
  export interface AsJson {
3
4
  query: string;
4
5
  cursorPosition?: number;
5
6
  timezone?: string;
6
7
  locale?: string;
7
8
  maxDataSuggestions?: number;
9
+ queryOptions?: _QueryOptionsTransformation.AsJson;
8
10
  }
9
11
  export declare function isAutocompleteRequest(value: any): value is AutocompleteRequest;
10
12
  export declare function isJson(value: any): value is AsJson;
@@ -1,3 +1,4 @@
1
+ import { QueryOptions } from './query-options';
1
2
  export interface ExecuteRequest {
2
3
  /**
3
4
  * The full query string.
@@ -47,4 +48,5 @@ export interface ExecuteRequest {
47
48
  * Limit in gigabytes for the amount data that will be scanned during read.
48
49
  */
49
50
  defaultScanLimitGbytes?: number;
51
+ queryOptions?: QueryOptions;
50
52
  }
@@ -1,4 +1,5 @@
1
1
  import { ExecuteRequest } from './execute-request';
2
+ import * as _QueryOptionsTransformation from './query-options.transformation';
2
3
  export interface AsJson {
3
4
  query: string;
4
5
  defaultTimeframeStart?: string;
@@ -12,6 +13,7 @@ export interface AsJson {
12
13
  enablePreview?: boolean;
13
14
  defaultSamplingRatio?: number;
14
15
  defaultScanLimitGbytes?: number;
16
+ queryOptions?: _QueryOptionsTransformation.AsJson;
15
17
  }
16
18
  export declare function isExecuteRequest(value: any): value is ExecuteRequest;
17
19
  export declare function isJson(value: any): value is AsJson;
@@ -42,6 +42,8 @@ export * from './parse-request';
42
42
  export * as _ParseRequestTransformation from './parse-request.transformation';
43
43
  export * from './position-info';
44
44
  export * as _PositionInfoTransformation from './position-info.transformation';
45
+ export * from './query-options';
46
+ export * as _QueryOptionsTransformation from './query-options.transformation';
45
47
  export * from './query-poll-response';
46
48
  export * as _QueryPollResponseTransformation from './query-poll-response.transformation';
47
49
  export * from './query-result';
@@ -30,4 +30,8 @@ export interface MetricMetadata {
30
30
  * The specified rate normalization parameter.
31
31
  */
32
32
  rate?: string;
33
+ /**
34
+ * Indicates if the shifted parameter was used.
35
+ */
36
+ shifted?: boolean;
33
37
  }
@@ -7,6 +7,7 @@ export interface AsJson {
7
7
  fieldName?: string;
8
8
  rollup?: string;
9
9
  rate?: string;
10
+ shifted?: boolean;
10
11
  }
11
12
  export declare function isMetricMetadata(value: any): value is MetricMetadata;
12
13
  export declare function isJson(value: any): value is AsJson;
@@ -1,3 +1,4 @@
1
+ import { QueryOptions } from './query-options';
1
2
  export interface ParseRequest {
2
3
  /**
3
4
  * The full query string.
@@ -11,4 +12,5 @@ export interface ParseRequest {
11
12
  * The query locale. If none specified, then a language/country neutral locale is chosen. The input values take the ISO-639 Language code with an optional ISO-3166 country code appended to it with an underscore. For instance, both values are valid 'en' or 'en_US'.
12
13
  */
13
14
  locale?: string;
15
+ queryOptions?: QueryOptions;
14
16
  }
@@ -1,8 +1,10 @@
1
1
  import { ParseRequest } from './parse-request';
2
+ import * as _QueryOptionsTransformation from './query-options.transformation';
2
3
  export interface AsJson {
3
4
  query: string;
4
5
  timezone?: string;
5
6
  locale?: string;
7
+ queryOptions?: _QueryOptionsTransformation.AsJson;
6
8
  }
7
9
  export declare function isParseRequest(value: any): value is ParseRequest;
8
10
  export declare function isJson(value: any): value is AsJson;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Query options.
3
+ */
4
+ export interface QueryOptions {
5
+ [propName: string]: string | undefined;
6
+ }
@@ -0,0 +1,8 @@
1
+ import { QueryOptions } from './query-options';
2
+ export interface AsJson {
3
+ [propName: string]: string | undefined;
4
+ }
5
+ export declare function isQueryOptions(value: any): value is QueryOptions;
6
+ export declare function isJson(value: any): value is AsJson;
7
+ export declare function fromJson($model: AsJson): QueryOptions;
8
+ export declare function toJson($model: QueryOptions): AsJson;
@@ -27,11 +27,13 @@ export declare enum TokenType {
27
27
  ParameterValueScope = "PARAMETER_VALUE_SCOPE",
28
28
  FunctionName = "FUNCTION_NAME",
29
29
  TimeseriesAggregation = "TIMESERIES_AGGREGATION",
30
+ TimeseriesAggregationExpression = "TIMESERIES_AGGREGATION_EXPRESSION",
30
31
  Operator = "OPERATOR",
31
32
  TraversalOperator = "TRAVERSAL_OPERATOR",
32
33
  TraversalRelationName = "TRAVERSAL_RELATION_NAME",
33
34
  TraversalHopCount = "TRAVERSAL_HOP_COUNT",
34
35
  SimpleIdentifier = "SIMPLE_IDENTIFIER",
36
+ DataObject = "DATA_OBJECT",
35
37
  Number = "NUMBER",
36
38
  String = "STRING",
37
39
  TimeUnit = "TIME_UNIT",
@@ -39,5 +41,11 @@ export declare enum TokenType {
39
41
  MetricKey = "METRIC_KEY",
40
42
  Variable = "VARIABLE",
41
43
  EndComment = "END_COMMENT",
42
- UidValue = "UID_VALUE"
44
+ UidValue = "UID_VALUE",
45
+ ParsePattern = "PARSE_PATTERN",
46
+ FieldPattern = "FIELD_PATTERN",
47
+ EntitySelectorPart = "ENTITY_SELECTOR_PART",
48
+ FieldModifier = "FIELD_MODIFIER",
49
+ EntityType = "ENTITY_TYPE",
50
+ EntityAttribute = "ENTITY_ATTRIBUTE"
43
51
  }
@@ -1,3 +1,4 @@
1
+ import { QueryOptions } from './query-options';
1
2
  export interface VerifyRequest {
2
3
  /**
3
4
  * The full query string.
@@ -11,4 +12,5 @@ export interface VerifyRequest {
11
12
  * The query locale. If none specified, then a language/country neutral locale is chosen. The input values take the ISO-639 Language code with an optional ISO-3166 country code appended to it with an underscore. For instance, both values are valid 'en' or 'en_US'.
12
13
  */
13
14
  locale?: string;
15
+ queryOptions?: QueryOptions;
14
16
  }
@@ -1,8 +1,10 @@
1
+ import * as _QueryOptionsTransformation from './query-options.transformation';
1
2
  import { VerifyRequest } from './verify-request';
2
3
  export interface AsJson {
3
4
  query: string;
4
5
  timezone?: string;
5
6
  locale?: string;
7
+ queryOptions?: _QueryOptionsTransformation.AsJson;
6
8
  }
7
9
  export declare function isVerifyRequest(value: any): value is VerifyRequest;
8
10
  export declare function isJson(value: any): value is AsJson;