Check Query Type

Check Query Type

Return the type of provided query.

Request
URI
POST
https://{api_host}/api/v2/alert/checkQuery
COPY
Request Body
QueryTypeDTO of type(s) application/json
Optional
{
    "inputQuery": "string",
    "translatedInput": "string",
    "queryType": "string"
}
string
inputQuery
Optional

inputQuery

string
translatedInput
Optional

translatedInput

string
queryType
Optional

queryType

Possible values are : WQL, PROMQL, HYBRID,
Authentication
This operation uses the following authentication methods.
Responses
200

successful operation

Returns ResponseContainerQueryTypeDTO of type(s) application/json
"ResponseContainerQueryTypeDTO Object"
object
status
Required

status

object
response
Optional

response


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/api/v2/alert/checkQuery