Creates autocompletion suggestions for the given DQL processor script.
The request produces an application/json
payload.
POST | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/openpipeline/v1/dqlProcessor/autocomplete |
You can execute this request also with an OAuth2 client with openpipeline:configurations:read
permission.
To learn how to obtain and use it, see OAuth clients.
DQL processor script and position to create suggestions for.
DQLProcessorAutocompleteRequest
objectIdentifier of the configuration
The position of the cursor inside the script.
The current (in-)complete DQL script.
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"cursorPosition": 5,"script": "parse"}
AutocompleteResponse
objectThe response of the autocomplete call.
True if the suggestions are optional.
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.
AutocompleteSuggestion
objectSingle suggestion for completion of the query.
Number of characters that the user already typed for this suggestion.
The suggested continuation of the input.
AutocompleteSuggestionPart
objectPart of the suggestion.
The type of the suggestion.
The suggested continuation of the input.
The synopsis of the suggestion.
The type of the autocomplete token.
ASSIGNMENT
BOOLEAN_FALSE
BOOLEAN_TRUE
BRACE_CLOSE
BRACE_OPEN
BRACKET_CLOSE
BRACKET_OPEN
COLON
COMMA
COMMAND_NAME
DATA_OBJECT
DOT
END_COMMENT
ENTITY_ATTRIBUTE
ENTITY_SELECTOR_PART
ENTITY_TYPE
FIELD_MODIFIER
FIELD_PATTERN
FUNCTION_NAME
INDENT
LINEBREAK
METRIC_KEY
NULL
NUMBER
OPERATOR
PARAMETER_KEY
PARAMETER_VALUE_SCOPE
PARENTHESIS_CLOSE
PARENTHESIS_OPEN
PARSE_PATTERN
PIPE
QUOTE
SIMPLE_IDENTIFIER
SINGLE_QUOTE
SLASH
SPACE
STRING
TIMESERIES_AGGREGATION
TIMESERIES_AGGREGATION_EXPRESSION
TIMESTAMP_VALUE
TIME_UNIT
TRAVERSAL_HOP_COUNT
TRAVERSAL_OPERATOR
TRAVERSAL_RELATION_NAME
UID_VALUE
VARIABLE
{"suggestions": [{"parts": [{"suggestion": " ","type": "SPACE"}],"alreadyTypedCharacters": 0,"suggestion": " "},{"parts": [{"suggestion": "parse","type": "COMMAND_NAME","info": "Parses a record field and puts the result(s) into one or more fields as specified in the pattern.","synopsis": "parse expression, pattern [, preserveFieldsOnFailure] [, parsingPrerequisite]"},{"suggestion": " ","type": "SPACE"}],"alreadyTypedCharacters": 5,"suggestion": "parse "}],"optional": false}
ErrorResponseEnvelope
objectEncloses the encountered error.
ErrorResponse
objectBasic information of the encountered error.
The returned HTTP status code.
Description of the encountered error.
ErrorResponseDetails
objectDetailed information of the error.
Defines the actual set of fields depending on the value. See one of the following objects:
constraintViolation
-> ConstraintViolationDetailsconstraintViolation
ConstraintViolationDetails
objectList of encountered constraint violations.
ConstraintViolation
objectInformation about a single constraint violation.
Description of the constraint violation.