OpenPipeline API - POST a processor preview

Creates a preview for an OpenPipeline processor in your Dynatrace environment for the given sample data.

The request produces an application/json payload.

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

Authentication

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

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

Parameters

ParameterTypeDescriptionInRequired
bodyPreviewProcessorEnvelope

The processor with sample-data to preview.

bodyrequired

Request body objects

The PreviewProcessorEnvelope object

ElementTypeDescriptionRequired
processorPreviewProcessor

The processor to execute for the preview. Applicable processors are DqlProcessor, FieldsAddProcessor, FieldsRemoveProcessor and FieldsRenameProcessor.

required

The PreviewProcessor object

The processor to execute for the preview. Applicable processors are DqlProcessor, FieldsAddProcessor, FieldsRemoveProcessor and FieldsRenameProcessor.

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.

{
"processor": {
"type": "fieldsRename",
"enabled": false,
"editable": true,
"id": "hostname-field-normalizer",
"description": "hostname field normalizer",
"matcher": "isNotNull(\"hostname\")",
"sampleData": "{\"hostname\": \"raspberry-pi 4\",\"ip\":\"10.0.0.123\"}",
"fields": [
{
"fromName": "hostname",
"toName": "host.name"
},
{
"fromName": "ip",
"toName": "ip.address"
}
]
}
}

Response

Response codes

CodeTypeDescription
200PreviewProcessorResult

Preview result containing the processed sample data record.

4XXErrorResponseEnvelope

Client-side error.

5XXErrorResponseEnvelope

Server-side error.

Response body objects

The PreviewProcessorResult object

ElementTypeDescription
resultsPreviewProcessorResultEntry[]

List of results for each sample data record.

The PreviewProcessorResultEntry object

Preview result for a single sample data record.

ElementTypeDescription
matchedboolean

Indicates if the record matched the processors matching condition.

recordobject

The altered record after the processor was applied.

Response body JSON model

{
"results": [
{
"matched": true,
"record": {
"ip.address": "10.0.0.123",
"host.name": "raspberry-pi 4",
"timestamp": "2024-06-24T07:21:52.200000000Z"
}
}
]
}

JSON models

The DqlProcessor object

Processor to apply a DQL script.

ElementTypeDescription
descriptionstring

Name or description of the processor.

dqlScriptstring

The DQL script to apply on the record.

editableboolean

Indicates if the user is allowed to edit this object based on permissions and builtin property.

enabledboolean

Indicates if the object is active.

idstring

Identifier of the processor. Must be unique within a stage.

matcherstring

Matching condition to apply on incoming records.

sampleDatastring

Sample data related to the processor for documentation or testing.

The FieldsAddProcessor object

Processor to add fields.

ElementTypeDescription
descriptionstring

Name or description of the processor.

editableboolean

Indicates if the user is allowed to edit this object based on permissions and builtin property.

enabledboolean

Indicates if the object is active.

fieldsFieldsAddItem[]

List of fields to add to the record.

idstring

Identifier of the processor. Must be unique within a stage.

matcherstring

Matching condition to apply on incoming records.

sampleDatastring

Sample data related to the processor for documentation or testing.

The FieldsAddItem object

List of fields to add to the record.

ElementTypeDescription
namestring

Name of the field.

valuestring

Value to assign to the field.

The FieldsRemoveProcessor object

Processor to remove fields.

ElementTypeDescription
descriptionstring

Name or description of the processor.

editableboolean

Indicates if the user is allowed to edit this object based on permissions and builtin property.

enabledboolean

Indicates if the object is active.

fieldsstring[]

List of fields to remove from the record.

idstring

Identifier of the processor. Must be unique within a stage.

matcherstring

Matching condition to apply on incoming records.

sampleDatastring

Sample data related to the processor for documentation or testing.

The FieldsRenameProcessor object

Processor to rename fields.

ElementTypeDescription
descriptionstring

Name or description of the processor.

editableboolean

Indicates if the user is allowed to edit this object based on permissions and builtin property.

enabledboolean

Indicates if the object is active.

fieldsFieldsRenameItem[]

List of fields to rename on the record.

idstring

Identifier of the processor. Must be unique within a stage.

matcherstring

Matching condition to apply on incoming records.

sampleDatastring

Sample data related to the processor for documentation or testing.

The FieldsRenameItem object

List of fields to rename on the record.

ElementTypeDescription
fromNamestring

The field to rename.

toNamestring

The new field name.

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.