Try it free

Preview a processor

  • Latest Dynatrace
  • Reference

Preview a processor in Dynatrace OpenPipeline with sample data, and see the processed sample record for the config and scope you provide.

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

Overview

You send configId, processor, and scope in the request body. Dynatrace returns a preview result containing the processed sample data record.

Authentication

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.

Parameters

ParameterTypeDescriptionInRequired
bodyPreviewProcessorEnvelope

The processor with sample-data to preview.

bodyRequired

Request body objects

The PreviewProcessorEnvelope object

ElementTypeDescriptionRequired
configIdstring

Identifier of the configuration.

Optional
processorDqlProcessor | FieldsAddProcessor | FieldsRemoveProcessor | FieldsRenameProcessor | TechnologyProcessor | GeoLookupProcessor | InlineLookupProcessor

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

Required
scopestring

The scope in which the processor is previewed in.

The element can hold these values
  • ENDPOINT
  • PIPELINE
Optional

The PreviewProcessor object

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

The DqlProcessor object

Processor to apply a DQL script.

ElementTypeDescriptionRequired
builtinboolean

Indicates if Dynatrace provides the object or if it's customer-defined.

Optional
descriptionstring

Name or description of the processor.

Required
dqlScriptstring

The DQL script to apply on the record.

Required
editableboolean

Indicates if the user can edit this object based on permissions and builtin property.

Optional
enabledboolean

Indicates if the object is active.

Required
idstring

Processor identifier, which must be unique within a stage.

Required
matcherstring

Matching condition to apply to incoming records.

Required
sampleDatastring

Sample data related to the processor for documentation or testing.

Optional

The FieldsAddProcessor object

Processor to add fields.

ElementTypeDescriptionRequired
builtinboolean

Indicates if Dynatrace provides the object or if it's customer-defined.

Optional
descriptionstring

Name or description of the processor.

Required
editableboolean

Indicates if the user can edit this object based on permissions and builtin property.

Optional
enabledboolean

Indicates if the object is active.

Required
fieldsFieldsAddItem[]

List of fields to add to the record.

Required
idstring

Processor identifier, which must be unique within a stage.

Required
matcherstring

Matching condition to apply to incoming records.

Required
sampleDatastring

Sample data related to the processor for documentation or testing.

Optional

The FieldsRemoveProcessor object

Processor to remove fields.

ElementTypeDescriptionRequired
builtinboolean

Indicates if Dynatrace provides the object or if it's customer-defined.

Optional
descriptionstring

Name or description of the processor.

Required
editableboolean

Indicates if the user can edit this object based on permissions and builtin property.

Optional
enabledboolean

Indicates if the object is active.

Required
fieldsstring[]

List of unique fields to remove from the record.

Required
idstring

Processor identifier, which must be unique within a stage.

Required
matcherstring

Matching condition to apply to incoming records.

Required
sampleDatastring

Sample data related to the processor for documentation or testing.

Optional

The FieldsRenameProcessor object

Processor to rename fields.

ElementTypeDescriptionRequired
builtinboolean

Indicates if Dynatrace provides the object or if it's customer-defined.

Optional
descriptionstring

Name or description of the processor.

Required
editableboolean

Indicates if the user can edit this object based on permissions and builtin property.

Optional
enabledboolean

Indicates if the object is active.

Required
fieldsFieldsRenameItem[]

List of fields to rename on the record.

Required
idstring

Processor identifier, which must be unique within a stage.

Required
matcherstring

Matching condition to apply to incoming records.

Required
sampleDatastring

Sample data related to the processor for documentation or testing.

Optional

The TechnologyProcessor object

Processor to apply a technology processors.

ElementTypeDescriptionRequired
builtinboolean

Indicates if Dynatrace provides the object or if it's customer-defined.

Optional
customMatcherstring

Optional customer-defined matching condition, that's used in place of the main technology matcher.

Optional
editableboolean

Indicates if the user can edit this object based on permissions and builtin property.

Optional
enabledboolean

Indicates if the object is active.

Required
idstring

Processor identifier, which must be unique within a stage.

Required
sampleDatastring

Sample data related to the processor for documentation or testing.

Optional
technologyIdstring

The reference identifier to a specific technology. This technology is applied on the record.

Required

The GeoLookupProcessor object

Processor to perform geo IP lookup.

ElementTypeDescriptionRequired
builtinboolean

Indicates if Dynatrace provides the object or if it's customer-defined.

Optional
descriptionstring

Name or description of the processor.

Required
editableboolean

Indicates if the user can edit this object based on permissions and builtin property.

Optional
enabledboolean

Indicates if the object is active.

Required
geoFieldPrefixstring

Optional prefix for geo output fields.

Optional
idstring

Processor identifier, which must be unique within a stage.

Required
ipFieldKeystring

The record field that contains the IP address to look up.

Required
matcherstring

Matching condition to apply to incoming records.

Required
outputFieldsstring[]

List of output fields to populate from the geo lookup.

Optional
sampleDatastring

Sample data related to the processor for documentation or testing.

Optional

The InlineLookupProcessor object

Processor to perform inline key-value lookup.

ElementTypeDescriptionRequired
builtinboolean

Indicates if Dynatrace provides the object or if it's customer-defined.

Optional
defaultValuestring

Value to use when no lookup entry matches the source field.

Optional
descriptionstring

Name or description of the processor.

Required
destinationFieldstring

The record field to write the lookup result to.

Required
editableboolean

Indicates if the user can edit this object based on permissions and builtin property.

Optional
enabledboolean

Indicates if the object is active.

Required
idstring

Processor identifier, which must be unique within a stage.

Required
inlineLookupTablestring

JSON array of inline lookup entries mapping keys to values.

Required
matcherstring

Matching condition to apply to incoming records.

Required
sampleDatastring

Sample data related to the processor for documentation or testing.

Optional
sourceFieldstring

The record field to use as the lookup key.

Required

The FieldsAddItem object

List of fields to add to the record.

ElementTypeDescriptionRequired
namestring

Name of the field.

Required
valuestring

Value to assign to the field.

Required

The FieldsRenameItem object

List of fields to rename on the record.

ElementTypeDescriptionRequired
fromNamestring

The field to rename.

Required
toNamestring

The new field name.

Required

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.

408ErrorResponseEnvelope

Preview run resulted in a timeout.

429ErrorResponseEnvelope

Too many concurrent preview requests.

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.

matchedProcessorsstring[]

Contains matched processors IDs, useful in case of multi-processors preview like in case of Technology.

recordobject

The altered record after the processor was applied.

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 -> ConstraintViolationDetails
The element can hold these values
  • constraintViolation

Response body JSON models

{
"results": [
{
"matched": true,
"record": {
"ip.address": "10.0.0.123",
"host.name": "raspberry-pi 4",
"timestamp": "2024-06-24T07:21:52.200000000Z"
}
}
]
}
{
"error": {
"code": 400,
"message": "Bad request."
}
}
Related tags
Platform APIDynatrace Platform