Request attributes API - PUT a request attribute
Updates the specified request attribute.
The request consumes and produces an application/json
payload.
PUT | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/config/v1/service/requestAttributes/{id} |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/service/requestAttributes/{id} | |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/service/requestAttributes/{id} |
Authentication
To execute this request, you need an access token with CaptureRequestData
scope.
To learn how to obtain and use it, see Tokens and authentication.
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
id | string | The ID of the request attribute to be updated. If you set the ID in the body as well, it must match this ID. | path | required |
body | RequestAttribute | - | body | required |
Request body objects
The RequestAttribute
object
Element | Type | Description | Required |
---|---|---|---|
aggregation | string | Aggregation type for the request values.
| required |
confidential | boolean | Confidential data flag. Set | required |
dataSources | DataSource[] | The list of data sources. | required |
dataType | string | The data type of the request attribute.
| required |
enabled | boolean | The request attribute is enabled ( | required |
id | string | The ID of the request attribute. | optional |
metadata | ConfigurationMetadata | Metadata useful for debugging | optional |
name | string | The name of the request attribute. | required |
normalization | string | String values transformation. If the dataType is not
| required |
skipPersonalDataMasking | boolean | Personal data masking flag. Set Warning: This will potentially access personalized data. | required |
The DataSource
object
Element | Type | Description | Required |
---|---|---|---|
capturingAndStorageLocation | string | Specifies the location where the values are captured and stored. Required if the source is one of the following: Not applicable in other cases. If the source value is
| optional |
cicsSDKMethodNodeCondition | ValueCondition | IBM integration bus label node name condition for which the value is captured. | optional |
cicsTransactionCallType | string | CICS transaction call type condition for which the value is captured. Required if the source is: Not applicable in other cases.
| optional |
enabled | boolean | The data source is enabled ( | required |
iibLabelMethodNodeCondition | ValueCondition | IBM integration bus label node name condition for which the value is captured. | optional |
iibMethodNodeCondition | ValueCondition | IBM integration bus label node name condition for which the value is captured. | optional |
iibNodeType | string | The IBM integration bus node type for which the value is captured. This or Not applicable in other cases.
| optional |
imsTransactionCallType | string | IMS transaction call type condition for which the value is captured. Required if the source is: Not applicable in other cases.
| optional |
methods | CapturedMethod[] | The method specification if the source value is Not applicable in other cases. | optional |
parameterName | string | The name of the web request parameter to capture. Required if the source is one of the following: Not applicable in other cases. | optional |
scope | ScopeConditions | Conditions for data capturing. | optional |
serverVariableTechnology | string | The technology of the server variable to capture if the source value is
| optional |
sessionAttributeTechnology | string | The technology of the session attribute to capture if the source value is
| optional |
source | string | The source of the attribute to capture. Works in conjunction with parameterName or methods and technology.
| required |
spanAttributeKey | string | The key of the span attribute to capture. Required if the source is: Not applicable in other cases. | optional |
technology | string | The technology of the method to capture if the source value is
| optional |
valueProcessing | ValueProcessing | Process values as specified. | optional |
The ValueCondition
object
IBM integration bus label node name condition for which the value is captured.
Element | Type | Description | Required |
---|---|---|---|
negate | boolean | Negate the comparison. | required |
operator | string | Operator comparing the extracted value to the comparison value.
| required |
value | string | The value to compare to. | required |
The CapturedMethod
object
Element | Type | Description | Required |
---|---|---|---|
argumentIndex | integer | The index of the argument to capture. Set Required if the capture is set to Not applicable in other cases. | optional |
capture | string | What to capture from the method.
| required |
deepObjectAccess | string | The getter chain to apply to the captured object. It is required in one of the following cases: The capture is set to Not applicable in other cases. | optional |
method | MethodReference | Configuration of a method to be captured. | required |
The MethodReference
object
Configuration of a method to be captured.
Element | Type | Description | Required |
---|---|---|---|
argumentTypes | string[] | The list of argument types. | required |
className | string | The class name where the method to capture resides. Either this or the fileName must be set. | optional |
fileName | string | The file name where the method to capture resides. Either this or className must be set. | optional |
fileNameMatcher | string | The operator of the comparison. If not set,
| optional |
methodName | string | The name of the method to capture. | required |
modifiers | string[] | The modifiers of the method to capture.
| required |
returnType | string | The return type. | required |
visibility | string | The visibility of the method to capture.
| required |
The ScopeConditions
object
Conditions for data capturing.
Element | Type | Description | Required |
---|---|---|---|
hostGroup | string | Only applies to this host group. | optional |
processGroup | string | Only applies to this process group. Note that this can't be transferred between different clusters or environments. | optional |
serviceTechnology | string | Only applies to this service technology.
| optional |
tagOfProcessGroup | string | Only apply to process groups matching this tag. | optional |
The ValueProcessing
object
Process values as specified.
Element | Type | Description | Required |
---|---|---|---|
extractSubstring | ExtractSubstring | Preprocess by extracting a substring from the original value. | optional |
splitAt | string | Split (preprocessed) string values at this separator. | optional |
trim | boolean | Prune Whitespaces. Defaults to false. | required |
valueCondition | ValueCondition | IBM integration bus label node name condition for which the value is captured. | optional |
valueExtractorRegex | string | Extract value from captured data per regex. | optional |
The ExtractSubstring
object
Preprocess by extracting a substring from the original value.
Element | Type | Description | Required |
---|---|---|---|
delimiter | string | The delimiter string. | required |
endDelimiter | string | The end-delimiter string. Required if the position value is | optional |
position | string | The position of the extracted string relative to delimiters.
| required |
The ConfigurationMetadata
object
Metadata useful for debugging
Element | Type | Description | Required |
---|---|---|---|
clusterVersion | string | Dynatrace version. | optional |
configurationVersions | integer[] | A sorted list of the version numbers of the configuration. | optional |
currentConfigurationVersions | string[] | A sorted list of version numbers of the configuration. | 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.
1{2 "aggregation": "ALL_DISTINCT_VALUES",3 "confidential": false,4 "dataSources": [5 {6 "capturingAndStorageLocation": "CAPTURE_AND_STORE_ON_SERVER",7 "enabled": true,8 "parameterName": "query",9 "scope": {10 "tagOfProcessGroup": "SearchFrontend"11 },12 "source": "QUERY_PARAMETER"13 }14 ],15 "dataType": "STRING",16 "enabled": true,17 "name": "Query Term",18 "normalization": "TO_LOWER_CASE",19 "skipPersonalDataMasking": false20}
Response
Response codes
Code | Type | Description |
---|---|---|
201 | EntityShortRepresentation | Success. The request attribute with the specified ID has been created. The ID of the new configuration is returned. |
204 | - | Success. Request attribute has been updated. Response doesn't have a body. |
400 | ErrorEnvelope | Failed. The input is invalid. |
Response body objects
The EntityShortRepresentation
object
The short representation of a Dynatrace entity.
Element | Type | Description |
---|---|---|
description | string | A short description of the Dynatrace entity. |
id | string | The ID of the Dynatrace entity. |
name | string | The name of the Dynatrace entity. |
Response body JSON model
1{2 "description": "Dynatrace entity for the REST API example",3 "id": "6a98d7bc-abb9-44f8-ae6a-73e68e71812a",4 "name": "Dynatrace entity"5}
Validate payload
We recommend that you validate the payload before submitting it with an actual request. A response code of 204 indicates a valid payload.
The request consumes an application/json
payload.
POST | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/config/v1/service/requestAttributes/{id}/validator |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/service/requestAttributes/{id}/validator | |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/service/requestAttributes/{id}/validator |
Authentication
To execute this request, you need an access token with CaptureRequestData
scope.
To learn how to obtain and use it, see Tokens and authentication.
Response
Response codes
Code | Type | Description |
---|---|---|
204 | - | Validated. The submitted configuration is valid. Response does not have a body. |
400 | ErrorEnvelope | Failed. The input is invalid. |