OpenPipeline API - POST verify a matcher

Verifies if the given matcher is valid.

The request produces an application/json payload.

POSTSaaShttps://{your-environment-id}.apps.dynatrace.com/platform/openpipeline/v1/matcher/verify

Authentication

To execute this request, you need an OAuth2 client with openpipeline:configurations:read permission.

To learn how to obtain and use it, see OAuth clients.

Parameters

ParameterTypeDescriptionInRequired
bodyMatcherRequest

Single matcher to verify.

bodyrequired

Request body objects

The MatcherRequest object

ElementTypeDescriptionRequired
querystring

The matcher query to process.

optional

Request body JSON model

This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.

{
"query": "matchesValue(type, \"security\")"
}

Response

Response codes

CodeTypeDescription
200VerifyResponse

Returns the verification result of the matcher.

4XXErrorResponseEnvelope

Client-side error.

5XXErrorResponseEnvelope

Server-side error.

Response body objects

The VerifyResponse object

Verify response.

ElementTypeDescription
notificationsMetadataNotification[]

The notifications related to the supplied input string.

validboolean

True if the supplied input string is valid.

The MetadataNotification object

The message that provides additional information about the execution of the input string.

ElementTypeDescription
argumentsstring[]

The arguments for the message format.

messagestring

The complete message of the notification.

messageFormatstring

The message format of the notification, string.format based

messageFormatSpecifierTypesstring[]

The corresponding types for each format specifier used in the error message format.

notificationTypestring

The notification type.

severitystring

The severity of the notification, currently: INFO, WARN, ERROR.

syntaxPositionTokenPosition

The position of a token in the input string used for errors and notification to map the message to a specific part of the input.

The TokenPosition object

The position of a token in the input string used for errors and notification to map the message to a specific part of the input.

ElementTypeDescription
endPositionInfo

The exact position in the query string.

startPositionInfo

The exact position in the query string.

The PositionInfo object

The exact position in the query string.

ElementTypeDescription
columninteger

Input string position column zero based index.

indexinteger

Input string position index.

lineinteger

Input string position line zero based index.

Response body JSON model

{
"valid": false,
"notifications": [
{
"severity": "ERROR",
"syntaxPosition": {
"start": {
"column": 1,
"index": 0,
"line": 1
},
"end": {
"column": 6,
"index": 5,
"line": 1
}
},
"message": "There's been an error during parsing: There's no command `parsee`."
}
]
}

JSON models

The ErrorResponseEnvelope object

Encloses the encountered error.

ElementTypeDescription
errorErrorResponse

Basic information of the encountered error.

The ErrorResponse object

Basic information of the encountered error.

ElementTypeDescription
codeinteger

The returned HTTP status code.

detailsErrorResponseDetails

Detailed information of the error.

messagestring

Description of the encountered error.

The ErrorResponseDetails object

Detailed information of the error.

ElementTypeDescription
typestring

Defines the actual set of fields depending on the value. See one of the following objects:

  • constraintViolation

The ConstraintViolationDetails object

List of encountered constraint violations.

ElementTypeDescription
constraintViolationsConstraintViolation[]

List of encountered constraint violations.

The ConstraintViolation object

Information about a single constraint violation.

ElementTypeDescription
messagestring

Description of the constraint violation.