Convert an LQL matcher to DQL in Dynatrace OpenPipeline API, using the query body field to translate the matcher format.
| POST | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/openpipeline/v1/matcher/lqlToDql |
You send the query in the request body to translate an LQL matcher into DQL. The response returns the converted LQL matcher in DQL format.
To execute this request, you need a platform token or OAuth access token with openpipeline:configurations:read scope. To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| body | Matcher | Valid LQL matcher for conversion. | body | Required |
MatcherRequest object| Element | Type | Description | Required |
|---|---|---|---|
| query | string | The matcher query to process. | Optional |
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"query": "log.source=\"snmptraps\" AND snmp.trap_oid=\"F5-BIGIP-COMMON-MIB\""}
| Code | Type | Description |
|---|---|---|
| 200 | Matcher | Returns the converted LQL matcher in DQL format. |
| 4XX | Error | Client-side error. |
| 5XX | Error | Server-side error. |
MatcherRequest object| Element | Type | Description |
|---|---|---|
| query | string | The matcher query to process. |
ErrorResponseEnvelope objectEncloses the encountered error.
| Element | Type | Description |
|---|---|---|
| error | Error | Basic information of the encountered error. |
ErrorResponse objectBasic information of the encountered error.
| Element | Type | Description |
|---|---|---|
| code | integer | The returned HTTP status code. |
| details | Error | Detailed information of the error. |
| message | string | Description of the encountered error. |
ErrorResponseDetails objectDetailed information of the error.
| Element | Type | Description |
|---|---|---|
| type | string | Defines the actual set of fields depending on the value. See one of the following objects:
The element can hold these values
|
{"query": "matchesValue(log.source, \"snmptraps\") and matchesValue(snmp.trap_oid, \"F5-BIGIP-COMMON-MIB\")"}
{"error": {"code": 400,"message": "Bad request."}}