Gets parameters of the specified custom service rule.
The request produces an application/json payload.
| GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/service/customServices/{technology}/{id} |
| Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/service/customServices/{technology}/{id} |
To execute this request, you need an access token with ReadConfig scope.
To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| technology | string | Technology of the custom service you're inquiring.
| path | required |
| id | string | The ID of the custom service you're inquiring. | path | required |
| includeProcessGroupReferences | boolean | Flag to include process group references to the response. Process group references aren't compatible across environments.
| query | optional |
| Code | Type | Description |
|---|---|---|
| 200 | Custom | Success |
CustomService object| Element | Type | Description |
|---|---|---|
| enabled | boolean | Custom service enabled/disabled. |
| id | string | The ID of the custom service. |
| metadata | Configuration | Metadata useful for debugging |
| name | string | The name of the custom service, displayed in the UI. |
| order | string | The order string. Sorting custom services alphabetically by their order string determines their relative ordering. Typically this is managed by Dynatrace internally and will not be present in GET responses. |
| processGroups | string[] | The list of process groups the custom service should belong to. |
| queueEntryPoint | boolean | The queue entry point flag. Set to |
| queueEntryPointType | string | The queue entry point type..
|
| rules | Detection | The list of rules defining the custom service. |
ConfigurationMetadata objectMetadata useful for debugging
| Element | Type | Description |
|---|---|---|
| clusterVersion | string | Dynatrace version. |
| configurationVersions | integer[] | A sorted list of the version numbers of the configuration. |
| currentConfigurationVersions | string[] | A sorted list of version numbers of the configuration. |
DetectionRule object| Element | Type | Description |
|---|---|---|
| annotations | string[] | Additional annotations filter of the rule. Only classes where all listed annotations are available in the class itself or any of its superclasses are instrumented. Not applicable to PHP. |
| className | string | The fully qualified class or interface to instrument. Required for Java and .NET custom services. Not applicable to PHP. |
| enabled | boolean | Rule enabled/disabled. |
| fileName | string | The PHP file containing the class or methods to instrument. Required for PHP custom service. Not applicable to Java and .NET. |
| fileNameMatcher | string | Matcher applying to the file name. Default value is
|
| id | string | The ID of the detection rule. |
| matcher | string | Matcher applying to the class name.
|
| methodRules | Method | List of methods to instrument. |
MethodRule object| Element | Type | Description |
|---|---|---|
| argumentTypes | string[] | Fully qualified types of argument the method expects. |
| id | string | The ID of the method rule. |
| methodName | string | The method to instrument. |
| modifiers | string[] | The modifiers of the method rule.
|
| returnType | string | Fully qualified type the method returns. |
| visibility | string | The visibility of the method rule.
|
{"enabled": true,"name": "CustomService","queueEntryPoint": false,"rules": [{"className": "com.your.company.ClassName","enabled": true,"methodRules": [{"argumentTypes": ["java.lang.String"],"methodName": "AMethod","returnType": "void"}]}]}