@dynatrace-sdk/client-query 1.10.1 → 1.11.1

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +153 -120
  3. package/cjs/index.js +496 -55
  4. package/docs/DOCS.md +113 -84
  5. package/dynatrace-metadata.json +2 -2
  6. package/esm/index.js +496 -55
  7. package/package.json +1 -1
  8. package/types/packages/client/query/src/lib/apis/query-assistance-api.d.ts +0 -3
  9. package/types/packages/client/query/src/lib/apis/query-execution-api.d.ts +0 -1
  10. package/types/packages/client/query/src/lib/models/dql-node-node-type.transformation.d.ts +1 -1
  11. package/types/packages/client/query/src/lib/models/execute-request.d.ts +2 -2
  12. package/types/packages/client/query/src/lib/models/field-type-type.transformation.d.ts +1 -1
  13. package/types/packages/client/query/src/lib/models/query-state.transformation.d.ts +1 -1
  14. package/types/packages/client/query/src/lib/models/result-record-value.d.ts +1 -1
  15. package/types/packages/client/query/src/lib/models/result-record-value.transformation.d.ts +1 -1
  16. package/types/packages/client/query/src/lib/models/token-type.transformation.d.ts +1 -1
  17. package/types/packages/client/query/src/lib/models/verify-request.d.ts +1 -0
  18. package/types/packages/client/query/src/lib/models/verify-request.transformation.d.ts +1 -0
  19. package/types/packages/client/query/src/lib/models/verify-response.d.ts +1 -0
  20. package/types/packages/client/query/src/lib/models/verify-response.transformation.d.ts +1 -0
  21. package/types/packages/client/query/src/lib/utils/url-helpers.d.ts +1 -1
  22. package/types/packages/http-client/src/index.d.ts +1 -1
  23. package/types/packages/http-client/src/lib/platform/abort-controller.d.ts +1 -1
  24. package/types/packages/http-client/src/lib/platform/abort-signal.d.ts +1 -1
  25. package/types/packages/http-client/src/lib/platform/decode-form-data.d.ts +48 -0
  26. package/types/packages/http-client/src/lib/platform/http-client.d.ts +19 -0
  27. package/types/packages/http-client/src/lib/platform/index.d.ts +1 -0
  28. package/types/packages/http-client/src/lib/platform/oauth-http-client.d.ts +41 -0
  29. package/types/packages/http-client/src/lib/types/data-types.d.ts +1 -1
  30. package/types/packages/http-client/src/lib/types/form-data-request-body.d.ts +2 -2
  31. package/types/packages/http-client/src/lib/types/form-data-response-body.d.ts +2 -2
  32. package/types/packages/http-client/src/lib/types/request-body-types.d.ts +1 -1
  33. package/types/packages/http-client/src/lib/types/response-body-types.d.ts +1 -1
  34. package/types/packages/platform/error-handlers/src/lib/types/global-dt-runtime-with-error-handlers.d.ts +1 -1
  35. package/types/packages/platform/error-handlers/src/lib/types/global-error-serializer.d.ts +1 -1
  36. package/types/packages/platform/error-handlers/src/lib/types/serialized-error.d.ts +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @dynatrace-sdk/client-query
2
2
 
3
- [![npm](https://img.shields.io/badge/npm-v1.10.1-blue)](https://www.npmjs.com/package/@dynatrace-sdk/client-query/v/1.10.1)
3
+ [![npm](https://img.shields.io/badge/npm-v1.11.1-blue)](https://www.npmjs.com/package/@dynatrace-sdk/client-query/v/1.11.1)
4
4
  [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
5
5
 
6
6
  Exposes an API to fetch records stored in Grail
@@ -35,10 +35,11 @@ import { queryAssistanceClient } from '@dynatrace-sdk/client-query';
35
35
  ```
36
36
 
37
37
 
38
+ <a name="queryautocomplete"></a>
38
39
  ### queryAutocomplete
39
40
 
40
41
  <div class="padding-bottom--md">
41
- <strong>queryAssistanceClient.queryAutocomplete(config): Promise&lt;[AutocompleteResponse](#autocompleteresponse)&gt;</strong>
42
+ <strong>queryAssistanceClient.queryAutocomplete(config): Promise&lt;<a href="#autocompleteresponse">AutocompleteResponse</a>&gt;</strong>
42
43
 
43
44
  <div class="padding-left--md">
44
45
 
@@ -87,10 +88,9 @@ a link to docs, etc.
87
88
 
88
89
  #### Parameters
89
90
 
90
- | Name | Type| Description|
91
- |---|---|---|
92
- |config.authorization|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The authorization context. Typically start with 'Bearer '. |
93
- |config.body<sup>*required</sup>|[AutocompleteRequest](#autocompleterequest)| |
91
+ | Name | Type |
92
+ | --- | --- |
93
+ |config.body<sup>*required</sup>|<a href="#autocompleterequest" target="_blank" rel="noopener noreferrer">AutocompleteRequest</a>|
94
94
 
95
95
 
96
96
 
@@ -103,7 +103,6 @@ A list of structured autocomplete suggestions.
103
103
  <details>
104
104
  <summary>
105
105
  Code example
106
-
107
106
  </summary>
108
107
 
109
108
  ```ts
@@ -124,10 +123,11 @@ const data = await queryAssistanceClient.queryAutocomplete({
124
123
  </div>
125
124
 
126
125
 
126
+ <a name="queryparse"></a>
127
127
  ### queryParse
128
128
 
129
129
  <div class="padding-bottom--md">
130
- <strong>queryAssistanceClient.queryParse(config): Promise&lt;[DQLNode](#dqlnode)&gt;</strong>
130
+ <strong>queryAssistanceClient.queryParse(config): Promise&lt;<a href="#dqlnode">DQLNode</a>&gt;</strong>
131
131
 
132
132
  <div class="padding-left--md">
133
133
 
@@ -332,10 +332,9 @@ When displaying the query, pick one option. You may use the other options for ho
332
332
 
333
333
  #### Parameters
334
334
 
335
- | Name | Type| Description|
336
- |---|---|---|
337
- |config.authorization|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The authorization context. Typically start with 'Bearer '. |
338
- |config.body<sup>*required</sup>|[ParseRequest](#parserequest)| |
335
+ | Name | Type |
336
+ | --- | --- |
337
+ |config.body<sup>*required</sup>|<a href="#parserequest" target="_blank" rel="noopener noreferrer">ParseRequest</a>|
339
338
 
340
339
 
341
340
 
@@ -348,7 +347,6 @@ A node containing more nodes, a node offering different (semantically equivalen
348
347
  <details>
349
348
  <summary>
350
349
  Code example
351
-
352
350
  </summary>
353
351
 
354
352
  ```ts
@@ -369,10 +367,11 @@ const data = await queryAssistanceClient.queryParse({
369
367
  </div>
370
368
 
371
369
 
370
+ <a name="queryverify"></a>
372
371
  ### queryVerify
373
372
 
374
373
  <div class="padding-bottom--md">
375
- <strong>queryAssistanceClient.queryVerify(config): Promise&lt;[VerifyResponse](#verifyresponse)&gt;</strong>
374
+ <strong>queryAssistanceClient.queryVerify(config): Promise&lt;<a href="#verifyresponse">VerifyResponse</a>&gt;</strong>
376
375
 
377
376
  <div class="padding-left--md">
378
377
 
@@ -392,10 +391,9 @@ submitting the query for execution.
392
391
 
393
392
  #### Parameters
394
393
 
395
- | Name | Type| Description|
396
- |---|---|---|
397
- |config.authorization|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The authorization context. Typically start with 'Bearer '. |
398
- |config.body<sup>*required</sup>|[VerifyRequest](#verifyrequest)| |
394
+ | Name | Type |
395
+ | --- | --- |
396
+ |config.body<sup>*required</sup>|<a href="#verifyrequest" target="_blank" rel="noopener noreferrer">VerifyRequest</a>|
399
397
 
400
398
 
401
399
 
@@ -408,7 +406,6 @@ Supplied query and parameters were verified.
408
406
  <details>
409
407
  <summary>
410
408
  Code example
411
-
412
409
  </summary>
413
410
 
414
411
  ```ts
@@ -435,10 +432,11 @@ import { queryExecutionClient } from '@dynatrace-sdk/client-query';
435
432
  ```
436
433
 
437
434
 
435
+ <a name="querycancel"></a>
438
436
  ### queryCancel
439
437
 
440
438
  <div class="padding-bottom--md">
441
- <strong>queryExecutionClient.queryCancel(config): Promise&lt;void &#124; [QueryPollResponse](#querypollresponse)&gt;</strong>
439
+ <strong>queryExecutionClient.queryCancel(config): Promise&lt;void &#124; <a href="#querypollresponse">QueryPollResponse</a>&gt;</strong>
442
440
 
443
441
  <div class="padding-left--md">
444
442
 
@@ -486,8 +484,8 @@ It is guaranteed that every field of every record will have a corresponding type
486
484
 
487
485
  #### Parameters
488
486
 
489
- | Name | Type| Description|
490
- |---|---|---|
487
+ | Name | Type | Description |
488
+ | --- | --- | --- |
491
489
  |config.enrich|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|If set additional data will be available in the metadata section. |
492
490
  |config.requestToken<sup>*required</sup>|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The request-token of the query. |
493
491
 
@@ -502,7 +500,6 @@ The query already finished.
502
500
  <details>
503
501
  <summary>
504
502
  Code example
505
-
506
503
  </summary>
507
504
 
508
505
  ```ts
@@ -520,10 +517,11 @@ const data = await queryExecutionClient.queryCancel({
520
517
  </div>
521
518
 
522
519
 
520
+ <a name="queryexecute"></a>
523
521
  ### queryExecute
524
522
 
525
523
  <div class="padding-bottom--md">
526
- <strong>queryExecutionClient.queryExecute(config): Promise&lt;[QueryStartResponse](#querystartresponse)&gt;</strong>
524
+ <strong>queryExecutionClient.queryExecute(config): Promise&lt;<a href="#querystartresponse" target="_blank" rel="noopener noreferrer">QueryStartResponse</a>&gt;</strong>
527
525
 
528
526
  <div class="padding-left--md">
529
527
 
@@ -572,10 +570,9 @@ It is guaranteed that every field of every record will have a corresponding type
572
570
 
573
571
  #### Parameters
574
572
 
575
- | Name | Type| Description|
576
- |---|---|---|
577
- |config.authorization|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The authorization context. Typically start with 'Bearer '. |
578
- |config.body<sup>*required</sup>|[ExecuteRequest](#executerequest)| |
573
+ | Name | Type | Description |
574
+ | --- | --- | --- |
575
+ |config.body<sup>*required</sup>|<a href="#executerequest">ExecuteRequest</a>| |
579
576
  |config.enrich|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|If set additional data will be available in the metadata section. |
580
577
 
581
578
 
@@ -589,7 +586,6 @@ The final status and results of the supplied query if it finished within a suppl
589
586
  <details>
590
587
  <summary>
591
588
  Code example
592
-
593
589
  </summary>
594
590
 
595
591
  ```ts
@@ -610,10 +606,11 @@ const data = await queryExecutionClient.queryExecute({
610
606
  </div>
611
607
 
612
608
 
609
+ <a name="querypoll"></a>
613
610
  ### queryPoll
614
611
 
615
612
  <div class="padding-bottom--md">
616
- <strong>queryExecutionClient.queryPoll(config): Promise&lt;[QueryPollResponse](#querypollresponse)&gt;</strong>
613
+ <strong>queryExecutionClient.queryPoll(config): Promise&lt;<a href="#querypollresponse" target="_blank" rel="noopener noreferrer">QueryPollResponse</a>&gt;</strong>
617
614
 
618
615
  <div class="padding-left--md">
619
616
 
@@ -659,8 +656,8 @@ It is guaranteed that every field of every record will have a corresponding type
659
656
 
660
657
  #### Parameters
661
658
 
662
- | Name | Type| Description|
663
- |---|---|---|
659
+ | Name | Type | Description |
660
+ | --- | --- | --- |
664
661
  |config.enrich|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|If set additional data will be available in the metadata section. |
665
662
  |config.requestTimeoutMilliseconds|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|The time a client is willing to wait for the query result. In case the query finishes within the specified timeout, the query result is returned. Otherwise, the query status is returned. |
666
663
  |config.requestToken<sup>*required</sup>|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The request-token of the query. |
@@ -676,7 +673,6 @@ The current status and results of the supplied query.
676
673
  <details>
677
674
  <summary>
678
675
  Code example
679
-
680
676
  </summary>
681
677
 
682
678
  ```ts
@@ -701,47 +697,51 @@ const data = await queryExecutionClient.queryPoll({
701
697
 
702
698
 
703
699
 
704
- | Name | Type| Description|
705
- |---|---|---|
700
+
701
+ | Name | Type | Description |
702
+ | --- | --- | --- |
706
703
  |cursorPosition|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)| |
707
704
  |locale|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|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'. |
708
705
  |maxDataSuggestions|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)| |
709
706
  |query<sup>*required</sup>|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The full query string. |
710
- |queryOptions|[QueryOptions](#queryoptions)| |
707
+ |queryOptions|<a href="#queryoptions">QueryOptions</a>| |
711
708
  |timezone|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The query timezone. If none is specified, UTC is used as fallback. The list of valid input values matches that of the IANA Time Zone Database (TZDB). It accepts values in their canonical names like 'Europe/Paris', the abbreviated version like CET or the UTC offset format like '+01:00' |
712
709
 
713
710
  ### AutocompleteResponse
714
711
 
715
712
 
716
713
 
714
+
717
715
  The response of the autocomplete call.
718
716
 
719
- | Name | Type| Description|
720
- |---|---|---|
717
+ | Name | Type | Description |
718
+ | --- | --- | --- |
721
719
  |optional<sup>*required</sup>|[boolean](https://developer.mozilla.org/en-US/docs/Glossary/Boolean)|True if the suggestions are optional. |
722
720
  |suggestedTtlSeconds|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|Suggested duration in seconds, for how long the response may be cached and reused by the client. It is derived from the volatility of the suggestions on the server (if the suggestions are static, how long the server will cache the volatile suggestions, ...). If not provided, then the result may be cached for long time. Value below 1 means that the result should not be cached. |
723
- |suggestions<sup>*required</sup>|Array&lt;[AutocompleteSuggestion](#autocompletesuggestion)&gt;|The list of suggestions. |
721
+ |suggestions<sup>*required</sup>|Array&lt;<a href="#autocompletesuggestion" target="_blank" rel="noopener noreferrer">AutocompleteSuggestion</a>&gt;|The list of suggestions. |
724
722
 
725
723
  ### AutocompleteSuggestion
726
724
 
727
725
 
728
726
 
727
+
729
728
  Single suggestion for completion of the query.
730
729
 
731
- | Name | Type| Description|
732
- |---|---|---|
730
+ | Name | Type | Description |
731
+ | --- | --- | --- |
733
732
  |alreadyTypedCharacters<sup>*required</sup>|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|Number of characters that the user user already typed for this suggestion. |
734
- |parts<sup>*required</sup>|Array&lt;[AutocompleteSuggestionPart](#autocompletesuggestionpart)&gt;|List of suggestion parts. |
733
+ |parts<sup>*required</sup>|Array&lt;<a href="#autocompletesuggestionpart">AutocompleteSuggestionPart</a>&gt;|List of suggestion parts. |
735
734
  |suggestion<sup>*required</sup>|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The suggested continuation of the query. |
736
735
 
737
736
  ### AutocompleteSuggestionPart
738
737
 
739
738
 
740
739
 
740
+
741
741
  Part of the suggestion.
742
742
 
743
- | Name | Type| Description|
744
- |---|---|---|
743
+ | Name | Type | Description |
744
+ | --- | --- | --- |
745
745
  |info|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The type of the suggestion. |
746
746
  |suggestion<sup>*required</sup>|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The suggested continuation of the query. |
747
747
  |synopsis|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The synopsis of the suggestion. |
@@ -751,86 +751,93 @@ Part of the suggestion.
751
751
 
752
752
 
753
753
 
754
+
754
755
  The DQL node that has alternatives.
755
756
 
756
- | Name | Type| Description|
757
- |---|---|---|
757
+ | Name | Type | Description |
758
+ | --- | --- | --- |
758
759
  |alternatives|object|The different alternatives. |
759
760
  |isOptional<sup>*required</sup>|[boolean](https://developer.mozilla.org/en-US/docs/Glossary/Boolean)|True if the node is optional. |
760
761
  |nodeType<sup>*required</sup>|DQLNodeNodeType| |
761
- |tokenPosition|[TokenPosition](#tokenposition)| |
762
+ |tokenPosition|<a href="#tokenposition" target="_blank" rel="noopener noreferrer">TokenPosition</a>| |
762
763
 
763
764
  ### DQLContainerNode
764
765
 
765
766
 
766
767
 
768
+
767
769
  The DQL node that contains other nodes.
768
770
 
769
- | Name | Type| Description|
770
- |---|---|---|
771
- |children|Array&lt;[DQLNode](#dqlnode)&gt;|The list of children nodes. |
771
+ | Name | Type | Description |
772
+ | --- | --- | --- |
773
+ |children|Array&lt;<a href="#dqlnode">DQLNode</a>&gt;|The list of children nodes. |
772
774
  |isOptional<sup>*required</sup>|[boolean](https://developer.mozilla.org/en-US/docs/Glossary/Boolean)|True if the node is optional. |
773
775
  |nodeType<sup>*required</sup>|DQLNodeNodeType| |
774
- |tokenPosition|[TokenPosition](#tokenposition)| |
776
+ |tokenPosition|<a href="#tokenposition" target="_blank" rel="noopener noreferrer">TokenPosition</a>| |
775
777
  |type|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The type of the node. |
776
778
 
777
779
  ### DQLNode
778
780
 
779
781
 
780
782
 
783
+
781
784
  General Node in the DQL query.
782
785
 
783
- | Name | Type| Description|
784
- |---|---|---|
786
+ | Name | Type | Description |
787
+ | --- | --- | --- |
785
788
  |isOptional<sup>*required</sup>|[boolean](https://developer.mozilla.org/en-US/docs/Glossary/Boolean)|True if the node is optional. |
786
789
  |nodeType<sup>*required</sup>|DQLNodeNodeType| |
787
- |tokenPosition|[TokenPosition](#tokenposition)| |
790
+ |tokenPosition|<a href="#tokenposition">TokenPosition</a>| |
788
791
 
789
792
  ### DQLTerminalNode
790
793
 
791
794
 
792
795
 
796
+
793
797
  Node that represents single token.
794
798
 
795
- | Name | Type| Description|
796
- |---|---|---|
799
+ | Name | Type | Description |
800
+ | --- | --- | --- |
797
801
  |canonicalString|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|Canonical form. |
798
802
  |isMandatoryOnUserOrder|[boolean](https://developer.mozilla.org/en-US/docs/Glossary/Boolean)|For optional items only: whether this node becomes mandatory when user order is used. True only for some optional 'ghost braces' |
799
803
  |isOptional<sup>*required</sup>|[boolean](https://developer.mozilla.org/en-US/docs/Glossary/Boolean)|True if the node is optional. |
800
804
  |nodeType<sup>*required</sup>|DQLNodeNodeType| |
801
- |tokenPosition|[TokenPosition](#tokenposition)| |
805
+ |tokenPosition|<a href="#tokenposition" target="_blank" rel="noopener noreferrer">TokenPosition</a>| |
802
806
  |type|TokenType| |
803
807
 
804
808
  ### ErrorEnvelope
805
809
 
806
810
 
807
811
 
812
+
808
813
  An &apos;envelope&apos; error object that has the mandatory error object.
809
814
 
810
- | Name | Type|
811
- |---|---|
812
- |error<sup>*required</sup>|[ErrorResponse](#errorresponse)|
815
+ | Name | Type |
816
+ | --- | --- |
817
+ |error<sup>*required</sup>|<a href="#errorresponse">ErrorResponse</a>|
813
818
 
814
819
  ### ErrorResponse
815
820
 
816
821
 
817
822
 
823
+
818
824
  The response for error state
819
825
 
820
- | Name | Type| Description|
821
- |---|---|---|
826
+ | Name | Type | Description |
827
+ | --- | --- | --- |
822
828
  |code<sup>*required</sup>|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|Error code, which normally matches the HTTP error code. |
823
- |details<sup>*required</sup>|[ErrorResponseDetails](#errorresponsedetails)| |
829
+ |details<sup>*required</sup>|<a href="#errorresponsedetails" target="_blank" rel="noopener noreferrer">ErrorResponseDetails</a>| |
824
830
  |message<sup>*required</sup>|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|A short, clear error message without details |
825
831
 
826
832
  ### ErrorResponseDetails
827
833
 
828
834
 
829
835
 
836
+
830
837
  Detailed information about the error.
831
838
 
832
- | Name | Type| Description|
833
- |---|---|---|
839
+ | Name | Type | Description |
840
+ | --- | --- | --- |
834
841
  |arguments<sup>*required</sup>|Array&lt;[string](https://developer.mozilla.org/en-US/docs/Glossary/String)&gt;|The arguments for the message format. |
835
842
  |errorMessage<sup>*required</sup>|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|Complete error message. |
836
843
  |errorMessageFormat<sup>*required</sup>|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The message format of the error message, string.format based. |
@@ -839,7 +846,7 @@ Detailed information about the error.
839
846
  |exceptionType<sup>*required</sup>|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The exception type. |
840
847
  |queryId|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)| |
841
848
  |queryString<sup>*required</sup>|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|Submitted query string. |
842
- |syntaxErrorPosition|[TokenPosition](#tokenposition)| |
849
+ |syntaxErrorPosition|<a href="#tokenposition">TokenPosition</a>| |
843
850
 
844
851
  ### ExecuteRequest
845
852
 
@@ -847,19 +854,20 @@ Detailed information about the error.
847
854
 
848
855
 
849
856
 
850
- | Name | Type| Description|
851
- |---|---|---|
857
+
858
+ | Name | Type | Description |
859
+ | --- | --- | --- |
852
860
  |defaultSamplingRatio|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|In case not specified in the DQL string, the sampling ratio defined here is applied. Note that this is only applicable to log queries. |
853
861
  |defaultScanLimitGbytes|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|Limit in gigabytes for the amount data that will be scanned during read. |
854
- |defaultTimeframeEnd|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The query timeframe 'end' timestamp in ISO-8601 or RFC399 format. If the timeframe 'start' parameter is missing, the whole timeframe is ignored. <em>Note that if a timeframe is specified within the query string (query) then it has precedence over this query request parameter.</em> |
855
- |defaultTimeframeStart|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The query timeframe 'start' timestamp in ISO-8601 or RFC399 format. If the timeframe 'end' parameter is missing, the whole timeframe is ignored. <em>Note that if a timeframe is specified within the query string (query) then it has precedence over this query request parameter.</em> |
862
+ |defaultTimeframeEnd|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The query timeframe 'end' timestamp in ISO-8601 or RFC3339 format. If the timeframe 'start' parameter is missing, the whole timeframe is ignored. <em>Note that if a timeframe is specified within the query string (query) then it has precedence over this query request parameter.</em> |
863
+ |defaultTimeframeStart|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The query timeframe 'start' timestamp in ISO-8601 or RFC3339 format. If the timeframe 'end' parameter is missing, the whole timeframe is ignored. <em>Note that if a timeframe is specified within the query string (query) then it has precedence over this query request parameter.</em> |
856
864
  |enablePreview|[boolean](https://developer.mozilla.org/en-US/docs/Glossary/Boolean)|Request preview results. If a preview is available within the requestTimeoutMilliseconds, then it will be returned as part of the response. |
857
865
  |fetchTimeoutSeconds|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|The query will stop reading data after reaching the fetch-timeout. The query execution will continue, providing a partial result based on the read data. |
858
866
  |locale|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|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'. |
859
867
  |maxResultBytes|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|The maximum number of result bytes that this query will return. |
860
868
  |maxResultRecords|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|The maximum number of result records that this query will return. |
861
869
  |query<sup>*required</sup>|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The full query string. |
862
- |queryOptions|[QueryOptions](#queryoptions)| |
870
+ |queryOptions|<a href="#queryoptions" target="_blank" rel="noopener noreferrer">QueryOptions</a>| |
863
871
  |requestTimeoutMilliseconds|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|The time a client is willing to wait for the query result. In case the query finishes within the specified timeout, the query result is returned. Otherwise, the requestToken is returned, allowing polling for the result. |
864
872
  |timezone|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The query timezone. If none is specified, UTC is used as fallback. The list of valid input values matches that of the IANA Time Zone Database (TZDB). It accepts values in their canonical names like 'Europe/Paris', the abbreviated version like CET or the UTC offset format like '+01:00' |
865
873
 
@@ -867,21 +875,23 @@ Detailed information about the error.
867
875
 
868
876
 
869
877
 
878
+
870
879
  The possible type of a field in DQL.
871
880
 
872
- | Name | Type|
873
- |---|---|
881
+ | Name | Type |
882
+ | --- | --- |
874
883
  |type<sup>*required</sup>|FieldTypeType|
875
- |types|Array&lt;[RangedFieldTypes](#rangedfieldtypes)&gt;|
884
+ |types|Array&lt;<a href="#rangedfieldtypes">RangedFieldTypes</a>&gt;|
876
885
 
877
886
  ### GeoPoint
878
887
 
879
888
 
880
889
 
890
+
881
891
  DQL data type representing a geolocation point.
882
892
 
883
- | Name | Type| Description|
884
- |---|---|---|
893
+ | Name | Type | Description |
894
+ | --- | --- | --- |
885
895
  |latitude<sup>*required</sup>|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|The coordinate that specifies the north-south position of a point on the surface of the earth. |
886
896
  |longitude<sup>*required</sup>|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|The coordinate that specifies the east-west position of a point on the surface of the earth. |
887
897
 
@@ -889,16 +899,17 @@ DQL data type representing a geolocation point.
889
899
 
890
900
 
891
901
 
902
+
892
903
  Collects various bits of metadata information.
893
904
 
894
- | Name | Type| Description|
895
- |---|---|---|
896
- |analysisTimeframe|[Timeframe](#timeframe)| |
905
+ | Name | Type | Description |
906
+ | --- | --- | --- |
907
+ |analysisTimeframe|<a href="#timeframe" target="_blank" rel="noopener noreferrer">Timeframe</a>| |
897
908
  |canonicalQuery|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The canonical form of the query. It has normalized spaces and canonical constructs. |
898
909
  |dqlVersion|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The version of DQL that was used to process the query request. |
899
910
  |executionTimeMilliseconds|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|The time it took to execute the query. |
900
911
  |locale|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|Effective locale for the query. |
901
- |notifications|Array&lt;[MetadataNotification](#metadatanotification)&gt;|Collected messages during the execution of the query. |
912
+ |notifications|Array&lt;<a href="#metadatanotification">MetadataNotification</a>&gt;|Collected messages during the execution of the query. |
902
913
  |query|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The submitted query. |
903
914
  |queryId|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The id of the query |
904
915
  |sampled|[boolean](https://developer.mozilla.org/en-US/docs/Glossary/Boolean)|True if sampling was used for at least one segment. |
@@ -911,37 +922,40 @@ Collects various bits of metadata information.
911
922
 
912
923
 
913
924
 
925
+
914
926
  Collects various bits of metadata information.
915
927
 
916
- | Name | Type|
917
- |---|---|
918
- |grail|[GrailMetadata](#grailmetadata)|
919
- |metrics|Array&lt;[MetricMetadata](#metricmetadata)&gt;|
928
+ | Name | Type |
929
+ | --- | --- |
930
+ |grail|<a href="#grailmetadata" target="_blank" rel="noopener noreferrer">GrailMetadata</a>|
931
+ |metrics|Array&lt;<a href="#metricmetadata">MetricMetadata</a>&gt;|
920
932
 
921
933
  ### MetadataNotification
922
934
 
923
935
 
924
936
 
937
+
925
938
  The message that provides additional information about the execution of the query.
926
939
 
927
- | Name | Type| Description|
928
- |---|---|---|
940
+ | Name | Type | Description |
941
+ | --- | --- | --- |
929
942
  |arguments|Array&lt;[string](https://developer.mozilla.org/en-US/docs/Glossary/String)&gt;|The arguments for the message format. |
930
943
  |message|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The complete message of the notification. |
931
944
  |messageFormat|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The message format of the notification, string.format based |
932
945
  |messageFormatSpecifierTypes|Array&lt;[string](https://developer.mozilla.org/en-US/docs/Glossary/String)&gt;|The corresponding DQL format specifier types for each format specifier used in the error message format. |
933
946
  |notificationType|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The notification type, e.g. LIMIT_ADDED. |
934
947
  |severity|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The severity of the notification, currently: INFO, WARN, ERROR. |
935
- |syntaxPosition|[TokenPosition](#tokenposition)| |
948
+ |syntaxPosition|<a href="#tokenposition" target="_blank" rel="noopener noreferrer">TokenPosition</a>| |
936
949
 
937
950
  ### MetricMetadata
938
951
 
939
952
 
940
953
 
954
+
941
955
  An object that defines additional metric metadata.
942
956
 
943
- | Name | Type| Description|
944
- |---|---|---|
957
+ | Name | Type | Description |
958
+ | --- | --- | --- |
945
959
  |description|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The description of the metadata. |
946
960
  |displayName|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The display name of the metadata. |
947
961
  |fieldName|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The name of the associated field used in the query. |
@@ -957,26 +971,29 @@ An object that defines additional metric metadata.
957
971
 
958
972
 
959
973
 
960
- | Name | Type| Description|
961
- |---|---|---|
974
+
975
+ | Name | Type | Description |
976
+ | --- | --- | --- |
962
977
  |locale|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|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'. |
963
978
  |query<sup>*required</sup>|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The full query string. |
964
- |queryOptions|[QueryOptions](#queryoptions)| |
979
+ |queryOptions|<a href="#queryoptions">QueryOptions</a>| |
965
980
  |timezone|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The query timezone. If none is specified, UTC is used as fallback. The list of valid input values matches that of the IANA Time Zone Database (TZDB). It accepts values in their canonical names like 'Europe/Paris', the abbreviated version like CET or the UTC offset format like '+01:00' |
966
981
 
967
982
  ### PositionInfo
968
983
 
969
984
 
970
985
 
986
+
971
987
  The exact position in the query string.
972
988
 
973
- | Name | Type| Description|
974
- |---|---|---|
989
+ | Name | Type | Description |
990
+ | --- | --- | --- |
975
991
  |column<sup>*required</sup>|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|Query position column zero based index. |
976
992
  |index<sup>*required</sup>|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|Query position index. |
977
993
  |line<sup>*required</sup>|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|Query position line zero based index. |
978
994
 
979
995
  ### QueryOptions
996
+ **type**: Record&lt;string, string | undefined&gt;
980
997
 
981
998
 
982
999
 
@@ -986,12 +1003,13 @@ Query options.
986
1003
 
987
1004
 
988
1005
 
1006
+
989
1007
  The response of GET query:execute call.
990
1008
 
991
- | Name | Type| Description|
992
- |---|---|---|
1009
+ | Name | Type | Description |
1010
+ | --- | --- | --- |
993
1011
  |progress|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|The progress of the query from 0 to 100. |
994
- |result|[QueryResult](#queryresult)| |
1012
+ |result|<a href="#queryresult" target="_blank" rel="noopener noreferrer">QueryResult</a>| |
995
1013
  |state<sup>*required</sup>|QueryState| |
996
1014
  |ttlSeconds|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|Time to live in seconds. |
997
1015
 
@@ -999,25 +1017,27 @@ The response of GET query:execute call.
999
1017
 
1000
1018
 
1001
1019
 
1020
+
1002
1021
  The result of the DQL query.
1003
1022
 
1004
- | Name | Type| Description|
1005
- |---|---|---|
1006
- |metadata<sup>*required</sup>|[Metadata](#metadata)| |
1007
- |records<sup>*required</sup>|Array&lt;null &#124; [ResultRecord](#resultrecord)&gt;|List of records containing the result fields data. |
1008
- |types<sup>*required</sup>|Array&lt;[RangedFieldTypes](#rangedfieldtypes)&gt;|The data types for the result records. |
1023
+ | Name | Type | Description |
1024
+ | --- | --- | --- |
1025
+ |metadata<sup>*required</sup>|<a href="#metadata">Metadata</a>| |
1026
+ |records<sup>*required</sup>|Array&lt;null &#124; <a href="#resultrecord" target="_blank" rel="noopener noreferrer">ResultRecord</a>&gt;|List of records containing the result fields data. |
1027
+ |types<sup>*required</sup>|Array&lt;<a href="#rangedfieldtypes">RangedFieldTypes</a>&gt;|The data types for the result records. |
1009
1028
 
1010
1029
  ### QueryStartResponse
1011
1030
 
1012
1031
 
1013
1032
 
1033
+
1014
1034
  The response when starting a query.
1015
1035
 
1016
- | Name | Type| Description|
1017
- |---|---|---|
1036
+ | Name | Type | Description |
1037
+ | --- | --- | --- |
1018
1038
  |progress|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|The progress of the query from 0 to 100. |
1019
1039
  |requestToken|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The token returned by the POST query:execute call. |
1020
- |result|[QueryResult](#queryresult)| |
1040
+ |result|<a href="#queryresult" target="_blank" rel="noopener noreferrer">QueryResult</a>| |
1021
1041
  |state<sup>*required</sup>|QueryState| |
1022
1042
  |ttlSeconds|[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)|Time to live in seconds. |
1023
1043
 
@@ -1025,20 +1045,23 @@ The response when starting a query.
1025
1045
 
1026
1046
 
1027
1047
 
1048
+
1028
1049
  The field type in range.
1029
1050
 
1030
- | Name | Type| Description|
1031
- |---|---|---|
1051
+ | Name | Type | Description |
1052
+ | --- | --- | --- |
1032
1053
  |indexRange|Array&lt;[number](https://developer.mozilla.org/en-US/docs/Glossary/Number)&gt;|The range of elements at use this type in arrays (null for records). |
1033
- |mappings<sup>*required</sup>|[RangedFieldTypesMappings](#rangedfieldtypesmappings)| |
1054
+ |mappings<sup>*required</sup>|<a href="#rangedfieldtypesmappings">RangedFieldTypesMappings</a>| |
1034
1055
 
1035
1056
  ### RangedFieldTypesMappings
1057
+ **type**: Record&lt;string, FieldType | undefined&gt;
1036
1058
 
1037
1059
 
1038
1060
 
1039
1061
  The mapping between the field name and data type.
1040
1062
 
1041
1063
  ### ResultRecord
1064
+ **type**: Record&lt;string, ResultRecordValue | null | undefined&gt;
1042
1065
 
1043
1066
 
1044
1067
 
@@ -1048,10 +1071,11 @@ Single record that contains the result fields.
1048
1071
 
1049
1072
 
1050
1073
 
1074
+
1051
1075
  DQL data type timeframe.
1052
1076
 
1053
- | Name | Type| Description|
1054
- |---|---|---|
1077
+ | Name | Type | Description |
1078
+ | --- | --- | --- |
1055
1079
  |end|Date|The end time of the timeframe. |
1056
1080
  |start|Date|The start time of the timeframe. |
1057
1081
 
@@ -1059,12 +1083,13 @@ DQL data type timeframe.
1059
1083
 
1060
1084
 
1061
1085
 
1086
+
1062
1087
  The position of a token in a query string used for errors and notification to map the message to a specific part of the query.
1063
1088
 
1064
- | Name | Type|
1065
- |---|---|
1066
- |end<sup>*required</sup>|[PositionInfo](#positioninfo)|
1067
- |start<sup>*required</sup>|[PositionInfo](#positioninfo)|
1089
+ | Name | Type |
1090
+ | --- | --- |
1091
+ |end<sup>*required</sup>|<a href="#positioninfo" target="_blank" rel="noopener noreferrer">PositionInfo</a>|
1092
+ |start<sup>*required</sup>|<a href="#positioninfo">PositionInfo</a>|
1068
1093
 
1069
1094
  ### VerifyRequest
1070
1095
 
@@ -1072,26 +1097,31 @@ The position of a token in a query string used for errors and notification to ma
1072
1097
 
1073
1098
 
1074
1099
 
1075
- | Name | Type| Description|
1076
- |---|---|---|
1100
+
1101
+ | Name | Type | Description |
1102
+ | --- | --- | --- |
1103
+ |generateCanonicalQuery|[boolean](https://developer.mozilla.org/en-US/docs/Glossary/Boolean)| <i>default:</i> <code>false</code>|
1077
1104
  |locale|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|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'. |
1078
1105
  |query<sup>*required</sup>|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The full query string. |
1079
- |queryOptions|[QueryOptions](#queryoptions)| |
1106
+ |queryOptions|<a href="#queryoptions" target="_blank" rel="noopener noreferrer">QueryOptions</a>| |
1080
1107
  |timezone|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)|The query timezone. If none is specified, UTC is used as fallback. The list of valid input values matches that of the IANA Time Zone Database (TZDB). It accepts values in their canonical names like 'Europe/Paris', the abbreviated version like CET or the UTC offset format like '+01:00' |
1081
1108
 
1082
1109
  ### VerifyResponse
1083
1110
 
1084
1111
 
1085
1112
 
1113
+
1086
1114
  Verify response.
1087
1115
 
1088
- | Name | Type| Description|
1089
- |---|---|---|
1090
- |notifications|Array&lt;[MetadataNotification](#metadatanotification)&gt;|The notifications related to the supplied DQL query string. |
1116
+ | Name | Type | Description |
1117
+ | --- | --- | --- |
1118
+ |canonicalQuery|[string](https://developer.mozilla.org/en-US/docs/Glossary/String)| |
1119
+ |notifications|Array&lt;<a href="#metadatanotification">MetadataNotification</a>&gt;|The notifications related to the supplied DQL query string. |
1091
1120
  |valid<sup>*required</sup>|[boolean](https://developer.mozilla.org/en-US/docs/Glossary/Boolean)|True if the supplied DQL query string is valid. |
1092
1121
 
1093
1122
  ## Enums
1094
1123
 
1124
+ <a name="dqlnodenodetype"></a>
1095
1125
  ### DQLNodeNodeType
1096
1126
 
1097
1127
  <div class="padding-left--md">
@@ -1109,6 +1139,7 @@ The type of the node.
1109
1139
 
1110
1140
  </div>
1111
1141
 
1142
+ <a name="fieldtypetype"></a>
1112
1143
  ### FieldTypeType
1113
1144
 
1114
1145
  <div class="padding-left--md">
@@ -1126,6 +1157,7 @@ The type of the node.
1126
1157
 
1127
1158
  </div>
1128
1159
 
1160
+ <a name="querystate"></a>
1129
1161
  ### QueryState
1130
1162
 
1131
1163
  <div class="padding-left--md">
@@ -1143,6 +1175,7 @@ Possible state of the query.
1143
1175
 
1144
1176
  </div>
1145
1177
 
1178
+ <a name="tokentype"></a>
1146
1179
  ### TokenType
1147
1180
 
1148
1181
  <div class="padding-left--md">