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

You can execute this request also with an OAuth2 client with openpipeline:configurations:read 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
configIdstring

Identifier of the configuration.

optional
processorPreviewProcessor

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

required
scopestring

The scope in which the processor is previewed in.

  • ENDPOINT
  • PIPELINE
optional

The PreviewProcessor object

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

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.

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
builtinboolean

Indicates if the object is provided by Dynatrace or is customer-defined.

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
builtinboolean

Indicates if the object is provided by Dynatrace or is customer-defined.

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
builtinboolean

Indicates if the object is provided by Dynatrace or is customer-defined.

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 unique 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
builtinboolean

Indicates if the object is provided by Dynatrace or is customer-defined.

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 TechnologyProcessor object

Processor to apply a technology processors.

ElementTypeDescription
builtinboolean

Indicates if the object is provided by Dynatrace or is customer-defined.

customMatcherstring

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

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.

sampleDatastring

Sample data related to the processor for documentation or testing.

technologyIdstring

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

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.